るりまサーチ (Ruby 2.3.0)

最速Rubyリファレンスマニュアル検索!
49件ヒット [1-49件を表示] (0.130秒)

別のキーワード

  1. etc sc_xopen_enh_i18n
  2. rsa n
  3. rsa n=
  4. openssl n
  5. openssl n=

検索結果

Matrix::EigenvalueDecomposition#eigenvector_matrix_inv -> Matrix (72910.0)

左固有ベクトルを縦に並べた行列を返します。

...左固有ベクトルを縦に並べた行列を返します。

これは Matrix::EigenvalueDecomposition#v の逆行列です...

Matrix::EigenvalueDecomposition#eigenvalues -> [Float] (54610.0)

固有値を配列で返します。

固有値を配列で返します。

Matrix::EigenvalueDecomposition#eigenvector_matrix -> Matrix (54610.0)

右固有ベクトルを横に並べた行列を返します。

右固有ベクトルを横に並べた行列を返します。

Matrix::EigenvalueDecomposition#eigenvectors -> [Vector] (54610.0)

右固有ベクトルを配列で返します。

右固有ベクトルを配列で返します。

Matrix::EigenvalueDecomposition#v_inv -> Matrix (54310.0)

左固有ベクトルを縦に並べた行列を返します。

...左固有ベクトルを縦に並べた行列を返します。

これは Matrix::EigenvalueDecomposition#v の逆行列です...

絞り込み条件を変える

Matrix#eigen -> Matrix::EigenvalueDecomposition (37210.0)

行列の固有値と左右の固有ベクトルを保持したオブジェクトを返します。

...行列の固有値と左右の固有ベクトルを保持したオブジェクトを返します。

Matrix
::EigenvalueDecomposition は to_ary を定義しているため、
多重代入によって3つの行列(右固有ベクトル、固有値行列、左固有ベクトル)
を得ることがで...
...ruby]{
require 'matrix'
m = Matrix[[1, 2], [3, 4]]
v, d, v_inv = m.eigensystem
d.diagonal? # => true
v.inv == v_inv # => true
(v * d * v_inv).round(5) == m # => true
//}

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

Matrix#find_index(selector = :all) {|e| ... } -> [Integer, Integer] | nil (37210.0)

指定した値と一致する要素の位置を [row, column] という配列で返します。 ブロックを与えた場合は各要素を引数としてブロックを呼び出し、 返り値が真であった要素の位置を返します。

...で行列のどの部分を探すかを指定します。この引数の意味は
Matrix
#each を参照してください。

//emlist[例][ruby]{
require 'matrix'
Matrix
[ [1,2], [3,4] ].index(&:even?) # => [0, 1]
Matrix
[ [1,1], [1,1] ].index(1, :strict_lower) # => [1, 0]
//}

value を指定せず...

Matrix#find_index(value, selector = :all) -> [Integer, Integer] | nil (37210.0)

指定した値と一致する要素の位置を [row, column] という配列で返します。 ブロックを与えた場合は各要素を引数としてブロックを呼び出し、 返り値が真であった要素の位置を返します。

...で行列のどの部分を探すかを指定します。この引数の意味は
Matrix
#each を参照してください。

//emlist[例][ruby]{
require 'matrix'
Matrix
[ [1,2], [3,4] ].index(&:even?) # => [0, 1]
Matrix
[ [1,1], [1,1] ].index(1, :strict_lower) # => [1, 0]
//}

value を指定せず...

Matrix#eigensystem -> Matrix::EigenvalueDecomposition (36910.0)

行列の固有値と左右の固有ベクトルを保持したオブジェクトを返します。

...行列の固有値と左右の固有ベクトルを保持したオブジェクトを返します。

Matrix
::EigenvalueDecomposition は to_ary を定義しているため、
多重代入によって3つの行列(右固有ベクトル、固有値行列、左固有ベクトル)
を得ることがで...
...ruby]{
require 'matrix'
m = Matrix[[1, 2], [3, 4]]
v, d, v_inv = m.eigensystem
d.diagonal? # => true
v.inv == v_inv # => true
(v * d * v_inv).round(5) == m # => true
//}

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

Matrix#diagonal? -> bool (36610.0)

行列が対角行列ならば true を返します。

...行列が対角行列ならば true を返します。

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

絞り込み条件を変える

Matrix#lower_triangular? -> bool (36610.0)

行列が下三角行列ならば true を返します。

行列が下三角行列ならば true を返します。

Matrix#orthogonal? -> bool (36610.0)

行列が直交行列ならば true を返します。

...行列が直交行列ならば true を返します。

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

Matrix#singular? -> bool (36610.0)

行列が正方で特異なら true を、正則なら false を返します。

...るとは、正則でないことです。
行列式が0であること同値です。

正方行列でない場合には例外 ExceptionForMatrix::ErrDimensionMismatch を
発生させます。

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

Matrix#upper_triangular? -> bool (36610.0)

行列が上三角行列ならば true を返します。

行列が上三角行列ならば true を返します。

Matrix::EigenvalueDecomposition#eigenvalue_matrix -> Matrix (36610.0)

固有値を対角成分に並べた行列を返します。

固有値を対角成分に並べた行列を返します。

絞り込み条件を変える

Matrix::LUPDecomposition#singular? -> bool (36610.0)

元の行列が正方で特異なら true を、正則なら false を返します。 LUP 分解の結果を利用して判定します。

...元の行列が正方で特異なら true を、正則なら false を返します。
LUP 分解の結果を利用して判定します。

@see Matrix#singular?...

Vector#angle_with(v) -> Float (36610.0)

v と self がなす角度を返します。

...require 'matrix'
Vector[1, 0].angle_with(Vector[0, 1]) # => Math::PI/2
//}

@param v このベクトルと self とがなす角度を計算します
@raise ZeroVectorError self もしくは v のどちらかが零ベクトルである場合に
発生します
@raise ExceptionForMatrix::ErrDim...

Vector#magnitude -> Float (36610.0)

ベクトルの大きさ(ノルム)を返します。

...ベクトルの大きさ(ノルム)を返します。

//emlist[例][ruby]{
require 'matrix'
Vector[3, 4].norm # => 5.0
Vector[Complex(0, 1), 0].norm # => 1.0
//}

@see Vector#normalize...

Matrix::EigenvalueDecomposition#v -> Matrix (36010.0)

右固有ベクトルを横に並べた行列を返します。

右固有ベクトルを横に並べた行列を返します。

Matrix#index(selector = :all) {|e| ... } -> [Integer, Integer] | nil (27910.0)

指定した値と一致する要素の位置を [row, column] という配列で返します。 ブロックを与えた場合は各要素を引数としてブロックを呼び出し、 返り値が真であった要素の位置を返します。

...で行列のどの部分を探すかを指定します。この引数の意味は
Matrix
#each を参照してください。

//emlist[例][ruby]{
require 'matrix'
Matrix
[ [1,2], [3,4] ].index(&:even?) # => [0, 1]
Matrix
[ [1,1], [1,1] ].index(1, :strict_lower) # => [1, 0]
//}

value を指定せず...

絞り込み条件を変える

Matrix#index(value, selector = :all) -> [Integer, Integer] | nil (27910.0)

指定した値と一致する要素の位置を [row, column] という配列で返します。 ブロックを与えた場合は各要素を引数としてブロックを呼び出し、 返り値が真であった要素の位置を返します。

...で行列のどの部分を探すかを指定します。この引数の意味は
Matrix
#each を参照してください。

//emlist[例][ruby]{
require 'matrix'
Matrix
[ [1,2], [3,4] ].index(&:even?) # => [0, 1]
Matrix
[ [1,1], [1,1] ].index(1, :strict_lower) # => [1, 0]
//}

value を指定せず...

Matrix#conjugate -> Matrix (27610.0)

複素共役を取った行列を返します。

...複素共役を取った行列を返します。

//emlist[例][ruby]{
require 'matrix'
Matrix
[[Complex(1,2), Complex(0,1), 0], [1, 2, 3]]
# => 1+2i i 0
# 1 2 3
Matrix
[[Complex(1,2), Complex(0,1), 0], [1, 2, 3]].conjugate
# => 1-2i -i 0
# 1 2 3
//}...

Matrix#imaginary -> Matrix (27610.0)

行列の虚部を返します。

...行列の虚部を返します。

//emlist[例][ruby]{
require 'matrix'
Matrix
[[Complex(1,2), Complex(0,1), 0], [1, 2, 3]]
# => 1+2i i 0
# 1 2 3
Matrix
[[Complex(1,2), Complex(0,1), 0], [1, 2, 3]].imaginary
# => 2i i 0
# 0 0 0
//}...

Vector#norm -> Float (27310.0)

ベクトルの大きさ(ノルム)を返します。

...ベクトルの大きさ(ノルム)を返します。

//emlist[例][ruby]{
require 'matrix'
Vector[3, 4].norm # => 5.0
Vector[Complex(0, 1), 0].norm # => 1.0
//}

@see Vector#normalize...

Matrix#round(ndigits = 0) -> Matrix (18910.0)

行列の各要素を指定した桁数で丸めた行列を返します。

行列の各要素を指定した桁数で丸めた行列を返します。

@see Float#round

絞り込み条件を変える

Matrix#row_count -> Integer (18910.0)

行列の行数を返します。

行列の行数を返します。

Matrix#cofactor_expansion(row: nil, column: nil) -> object | Integer | Rational | Float (18610.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#column_count -> Integer (18610.0)

行列の列数を返します。

行列の列数を返します。

Matrix#column_size -> Integer (18610.0)

行列の列数を返します。

行列の列数を返します。

Matrix#inspect -> String (18610.0)

自分自身を見やすい形式に文字列化し、その文字列を返します。

...自分自身を見やすい形式に文字列化し、その文字列を返します。

//emlist[例][ruby]{
require 'matrix'
a1 = [1, 2]
a2 = [3, 4.5]
m = Matrix[a1, a2]

p m.inspect # => "Matrix[[1, 2], [3, 4.5]]"
//}...

絞り込み条件を変える

Matrix#laplace_expansion(row: nil, column: nil) -> object | Integer | Rational | Float (18610.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#rank -> Integer (18610.0)

階数 (rank) を返します。

...め、誤った結果が生じる可能性があることに注意してください。
代わりに、Rational や BigDecimal などの正確なオブジェクトを使用することを検討してください。

//emlist[][ruby]{
require 'matrix'
m = Matrix[[2, 6], [1, 3]]
m.rank # => 1
//}...

Matrix#rank_e -> Integer (18610.0)

階数 (rank) を返します。

...階数 (rank) を返します。

このメソッドは deprecated です。
代わりに Matrix#rank を使ってください。...

Matrix#rectangular -> [Matrix, Matrix] (18610.0)

行列を実部と虚部に分解したものを返します。

...行列を実部と虚部に分解したものを返します。


//emlist[例][ruby]{
m.rect == [m.real, m.imag] # ==> true for all matrices m
//}

@see Matrix#imaginary, Matrix#real...

Vector#inspect -> String (18610.0)

オブジェクトの内容を文字列化します。

オブジェクトの内容を文字列化します。

絞り込み条件を変える

Matrix::EigenvalueDecomposition#d -> Matrix (18010.0)

固有値を対角成分に並べた行列を返します。

固有値を対角成分に並べた行列を返します。

Matrix::EigenvalueDecomposition#to_a -> [Matrix, Matrix, Matrix] (18010.0)

Matrix::EigenvalueDecomposition#v, Matrix::EigenvalueDecomposition#d, Matrix::EigenvalueDecomposition#v_inv をこの順に並べた配列を返します。

...
Matrix
::EigenvalueDecomposition#v,
Matrix
::EigenvalueDecomposition#d,
Matrix
::EigenvalueDecomposition#v_inv
をこの順に並べた配列を返します。...

Matrix::EigenvalueDecomposition#to_ary -> [Matrix, Matrix, Matrix] (18010.0)

Matrix::EigenvalueDecomposition#v, Matrix::EigenvalueDecomposition#d, Matrix::EigenvalueDecomposition#v_inv をこの順に並べた配列を返します。

...
Matrix
::EigenvalueDecomposition#v,
Matrix
::EigenvalueDecomposition#d,
Matrix
::EigenvalueDecomposition#v_inv
をこの順に並べた配列を返します。...

Vector#r -> Float (18010.0)

ベクトルの大きさ(ノルム)を返します。

...ベクトルの大きさ(ノルム)を返します。

//emlist[例][ruby]{
require 'matrix'
Vector[3, 4].norm # => 5.0
Vector[Complex(0, 1), 0].norm # => 1.0
//}

@see Vector#normalize...

Matrix#row_size -> Integer (9610.0)

行列の行数を返します。

行列の行数を返します。

絞り込み条件を変える

Matrix::LUPDecomposition#pivots -> [Integer] (9610.0)

ピボッティングを表す配列を返します。

ピボッティングを表す配列を返します。

Matrix#cofactor(row, column) -> Integer | Rational | Float (610.0)

(row, column)-余因子を返します。

...(row, column)-余因子を返します。

各要素の型によって返り値が変わります。

@param row 行
@param column 列
@raise ExceptionForMatrix::ErrDimensionMismatch 行列が正方でない場合に発生します。
@see Matrix#adjugate...

Matrix#hash -> Integer (610.0)

行列のHash値を返します。

行列のHash値を返します。

Matrix#to_s -> String (610.0)

行列を文字列化し、その文字列を返します。

...行列を文字列化し、その文字列を返します。

//emlist[例][ruby]{
require 'matrix'
a1 = [1, 2]
a2 = [3, 4.5]
m = Matrix[a1, a2]

p m.to_s # => "Matrix[[1, 2], [3, 4.5]]"
//}...

Matrix#tr -> Integer | Float | Rational | Complex (610.0)

トレース (trace) を返します。

...列のトレース (trace) とは、対角要素の和です。

//emlist[例][ruby]{
require 'matrix'
Matrix
[[7,6], [3,9]].trace # => 16
//}

trace は正方行列でのみ定義されます。

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

絞り込み条件を変える

Matrix#trace -> Integer | Float | Rational | Complex (610.0)

トレース (trace) を返します。

...列のトレース (trace) とは、対角要素の和です。

//emlist[例][ruby]{
require 'matrix'
Matrix
[[7,6], [3,9]].trace # => 16
//}

trace は正方行列でのみ定義されます。

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

Vector#hash -> Integer (610.0)

自分自身のハッシュ値を返します。

自分自身のハッシュ値を返します。

Vector#size -> Integer (610.0)

ベクトルの要素数(次元)を返します。

ベクトルの要素数(次元)を返します。

Vector#to_s -> String (610.0)

ベクトル(Vector)から文字列 (String) に変換します。

...ベクトル(Vector)から文字列 (String) に変換します。

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

v = Vector[2, 3, 5, 7, 9]
p v.to_s
# => "Vector[2, 3, 5, 7, 9]"
//}...