るりまサーチ

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

別のキーワード

  1. _builtin -
  2. open-uri open
  3. irb/input-method new
  4. irb/input-method gets
  5. matrix -

キーワード

検索結果

<< 1 2 3 ... > >>

Matrix#-(m) -> Matrix (21202.0)

self から行列mを減算した行列を返します。 self の column_size が 1 なら Vector オブジェクトも指定出来ます。

...した行列を返します。
self の column_size が 1 なら Vector オブジェクトも指定出来ます。

@param m 減算する行列。減算可能な行列やベクトルを指定します。

@raise ExceptionForMatrix::ErrDimensionMismatch 次元が合わない場合に発生します...

Vector#-(v) -> Vector | Matrix (21202.0)

self からベクトル v を減じたベクトルを返します。

...は column_size が 1 の Matrix オブジェクトも指定できます。
その場合は返り値も Matrix オブジェクトになります。

@param v 減算するベクトル。減算可能な行列やベクトルを指定します。

@raise ExceptionForMatrix::ErrDimensionMismatch 自分...

Vector#r -> Float (18203.0)

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

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

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

@see Vector#normalize...

Vector#cross_product(*vs) -> Vector (9320.0)

self とベクトル vs とのクロス積を返します。

...
n-1個のn次元ベクトルが張る空間と
直交するベクトルを返します。

self の次元が n であるとき、 vs は n-2 個の
n次元ベクトルでなければなりません。

@param vs クロス積を取るベクトルの集合
@raise ExceptionForMatrix::ErrOperationNo...
...tDefined self の
次元が1以下であるときに発生します。
@raise ArgumentError vs のベクトルの個数が n-2 以外である場合に発生します。...

Matrix#antisymmetric? -> bool (9232.0)

行列が反対称行列 (交代行列、歪〔わい〕対称行列とも) ならば true を返します。

...true を返します。

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

//emlist[][ruby]{
r
equire '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 (9232.0)

行列が反対称行列 (交代行列、歪〔わい〕対称行列とも) ならば true を返します。

...true を返します。

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

//emlist[][ruby]{
r
equire '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#-@ -> Matrix (9202.0)

単項 -。各要素の符号を反転させた行列を返します。

...単項 -。各要素の符号を反転させた行列を返します。...

Matrix#lower_triangular? -> bool (9202.0)

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

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

Matrix#symmetric? -> bool (9202.0)

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

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

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

Matrix#upper_triangular? -> bool (9202.0)

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

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

絞り込み条件を変える

<< 1 2 3 ... > >>