るりまサーチ

最速Rubyリファレンスマニュアル検索!
829件ヒット [201-300件を表示] (0.044秒)
トップページ > クエリ:matrix[x] > クエリ:-[x] > クラス:Matrix[x] > クエリ:@[x] > 種類:インスタンスメソッド[x]

別のキーワード

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

ライブラリ

キーワード

検索結果

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

Matrix#lup_decomposition -> Matrix::LUPDecomposition (17234.0)

行列の LUP 分解を保持したオブジェクトを返します。

...

Matrix
::LUPDecomposition は to_ary を定義しているため、
多重代入によって3つの行列(下三角行列、上三角行列、置換行列)
を得ることができます。これを [L, U, P] と書くと、
L*U = P*self を満たします。

//emlist[例][ruby]{
require 'matrix'...
...a = Matrix[[1, 2], [3, 4]]
l, u, p = a.lup
l.lower_triangular? # => true
u.upper_triangular? # => true
p.permutation? # => true
l * u == p * a # => true
a.lup.solve([2, 5]) # => Vector[(1/1), (1/2)]
//}

@
see Matrix::LUPDecomposition...

Matrix#map {|x| ... } -> Matrix (17234.0)

行列の各要素に対してブロックの適用を繰り返した結果を、要素として持つ行列を生成します。

...適用を繰り返した結果を、要素として持つ行列を生成します。

ブロックがない場合、 Enumerator を返します。


//emlist[例][ruby]{
require 'matrix'

m = Matrix[[1, 2], [3, 4]]
p m.map { |x| x + 100 } # => Matrix[[101, 102], [103, 104]]
//}

@
see Matrix#each...

Matrix#/(m) -> Matrix (17223.0)

self に行列 m の逆行列を右から乗じた行列を返します。

...じた行列を返します。

@
param m 逆行列を右から乗算する行列。可逆行列でselfと乗算可能な行列を指定します。

@
raise ExceptionForMatrix::ErrDimensionMismatch 次元が合わない場合に発生します
@
raise ExceptionForMatrix::ErrNotRegular m が正則で...

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

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

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

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

Matrix#*(m) -> Matrix | Vector (17217.0)

self に行列またはベクトル m を右から乗じた行列を返します。

...を返します。

m が Vector オブジェクトなら返り値も Vector オブジェクトになります。

@
param m 右からの乗算が定義可能な行列やベクトルを指定します。

@
raise ExceptionForMatrix::ErrDimensionMismatch 次元が合わない場合に発生します...

絞り込み条件を変える

Matrix#**(n) -> Matrix (17215.0)

self の n 乗を返します。

...self の n 乗を返します。

@
param n べき数の指定
@
raise ExceptionForMatrix::ErrNotRegular n が 0 以下で、行列が正則でない場合に発生します...

Matrix#+(m) -> Matrix (17215.0)

self に行列 m を加算した行列を返します。 self の column_size が 1 なら Vector オブジェクトも指定出来ます。

...した行列を返します。
self の column_size が 1 なら Vector オブジェクトも指定出来ます。

@
param m 加算する行列。加算可能な行列やベクトルを指定します。

@
raise ExceptionForMatrix::ErrDimensionMismatch 次元が合わない場合に発生します...

Matrix#/(other) -> Matrix (17213.0)

self の各成分を数 other で割った行列を返します。

...self の各成分を数 other で割った行列を返します。

@
param other self の各成分を割る Numeric オブジェクトを指定します。...

Matrix#*(other) -> Matrix (17212.0)

self の各成分に数 other を掛けた行列を返します。

...self の各成分に数 other を掛けた行列を返します。

@
param other self の各成分に掛ける Numeric オブジェクトを指定します。...
<< < 1 2 3 4 5 ... > >>