るりまサーチ

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

別のキーワード

  1. openssl t61string
  2. asn1 t61string
  3. matrix t
  4. t61string new
  5. fiddle type_size_t

クラス

キーワード

検索結果

<< 1 2 3 > >>

Vector#*(m) -> Matrix (21222.0)

自分自身を列ベクトル(行列)に変換して (実際には Matrix.column_vector(self) を適用) から、行列 m を右から乗じた行列 (Matrix クラス) を返します。

...クトル(行列)に変換して (実際には Matrix.column_vector(self) を適用) から、行列 m を右から乗じた行列 (Matrix クラス) を返します。

@
param m 右から乗算を行う行列
@
raise ExceptionForMatrix::ErrDimensionMismatch 次元が合わない場合に発生しま...
...

=== 注意

引数の行列 m は自分自身を列ベクトルとした場合に乗算が定義できる行列である必要があります。

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

v = Vector[1, 2]
a = [4, 5, 6]
m = Matrix[a]

p v * m # => Matrix[[4, 5, 6], [8, 10, 12]]
//}...

Matrix#*(m) -> Matrix | Vector (21216.0)

self に行列またはベクトル m を右から乗じた行列を返します。

...た行列を返します。

m が Vector オブジェクトなら返り値も Vector オブジェクトになります。

@
param m 右からの乗算が定義可能な行列やベクトルを指定します。

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

Vector#*(other) -> Vector (21212.0)

self の各要素に数 other を乗じたベクトルを返します。

...数 other を乗じたベクトルを返します。

@
param other self の各要素に掛ける Numeric オブジェクトを指定します。

//emlist[例][ruby]{
require 'matrix'
a = [1, 2, 3.5, 100]
v1 = Vector.elements(a)
p v1.*(2) # => Vector[2, 4, 7.0, 200]
p v1.*(-1.5) # => Vector[-1....

Matrix#*(other) -> Matrix (21211.0)

self の各成分に数 other を掛けた行列を返します。

...self の各成分に数 other を掛けた行列を返します。

@
param other self の各成分に掛ける Numeric オブジェクトを指定します。...

Matrix#**(n) -> Matrix (9215.0)

self の n 乗を返します。

...self の n 乗を返します。

@
param n べき数の指定
@
raise ExceptionForMatrix::ErrNotRegular n が 0 以下で、行列が正則でない場合に発生します...

絞り込み条件を変える

Matrix#lup_decomposition -> Matrix::LUPDecomposition (6233.0)

行列の LUP 分解を保持したオブジェクトを返します。

...

Matrix
::LUPDecomposition は to_ary を定義しているため、
多重代入によって3つの行列(下三角行列、上三角行列、置換行列)
を得ることができます。これを [L, U, P] と書くと、
L*U = P*self を満たします。

//emlist[例][ruby]{
require 'matrix'...
...a = Matrix[[1, 2], [3, 4]]
l, u, p = a.lup
l.lower_triangular? # => true
u.upper_triangular? # => true
p.permutation? # => true
l * u == p * a # => true
a.lup.solve([2, 5]) # => Vector[(1/1), (1/2)]
//}

@
see Matrix::LUPDecomposition...

Matrix#hstack(*matrices) -> Matrix (6227.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...

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

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

...n次元ベクトルでなければなりません。

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

Vector#independent?(*vectors) -> bool (6215.0)

self とベクトルの列 vectors が線形独立であれば true を返します。

...self とベクトルの列 vectors が線形独立であれば true を返します。

require 'matrix'
Vector.independent?(self, *vectors)

と同じです。

@
param vectors 線形独立性を判定するベクトル列...
<< 1 2 3 > >>