1102件ヒット
[1-100件を表示]
(0.115秒)
ライブラリ
- matrix (1102)
キーワード
- * (22)
- ** (11)
- + (11)
- +@ (11)
- - (11)
- -@ (11)
-
/ (22) - == (11)
- [] (11)
- []= (6)
- adjugate (11)
- antisymmetric? (6)
- clone (5)
- coerce (11)
- cofactor (11)
-
cofactor
_ expansion (11) - collect (22)
- collect! (12)
- column (22)
-
column
_ count (11) -
column
_ size (11) -
column
_ vectors (11) - combine (7)
- component (11)
- conj (11)
- conjugate (11)
- det (11)
-
det
_ e (11) - determinant (11)
-
determinant
_ e (11) - diagonal? (11)
- each (22)
-
each
_ with _ index (22) - eigen (11)
- eigensystem (11)
- element (11)
-
elements
_ to _ f (11) -
elements
_ to _ i (11) -
elements
_ to _ r (11) - empty? (11)
-
entrywise
_ product (7) - eql? (11)
-
find
_ index (33) -
first
_ minor (11) -
hadamard
_ product (7) - hash (11)
- hermitian? (11)
- hstack (11)
- imag (11)
- imaginary (11)
- index (33)
- inspect (11)
- inv (11)
- inverse (11)
-
laplace
_ expansion (11) -
lower
_ triangular? (11) - lup (11)
-
lup
_ decomposition (11) - map (22)
- map! (12)
- minor (22)
- normal? (11)
- orthogonal? (11)
- permutation? (11)
- rank (11)
-
rank
_ e (11) - real (11)
- real? (11)
- rect (11)
- rectangular (11)
- regular? (11)
- round (11)
- row (22)
-
row
_ count (11) -
row
_ size (11) -
row
_ vectors (11) - singular? (11)
-
skew
_ symmetric? (6) - square? (11)
- symmetric? (11)
- t (11)
-
to
_ a (11) -
to
_ s (11) - trace (11)
- transpose (11)
- unitary? (11)
-
upper
_ triangular? (11) - vstack (11)
- zero? (11)
検索結果
先頭5件
-
Matrix
# tr -> Integer | Float | Rational | Complex (21103.0) -
トレース (trace) を返します。
...トレース (trace) を返します。
行列のトレース (trace) とは、対角要素の和です。
//emlist[例][ruby]{
require 'matrix'
Matrix[[7,6], [3,9]].trace # => 16
//}
trace は正方行列でのみ定義されます。
@raise ExceptionForMatrix::ErrDimensionMismatch 行列が... -
Matrix
# entrywise _ product(m) -> Matrix (9202.0) -
アダマール積(要素ごとの積)を返します。
...ダマール積(要素ごとの積)を返します。
@raise ExceptionForMatrix::ErrDimensionMismatch 行や列の要素数が一致しない時に発生します。
//emlist[例][ruby]{
require 'matrix'
Matrix[[1,2], [3,4]].hadamard_product(Matrix[[1,2], [3,2]]) # => Matrix[[1, 4], [9, 8]]
//}... -
Matrix
# trace -> Integer | Float | Rational | Complex (9103.0) -
トレース (trace) を返します。
...トレース (trace) を返します。
行列のトレース (trace) とは、対角要素の和です。
//emlist[例][ruby]{
require 'matrix'
Matrix[[7,6], [3,9]].trace # => 16
//}
trace は正方行列でのみ定義されます。
@raise ExceptionForMatrix::ErrDimensionMismatch 行列が... -
Matrix
# antisymmetric? -> bool (9102.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......Matrix[[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
# lower _ triangular? -> bool (9102.0) -
行列が下三角行列ならば true を返します。
...行列が下三角行列ならば true を返します。... -
Matrix
# skew _ symmetric? -> bool (9102.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......Matrix[[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 (9102.0) -
行列が対称ならば true を返します。
...行列が対称ならば true を返します。
@raise ExceptionForMatrix::ErrDimensionMismatch 行列が正方行列でない場合に発生します... -
Matrix
# upper _ triangular? -> bool (9102.0) -
行列が上三角行列ならば true を返します。
...行列が上三角行列ならば true を返します。... -
Matrix
# transpose -> Matrix (6202.0) -
転置行列 (transpose matrix) を返します。
...転置行列 (transpose matrix) を返します。
self を Matrix のオブジェクトで、(m,n) 型行列としたとき a(j,i) を (i,j) 要素とする (n,m) 型行列を返します。... -
Matrix
# hadamard _ product(m) -> Matrix (6102.0) -
アダマール積(要素ごとの積)を返します。
...ダマール積(要素ごとの積)を返します。
@raise ExceptionForMatrix::ErrDimensionMismatch 行や列の要素数が一致しない時に発生します。
//emlist[例][ruby]{
require 'matrix'
Matrix[[1,2], [3,4]].hadamard_product(Matrix[[1,2], [3,2]]) # => Matrix[[1, 4], [9, 8]]
//}... -
Matrix
# combine(*matrices) {|*elements| . . . } -> Matrix (3202.0) -
要素ごとにブロックを呼び出した結果を組み合わせた Matrix を返します。
...要素ごとにブロックを呼び出した結果を組み合わせた Matrix を返します。
Matrix.combine(self, *matrices) { ... } と同じです。
@see Matrix.combine... -
Matrix
# hstack(*matrices) -> Matrix (3202.0) -
行列 self と matrices を横に並べた行列を生成します。
...行列 self と matrices を横に並べた行列を生成します。
Matrix.hstack(self, *matrices) と同じです。
//emlist[例][ruby]{
require 'matrix'
x = Matrix[[1, 2], [3, 4]]
y = Matrix[[5, 6], [7, 8]]
x.hstack(y) # => Matrix[[1, 2, 5, 6], [3, 4, 7, 8]]
//}
@param matrices 並べる行......列。すべての行列の行数がselfの行数と一致していなければならない
@raise ExceptionForMatrix::ErrDimensionMismatch 行数の異なる行列がある場合に発生します
@see Matrix.hstack, Matrix#vstack...