るりまサーチ (Ruby 2.1.0)

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

別のキーワード

  1. _builtin to_a
  2. matrix to_a
  3. to_a
  4. rexml/document to_a
  5. argf.class to_a

ライブラリ

クラス

検索結果

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

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

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

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

Matrix#column_vectors -> [Vector] (64309.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]]
//}