154件ヒット
[1-100件を表示]
(0.021秒)
種類
- インスタンスメソッド (132)
- クラス (22)
クラス
- Matrix (77)
-
Matrix
:: LUPDecomposition (22) - Vector (33)
検索結果
先頭5件
-
Matrix
# det -> Numeric (104.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 (104.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 (104.0) -
元の行列の行列式の値を返します。 LUP 分解の結果を利用して計算します。
...元の行列の行列式の値を返します。
LUP 分解の結果を利用して計算します。
@see Matrix#determinant... -
Matrix
:: LUPDecomposition # determinant -> Numeric (104.0) -
元の行列の行列式の値を返します。 LUP 分解の結果を利用して計算します。
...元の行列の行列式の値を返します。
LUP 分解の結果を利用して計算します。
@see Matrix#determinant... -
Matrix (18.0)
-
数Numericを要素とする行列を扱うクラスです。
...数Numericを要素とする行列を扱うクラスです。
行列
m * n 個の数a(i,j)を
[ a(0,0) a(0,1) a(0,2) a(0,3) ... a(0,n-1) ]
[ a(1,0) a(1,1) a(1,2) a(1,3) ... a(1,n-1) ]
[ a(2,0) a(2,1) a(2,2) a(2,3) ... a(2,n-1) ]
[ ]
[......a(m-1,n-1) ]
のように、縦横の表にあらわしたものを(m,n)型の行列といいます。
m=nの行列をm次の正方行列(square matrix)といいます。
インデックスは 0 から始まることに注意してください。
上からi番目の横の数の並びを第i行(t... -
Matrix
# real? -> bool (18.0) -
行列の全要素が実(Numeric#real?)であれば true を返します。
...行列の全要素が実(Numeric#real?)であれば true を返します。
Complexオブジェクトを要素に持つ場合は虚部が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 (18.0)
-
数 Numeric を要素とするベクトルを扱うクラスです。 Vector オブジェクトは Matrix オブジェクトとの演算においては列ベクトルとして扱われます。
...数 Numeric を要素とするベクトルを扱うクラスです。
Vector オブジェクトは Matrix オブジェクトとの演算においては列ベクトルとして扱われます。
ベクトルの要素のインデックスは 0 から始まることに注意してください。... -
Matrix
# *(other) -> Matrix (8.0) -
self の各成分に数 other を掛けた行列を返します。
...self の各成分に数 other を掛けた行列を返します。
@param other self の各成分に掛ける Numeric オブジェクトを指定します。... -
Matrix
# / (other) -> Matrix (8.0) -
self の各成分を数 other で割った行列を返します。
...self の各成分を数 other で割った行列を返します。
@param other self の各成分を割る Numeric オブジェクトを指定します。... -
Vector
# *(other) -> Vector (8.0) -
self の各要素に数 other を乗じたベクトルを返します。
...要素に数 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) # => V...