1007件ヒット
[1-100件を表示]
(0.076秒)
別のキーワード
クラス
- Matrix (713)
-
Matrix
:: LUPDecomposition (12) - Vector (282)
キーワード
- * (24)
- [] (12)
- []= (21)
- adjugate (12)
-
angle
_ with (12) - antisymmetric? (7)
- coerce (12)
-
cofactor
_ expansion (12) - collect (48)
- collect! (28)
- collect2 (24)
- column (24)
-
column
_ vectors (12) - component (12)
- conj (12)
- conjugate (12)
- covector (12)
- det (12)
- determinant (12)
- each (24)
-
each
_ with _ index (24) - eigen (12)
- eigensystem (12)
- element (12)
-
elements
_ to _ f (12) -
elements
_ to _ i (12) -
elements
_ to _ r (12) -
entrywise
_ product (8) -
find
_ index (36) -
hadamard
_ product (8) - hstack (12)
- imag (12)
- imaginary (12)
- index (36)
- inspect (12)
- inv (12)
- inverse (12)
-
laplace
_ expansion (12) - lup (12)
-
lup
_ decomposition (12) - magnitude (12)
- map (48)
- map! (28)
- map2 (12)
- minor (24)
- norm (12)
- normalize (12)
- rank (12)
- real (12)
- real? (12)
- rect (12)
- rectangular (12)
- regular? (12)
- row (24)
-
row
_ vectors (12) -
skew
_ symmetric? (7) - solve (12)
-
to
_ a (24) -
to
_ s (24) - tr (12)
- trace (12)
- vstack (12)
検索結果
先頭5件
-
Vector
# r -> Float (18116.0) -
ベクトルの大きさ(ノルム)を返します。
...ベクトルの大きさ(ノルム)を返します。
//emlist[例][ruby]{
require 'matrix'
Vector[3, 4].norm # => 5.0
Vector[Complex(0, 1), 0].norm # => 1.0
//}
@see Vector#normalize... -
Matrix
# antisymmetric? -> bool (9115.0) -
行列が反対称行列 (交代行列、歪〔わい〕対称行列とも) ならば true を返します。
...true を返します。
@raise ExceptionForMatrix::ErrDimensionMismatch 行列が正方行列でない場合に発生します
//emlist[][ruby]{
require '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 (9115.0) -
行列が反対称行列 (交代行列、歪〔わい〕対称行列とも) ならば true を返します。
...true を返します。
@raise ExceptionForMatrix::ErrDimensionMismatch 行列が正方行列でない場合に発生します
//emlist[][ruby]{
require '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
//}... -
Vector
# elements _ to _ r -> Vector (6228.0) -
ベクトルの各成分をRationalに変換したベクトルを返します。
...クトルの各成分をRationalに変換したベクトルを返します。
このメソッドは deprecated です。 map(&:to_r) を使ってください。
//emlist[例][ruby]{
require 'matrix'
v = Vector.elements([2.5, 3.0, 5.75, 7])
p v.elements_to_r
# => Vector[(5/2), (3/1), (23/4), (7/1)... -
Matrix
# tr -> Integer | Float | Rational | Complex (6215.0) -
トレース (trace) を返します。
...トレース (trace) を返します。
行列のトレース (trace) とは、対角要素の和です。
//emlist[例][ruby]{
require 'matrix'
Matrix[[7,6], [3,9]].trace # => 16
//}
trace は正方行列でのみ定義されます。
@raise ExceptionForMatrix::ErrDimensionMismatch 行列が... -
Matrix
# trace -> Integer | Float | Rational | Complex (6215.0) -
トレース (trace) を返します。
...トレース (trace) を返します。
行列のトレース (trace) とは、対角要素の和です。
//emlist[例][ruby]{
require 'matrix'
Matrix[[7,6], [3,9]].trace # => 16
//}
trace は正方行列でのみ定義されます。
@raise ExceptionForMatrix::ErrDimensionMismatch 行列が... -
Matrix
# coerce(other) -> Array (6127.0) -
他の数値オブジェクトとの変換を行います。
...をMatrix::Scalarのオブジェクトに変換し、selfとの組を配列として返します。
@param other 変換する数値オブジェクト
//emlist[例][ruby]{
require 'matrix'
a1 = [1, 2]
a2 = [-1.25, 2.2]
m = Matrix[a1, a2]
r = Rational(1, 2)
p m.coerce(r) #=> [#<Matrix::Scalar:0x832d......f18 @value=(1/2)>, Matrix[[1, 2], [-1.25, 2.2]]]
//}... -
Vector
# norm -> Float (6116.0) -
ベクトルの大きさ(ノルム)を返します。
...ベクトルの大きさ(ノルム)を返します。
//emlist[例][ruby]{
require 'matrix'
Vector[3, 4].norm # => 5.0
Vector[Complex(0, 1), 0].norm # => 1.0
//}
@see Vector#normalize... -
Matrix
# cofactor _ expansion(row: nil , column: nil) -> object | Integer | Rational | Float (6115.0) -
row 行、もしくは column 列に関するラプラス展開をする。
...
row 行、もしくは column 列に関するラプラス展開をする。
通常の行列に対してはこれは単に固有値を計算するだけです。かわりにMatrix#determinant を
利用すべきです。
変則的な形状の行列に対してはそれ以上の意味を持ちま......
row行/column列が行列やベクトルである場合には
//emlist[例][ruby]{
require '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
# column _ vectors -> [Vector] (6115.0) -
自分自身を列ベクトルの配列として返します。
...自分自身を列ベクトルの配列として返します。
//emlist[例][ruby]{
require 'matrix'
a1 = [ 1, 2, 3]
a2 = [10, 15, 20]
a3 = [-1, -2, 1.5]
m = Matrix[a1, a2, a3]
p m.column_vectors # => [Vector[1, 10, -1], Vector[2, 15, -2], Vector[3, 20, 1.5]]
//}...