545件ヒット
[1-100件を表示]
(0.114秒)
別のキーワード
ライブラリ
- matrix (545)
キーワード
- [] (12)
- []= (7)
- adjugate (12)
- antisymmetric? (7)
- coerce (12)
-
cofactor
_ expansion (12) - collect (24)
- collect! (14)
- column (24)
- component (12)
- det (12)
- determinant (12)
- each (24)
-
each
_ with _ index (24) - eigen (12)
- eigensystem (12)
- element (12)
-
entrywise
_ product (8) -
find
_ index (36) -
hadamard
_ product (8) - hstack (12)
- index (36)
-
laplace
_ expansion (12) - lup (12)
-
lup
_ decomposition (12) - map (24)
- map! (14)
- minor (24)
- rect (12)
- rectangular (12)
- regular? (12)
- row (24)
-
skew
_ symmetric? (7) - tr (12)
- trace (12)
- vstack (12)
検索結果
先頭5件
- Matrix
# cofactor _ expansion(row: nil , column: nil) -> object | Integer | Rational | Float - Matrix
# laplace _ expansion(row: nil , column: nil) -> object | Integer | Rational | Float - Matrix
# minor(from _ row , row _ size , from _ col , col _ size) -> Matrix - Matrix
# minor(from _ row . . to _ row , from _ col . . to _ col) -> Matrix - Matrix
# []=(row , col , v)
-
Matrix
# cofactor _ expansion(row: nil , column: nil) -> object | Integer | Rational | Float (38.0) -
row 行、もしくは column 列に関するラプラス展開をする。
...けです。かわりにMatrix#determinant を
利用すべきです。
変則的な形状の行列に対してはそれ以上の意味を持ちます。例えば
row行/column列が行列やベクトルである場合には
//emlist[例][ruby]{
require 'matrix'
# Matrix[[7,6], [3,9]].laplace_expa......=> 45
Matrix[[Vector[1, 0], Vector[0, 1]], [2, 3]].laplace_expansion(row: 0) # => Vector[3, -2]
//}
@param row 行
@param column 列
@raise ArgumentError row と column を両方指定した、もしくは両方とも指定していない、場合に発生します
@raise ExceptionForMatrix::ErrD......imensionMismatch 行列が正方でない場合に発生します
@see Matrix#cofactor... -
Matrix
# laplace _ expansion(row: nil , column: nil) -> object | Integer | Rational | Float (38.0) -
row 行、もしくは column 列に関するラプラス展開をする。
...けです。かわりにMatrix#determinant を
利用すべきです。
変則的な形状の行列に対してはそれ以上の意味を持ちます。例えば
row行/column列が行列やベクトルである場合には
//emlist[例][ruby]{
require 'matrix'
# Matrix[[7,6], [3,9]].laplace_expa......=> 45
Matrix[[Vector[1, 0], Vector[0, 1]], [2, 3]].laplace_expansion(row: 0) # => Vector[3, -2]
//}
@param row 行
@param column 列
@raise ArgumentError row と column を両方指定した、もしくは両方とも指定していない、場合に発生します
@raise ExceptionForMatrix::ErrD......imensionMismatch 行列が正方でない場合に発生します
@see Matrix#cofactor... -
Matrix
# minor(from _ row , row _ size , from _ col , col _ size) -> Matrix (32.0) -
selfの部分行列を返します。
...号..終了列番号
@param from_row 部分行列の開始行(0オリジンで指定)
@param row_size 部分行列の行サイズ
@param from_col 部分行列の開始列(0オリジンで指定)
@param col_size 部分行列の列サイズ
//emlist[例][ruby]{
require '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]]
//}... -
Matrix
# minor(from _ row . . to _ row , from _ col . . to _ col) -> Matrix (32.0) -
selfの部分行列を返します。
...号..終了列番号
@param from_row 部分行列の開始行(0オリジンで指定)
@param row_size 部分行列の行サイズ
@param from_col 部分行列の開始列(0オリジンで指定)
@param col_size 部分行列の列サイズ
//emlist[例][ruby]{
require '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]]
//}... -
Matrix
# []=(row , col , v) (26.0) -
行が row、列が col である範囲を v に変更する。
...が row、列が col である範囲を v に変更する。
@param row self の変更する行の範囲を Integer か Range で指定します。
@param col self の変更する列の範囲を Integer か Range で指定します。
@param v セットする要素を指定します。......す。
v が Matrix のとき、変更の対象範囲と行数・列数が同じである必要があります。
v が上記以外のとき、変更の対象範囲の全ての要素を v に変更します。
//emlist[][ruby]{
require 'matrix'
m = Matrix[[0, 0], [0, 0]]
m[0, 1......1] = 9
p m # => Matrix[[0, 6], [0, 9]]
m = Matrix[[0, 0, 0], [0, 0, 0], [0, 0, 0]]
m[0, 0..-1] = 5
m[1, 0..1] = Vector[2, 4]
m[2, 0..2] = Matrix[[3, 6, 9]]
p m #=> Matrix[[5, 5, 5], [2, 4, 0], [3, 6, 9]]
m = Matrix[[0, 0, 0], [0, 0, 0], [0, 0, 0]]
m[0..2, 0..1] = 9
p m # => Matrix[[9, 9, 0], [9,... -
Matrix
# hstack(*matrices) -> Matrix (26.0) -
行列 self と matrices を横に並べた行列を生成します。
...ces を横に並べた行列を生成します。
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... -
Matrix
# [](i , j) -> () (20.0) -
(i,j)要素を返します。 行列の範囲外の値を指定した場合には nil を返します。
...合には nil を返します。
@param i 要素の行成分を0オリジンで指定します。
@param j 要素の列成分を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[0, 0] # => 1
p... -
Matrix
# adjugate -> Matrix (20.0) -
余因子行列を返します。
...余因子行列を返します。
//emlist[例][ruby]{
require 'matrix'
Matrix[[7,6],[3,9]].adjugate # => Matrix[[9, -6], [-3, 7]]
//}
@raise ExceptionForMatrix::ErrDimensionMismatch 行列が正方でない場合に発生します。
@see Matrix#cofactor... -
Matrix
# coerce(other) -> Array (20.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:......0x832df18 @value=(1/2)>, Matrix[[1, 2], [-1.25, 2.2]]]
//}...