るりまサーチ

最速Rubyリファレンスマニュアル検索!
829件ヒット [1-100件を表示] (0.210秒)

別のキーワード

  1. _builtin to_r
  2. open3 pipeline_r
  3. matrix elements_to_r
  4. fileutils rm_r
  5. fileutils cp_r

ライブラリ

キーワード

検索結果

<< 1 2 3 ... > >>

Matrix#antisymmetric? -> bool (18208.0)

行列が反対称行列 (交代行列、歪〔わい〕対称行列とも) ならば true を返します。

... true を返します。

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

//emlist[][ruby]{
r
equire 'matrix'

Matrix
[[0, -2, Complex(1, 3)], [2, 0, 5], [-Complex(1, 3), -5, 0]].antisymmetric? # => true
Matrix
.empty.antisymmetric? # => true

Mat...
...rix[[1, 2, 3], [4, 5, 6], [7, 8, 9]].antisymmetric? # => false
# 対角要素が違う
Matrix
[[1, -2, 3], [2, 0, 6], [-3, -6, 0]].antisymmetric? # => false
# 符号が違う
Matrix
[[0, 2, -3], [2, 0, 6], [-3, 6, 0]].antisymmetric? # => false
//}...

Matrix#skew_symmetric? -> bool (18208.0)

行列が反対称行列 (交代行列、歪〔わい〕対称行列とも) ならば true を返します。

... true を返します。

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

//emlist[][ruby]{
r
equire 'matrix'

Matrix
[[0, -2, Complex(1, 3)], [2, 0, 5], [-Complex(1, 3), -5, 0]].antisymmetric? # => true
Matrix
.empty.antisymmetric? # => true

Mat...
...rix[[1, 2, 3], [4, 5, 6], [7, 8, 9]].antisymmetric? # => false
# 対角要素が違う
Matrix
[[1, -2, 3], [2, 0, 6], [-3, -6, 0]].antisymmetric? # => false
# 符号が違う
Matrix
[[0, 2, -3], [2, 0, 6], [-3, 6, 0]].antisymmetric? # => false
//}...

Matrix#symmetric? -> bool (18208.0)

行列が対称ならば true を返します。

...行列が対称ならば true を返します。

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

Matrix#entrywise_product(m) -> Matrix (15308.0)

アダマール積(要素ごとの積)を返します。

...ダマール積(要素ごとの積)を返します。

@
raise ExceptionForMatrix::ErrDimensionMismatch 行や列の要素数が一致しない時に発生します。

//emlist[例][ruby]{
r
equire 'matrix'

Matrix
[[1,2], [3,4]].hadamard_product(Matrix[[1,2], [3,2]]) # => Matrix[[1, 4], [9, 8]]
//}...

Matrix#tr -> Integer | Float | Rational | Complex (15308.0)

トレース (trace) を返します。

...トレース (trace) を返します。

行列のトレース (trace) とは、対角要素の和です。

//emlist[例][ruby]{
r
equire 'matrix'
Matrix
[[7,6], [3,9]].trace # => 16
//}

t
race は正方行列でのみ定義されます。

@
raise ExceptionForMatrix::ErrDimensionMismatch 行列が...

絞り込み条件を変える

Matrix#trace -> Integer | Float | Rational | Complex (15308.0)

トレース (trace) を返します。

...トレース (trace) を返します。

行列のトレース (trace) とは、対角要素の和です。

//emlist[例][ruby]{
r
equire 'matrix'
Matrix
[[7,6], [3,9]].trace # => 16
//}

t
race は正方行列でのみ定義されます。

@
raise ExceptionForMatrix::ErrDimensionMismatch 行列が...

Matrix#hadamard_product(m) -> Matrix (15208.0)

アダマール積(要素ごとの積)を返します。

...ダマール積(要素ごとの積)を返します。

@
raise ExceptionForMatrix::ErrDimensionMismatch 行や列の要素数が一致しない時に発生します。

//emlist[例][ruby]{
r
equire 'matrix'

Matrix
[[1,2], [3,4]].hadamard_product(Matrix[[1,2], [3,2]]) # => Matrix[[1, 4], [9, 8]]
//}...

Matrix#-@ -> Matrix (12302.0)

単項 -。各要素の符号を反転させた行列を返します。

単項 -。各要素の符号を反転させた行列を返します。

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

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

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

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

変則的な形状の行列に対してはそれ以上の意味を持ちま...
...
r
ow行/column列が行列やベクトルである場合には

//emlist[例][ruby]{
r
equire 'matrix'
# Matrix[[7,6], [3,9]].laplace_expansion(column: 1) # => 45
Matrix
[[Vector[1, 0], Vector[0, 1]], [2, 3]].laplace_expansion(row: 0) # => Vector[3, -2]
//}

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

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

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

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

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

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

絞り込み条件を変える

<< 1 2 3 ... > >>