るりまサーチ

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

別のキーワード

  1. fiddle ruby_free
  2. rbconfig ruby
  3. fiddle build_ruby_platform
  4. rake ruby
  5. rubygems/defaults ruby_engine

クラス

キーワード

検索結果

<< 1 2 3 ... > >>

Vector#r -> Float (18222.0)

ベクトルの大きさ(ノルム)を返します。

...ベクトルの大きさ(ノルム)を返します。

//emlist[例][ruby]{
r
equire 'matrix'
Vector[3, 4].norm # => 5.0
Vector[Complex(0, 1), 0].norm # => 1.0
//}

@
see Vector#normalize...

Matrix#adjugate -> Matrix (12327.0)

余因子行列を返します。

...余因子行列を返します。

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

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

Matrix#antisymmetric? -> bool (12121.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

Matr...
...ix[[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 (12121.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

Matr...
...ix[[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#tr -> Integer | Float | Rational | Complex (9421.0)

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

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

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

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

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

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

絞り込み条件を変える

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

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

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

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

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

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

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

Matrix#cofactor_expansion(row: nil, column: nil) -> object | Integer | Rational | Float (9345.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#rect -> [Matrix, Matrix] (9321.0)

行列を実部と虚部に分解したものを返します。

...行列を実部と虚部に分解したものを返します。


//emlist[例][ruby]{
m.rect == [m.real, m.imag] # ==> true for all matrices m
//}

@
see Matrix#imaginary, Matrix#real...

Matrix#rectangular -> [Matrix, Matrix] (9321.0)

行列を実部と虚部に分解したものを返します。

...行列を実部と虚部に分解したものを返します。


//emlist[例][ruby]{
m.rect == [m.real, m.imag] # ==> true for all matrices m
//}

@
see Matrix#imaginary, Matrix#real...

Matrix#minor(from_row, row_size, from_col, col_size) -> Matrix (9239.0)

selfの部分行列を返します。

...号..終了列番号

@
param from_row 部分行列の開始行(0オリジンで指定)
@
param row_size 部分行列の行サイズ
@
param from_col 部分行列の開始列(0オリジンで指定)
@
param col_size 部分行列の列サイズ

//emlist[例][ruby]{
r
equire 'matrix'
a1 = [ 1, 2, 3, 4,...
...5]
a2 = [11, 12, 13, 14, 15]
a3 = [21, 22, 23, 24, 25]
a4 = [31, 32, 33, 34, 35]
a5 = [51, 52, 53, 54, 55]
m = Matrix[a1, a2, a3, a4, a5]

p m.minor(0, 2, 1, 2) # => Matrix[[2, 3], [12, 13]]
//}...

絞り込み条件を変える

<< 1 2 3 ... > >>