るりまサーチ

最速Rubyリファレンスマニュアル検索!
843件ヒット [101-200件を表示] (0.050秒)
トップページ > クエリ:matrix[x] > クエリ:u[x] > 種類:インスタンスメソッド[x]

別のキーワード

  1. matrix *
  2. matrix []
  3. matrix map
  4. matrix each
  5. matrix index

ライブラリ

キーワード

検索結果

<< < 1 2 3 4 ... > >>

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

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

...ックスと見倣します。末尾の列が -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_vectors -> [Vector] (23113.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]]
//}...

Matrix#column_count -> Integer (23101.0)

行列の列数を返します。

行列の列数を返します。

Matrix#column_size -> Integer (23101.0)

行列の列数を返します。

行列の列数を返します。

Matrix#lower_triangular? -> bool (23101.0)

行列が下三角行列ならば true を返します。

...行列が下三角行列ならば true を返します。...

絞り込み条件を変える

Matrix#permutation? -> bool (23101.0)

行列が置換行列ならば true を返します。

...行列が置換行列ならば true を返します。

@raise ExceptionForMatrix::ErrDimensionMismatch 行列が正方行列でない場合に発生します...

Matrix#row_count -> Integer (23101.0)

行列の行数を返します。

行列の行数を返します。

Matrix#singular? -> bool (23101.0)

行列が正方で特異なら true を、正則なら false を返します。

...ue を、正則なら false を返します。

行列が特異(singular)であるとは、正則でないことです。
行列式が0であること同値です。

正方行列でない場合には例外 ExceptionForMatrix::ErrDimensionMismatch を
発生させます。

@raise ExceptionForMatrix...

Matrix#square? -> bool (23101.0)

正方行列であるなら、 true を返します。

...正方行列であるなら、 true を返します。...
<< < 1 2 3 4 ... > >>