るりまサーチ

最速Rubyリファレンスマニュアル検索!
369件ヒット [1-100件を表示] (0.050秒)
トップページ > クエリ:@[x] > クエリ:column[x]

別のキーワード

  1. matrix column
  2. psych column
  3. ripper column
  4. matrix column_size
  5. matrix column_count

ライブラリ

クラス

モジュール

キーワード

検索結果

<< 1 2 3 ... > >>

Matrix#column(j) -> Vector | nil (18120.0)

j 番目の列を Vector オブジェクトで返します。 j 番目の列が存在しない場合は nil を返します。 ブロックが与えられた場合はその列の各要素についてブロックを繰り返します。

...ない場合は nil を返します。
ブロックが与えられた場合はその列の各要素についてブロックを繰り返します。


@
param j 列の位置を指定します。
先頭の列が 0 番目になります。j の値が負の時には末尾から
のイ...
...ックスと見倣します。末尾の列が -1 番目になります。

//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(1) # => Vector[2, 15, -2]

cnt = 0
m.column(-1) { |x|
cnt = cnt + x
}
p cnt # => 24.5
//}...

Matrix#column(j) {|x| ... } -> self (18120.0)

j 番目の列を Vector オブジェクトで返します。 j 番目の列が存在しない場合は nil を返します。 ブロックが与えられた場合はその列の各要素についてブロックを繰り返します。

...ない場合は nil を返します。
ブロックが与えられた場合はその列の各要素についてブロックを繰り返します。


@
param j 列の位置を指定します。
先頭の列が 0 番目になります。j の値が負の時には末尾から
のイ...
...ックスと見倣します。末尾の列が -1 番目になります。

//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(1) # => Vector[2, 15, -2]

cnt = 0
m.column(-1) { |x|
cnt = cnt + x
}
p cnt # => 24.5
//}...

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

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

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

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

Matrix.columns(columns) -> Matrix (6206.0)

引数 columns を列ベクトルの集合とする行列を生成します。

...引数 columns を列ベクトルの集合とする行列を生成します。

@
param columns 配列の配列を渡します。

=== 注意

Matrix.rows との違いは引数として渡す配列の配列を列ベクトルの配列とみなして行列を生成します。

//emlist[例][ruby]{
re...
...3]
# [ 4, 5, 6]
# [-1, -2, -3]

# 配列を列ベクトルとして生成
m = Matrix.columns([a1, a2, a3])
p m # => Matrix[[1, 4, -1], [2, 5, -2], [3, 6, -3]]
# 行列としてのイメージ => [1, 4, -1]
#...

Matrix#cofactor_expansion(row: nil, column: nil) -> object | Integer | Rational | Float (172.0)

row 行、もしくは column 列に関するラプラス展開をする。

...row 行、もしくは column 列に関するラプラス展開をする。

通常の行列に対してはこれは単に固有値を計算するだけです。かわりにMatrix#determinant を
利用すべきです。

変則的な形状の行列に対してはそれ以上の意味を持ちま...
...xpansion(column: 1) # => 45
Matrix[[Vector[1, 0], Vector[0, 1]], [2, 3]].laplace_expansion(row: 0) # => Vector[3, -2]
//}

@
param row 行
@
param column
@
raise ArgumentError row と column を両方指定した、もしくは両方とも指定していない、場合に発生します
@
raise Exc...
...eptionForMatrix::ErrDimensionMismatch 行列が正方でない場合に発生します
@
see Matrix#cofactor...

絞り込み条件を変える

Matrix#laplace_expansion(row: nil, column: nil) -> object | Integer | Rational | Float (172.0)

row 行、もしくは column 列に関するラプラス展開をする。

...row 行、もしくは column 列に関するラプラス展開をする。

通常の行列に対してはこれは単に固有値を計算するだけです。かわりにMatrix#determinant を
利用すべきです。

変則的な形状の行列に対してはそれ以上の意味を持ちま...
...xpansion(column: 1) # => 45
Matrix[[Vector[1, 0], Vector[0, 1]], [2, 3]].laplace_expansion(row: 0) # => Vector[3, -2]
//}

@
param row 行
@
param column
@
raise ArgumentError row と column を両方指定した、もしくは両方とも指定していない、場合に発生します
@
raise Exc...
...eptionForMatrix::ErrDimensionMismatch 行列が正方でない場合に発生します
@
see Matrix#cofactor...

Matrix#cofactor(row, column) -> Integer | Rational | Float (147.0)

(row, column)-余因子を返します。

...(row, column)-余因子を返します。

各要素の型によって返り値が変わります。

@
param row 行
@
param column
@
raise ExceptionForMatrix::ErrDimensionMismatch 行列が正方でない場合に発生します。
@
see Matrix#adjugate...

Matrix#first_minor(row, column) -> Matrix (147.0)

self から第 row 行と第 column 列を取り除いた行列を返します。

...self から第 row 行と第 column 列を取り除いた行列を返します。

@
param row 行
@
param column
@
raise ArgumentError row, column が行列の行数/列数を越えている場合に発生します。...

Matrix.empty(row_size=0, column_size=0) -> Matrix (137.0)

要素を持たない行列を返します。

...w_size 、 column_size のいずれか一方は0である必要があります。

//emlist[例][ruby]{
require 'matrix'
m = Matrix.empty(2, 0)
m == Matrix[ [], [] ]
# => true
n = Matrix.empty(0, 3)
n == Matrix.columns([ [], [], [] ])
# => true
m * n
# => Matrix[[0, 0, 0], [0, 0, 0]]
//}

@
param row...
..._size 行列の行数
@
param column_size 行列の列数
@
raise ArgumentError row_size, column_size が両方とも0でない場合に発生します...
<< 1 2 3 ... > >>