るりまサーチ (Ruby 2.3.0)

最速Rubyリファレンスマニュアル検索!
2件ヒット [1-2件を表示] (0.089秒)
トップページ > バージョン:2.3.0[x] > クエリ:matrix[x] > クエリ:l[x] > クエリ:tr[x] > クエリ:u[x] > クエリ:column_vector[x]

別のキーワード

  1. matrix tr
  2. html4tr element_init
  3. html4tr doctype
  4. string tr_s!
  5. string tr_s

ライブラリ

クラス

検索結果

Matrix.column_vector(column) -> Matrix (152107.0)

要素がcolumnの(n,1)型の行列(列ベクトル)を生成します。

要素がcolumnの(n,1)型の行列(列ベクトル)を生成します。

@param column (n,1)型の行列として生成するVector Array オブジェクト

Matrix#column_vectors -> [Vector] (114937.0)

自分自身を列ベクトルの配列として返します。

自分自身を列ベクトルの配列として返します。

//emlist[例][ruby]{
require 'matrix'
a1 = [ 1, 2, 3]
a2 = [10, 15, 20]
a3 = [-1, -2, 1.5]
m = Matrix[a1, a2, a3]

p m.column_vectors # => [Vector[1, 10, -1], Vector[2, 15, -2], Vector[3, 20, 1.5]]
//}