るりまサーチ (Ruby 2.2.0)

最速Rubyリファレンスマニュアル検索!
14件ヒット [1-14件を表示] (0.026秒)
トップページ > クエリ:Numeric[x] > バージョン:2.2.0[x] > ライブラリ:matrix[x]

別のキーワード

  1. numeric step
  2. _builtin numeric
  3. numeric %
  4. numeric i
  5. numeric +@

クラス

キーワード

検索結果

Matrix#det -> Numeric (313.0)

行列式 (determinant) の値を返します。

...オブジェクトを使用することを検討してください。

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

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

p Matrix[[2, 1], [-1, 2]].det #=> 5
p Matrix[[2.0, 1.0], [-1.0, 2.0]].det #=> 5.0
//}...

Matrix#determinant -> Numeric (313.0)

行列式 (determinant) の値を返します。

...オブジェクトを使用することを検討してください。

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

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

p Matrix[[2, 1], [-1, 2]].det #=> 5
p Matrix[[2.0, 1.0], [-1.0, 2.0]].det #=> 5.0
//}...

Matrix::LUPDecomposition#det -> Numeric (313.0)

元の行列の行列式の値を返します。 LUP 分解の結果を利用して計算します。

...元の行列の行列式の値を返します。
LUP 分解の結果を利用して計算します。

@see Matrix#determinant...

Matrix::LUPDecomposition#determinant -> Numeric (313.0)

元の行列の行列式の値を返します。 LUP 分解の結果を利用して計算します。

...元の行列の行列式の値を返します。
LUP 分解の結果を利用して計算します。

@see Matrix#determinant...

Matrix (55.0)

数Numericを要素とする行列を扱うクラスです。

...a(m-1,n-1) ]

のように、縦横の表にあらわしたものを(m,n)型の行列といいます。
m=nの行列をm次の正方行列(square matrix)といいます。
インデックスは 0 から始まることに注意してください。

上からi番目の横の数の並びを第i行(t...

絞り込み条件を変える

Matrix#real? -> bool (55.0)

行列の全要素が実(Numeric#real?)であれば true を返します。

...が0でも偽を返します。

//emlist[例][ruby]{
require 'matrix'
Matrix
[[1, 0], [0, 1]].real? # => true
Matrix
[[Complex(0, 1), 0], [0, 1]].real? # => false
# 要素が実数であっても Complex オブジェクトなら偽を返す。
Matrix
[[Complex(1, 0), 0], [0, 1]].real? # => false
//}...

Vector (55.0)

数 Numeric を要素とするベクトルを扱うクラスです。 Vector オブジェクトは Matrix オブジェクトとの演算においては列ベクトルとして扱われます。

...数 Numeric を要素とするベクトルを扱うクラスです。
Vector オブジェクトは Matrix オブジェクトとの演算においては列ベクトルとして扱われます。

ベクトルの要素のインデックスは 0 から始まることに注意してください。...

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

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

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

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

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

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

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

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

Vector#*(other) -> Vector (25.0)

self の各要素に数 other を乗じたベクトルを返します。

...ルを返します。

@param other self の各要素に掛ける Numeric オブジェクトを指定します。

//emlist[例][ruby]{
require 'matrix'
a = [1, 2, 3.5, 100]
v1 = Vector.elements(a)
p v1.*(2) # => Vector[2, 4, 7.0, 200]
p v1.*(-1.5) # => Vector[-1.5, -3.0, -5.25, -150.0]
//}...

絞り込み条件を変える

Vector#/(other) -> Vector (25.0)

self の各要素を数 other で割ったベクトルを返します。

...self の各要素を数 other で割ったベクトルを返します。

@param other self の各要素を割る Numeric オブジェクトを指定します。
@raise ExceptionForMatrix::ErrOperationNotDefined other が Vector や Matrix
の場合に発生します...

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

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

...を返します。

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

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

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

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

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

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

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

Vector#*(m) -> Matrix (10.0)

自分自身を列ベクトル(行列)に変換して (実際には Matrix.column_vector(self) を適用) から、行列 m を右から乗じた行列 (Matrix クラス) を返します。

...を列ベクトル(行列)に変換して (実際には Matrix.column_vector(self) を適用) から、行列 m を右から乗じた行列 (Matrix クラス) を返します。

@param m 右から乗算を行う行列
@raise ExceptionForMatrix::ErrDimensionMismatch 次元が合わない場合に発...
...生します

=== 注意

引数の行列 m は自分自身を列ベクトルとした場合に乗算が定義できる行列である必要があります。

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

v = Vector[1, 2]
a = [4, 5, 6]
m = Matrix[a]

p v * m # => Matrix[[4, 5, 6], [8, 10, 12]]
//}...