キーワード
- * (24)
- ** (12)
- + (12)
- - (12)
-
/ (24) - == (12)
- [] (12)
- []= (7)
- coerce (12)
- cofactor (12)
-
cofactor
_ expansion (12) - collect (14)
- collect! (14)
- column (24)
- component (12)
- each (24)
-
each
_ with _ index (24) - element (12)
- eql? (12)
-
find
_ index (36) -
first
_ minor (12) - hstack (12)
- index (36)
-
laplace
_ expansion (12) - map (14)
- map! (14)
- minor (24)
- row (24)
検索結果
先頭5件
-
Matrix
# find _ index(value , selector = :all) -> [Integer , Integer] | nil (3116.0) -
指定した値と一致する要素の位置を [row, column] という配列で返します。 ブロックを与えた場合は各要素を引数としてブロックを呼び出し、 返り値が真であった要素の位置を返します。
...返します。
selector で行列のどの部分を探すかを指定します。この引数の意味は
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 を指定せず、さらにブロックを省略した場合、
Enumerator を返します。
@param value 探索する値
@param selector 探索範囲... -
Matrix
# index(selector = :all) {|e| . . . } -> [Integer , Integer] | nil (3116.0) -
指定した値と一致する要素の位置を [row, column] という配列で返します。 ブロックを与えた場合は各要素を引数としてブロックを呼び出し、 返り値が真であった要素の位置を返します。
...返します。
selector で行列のどの部分を探すかを指定します。この引数の意味は
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 を指定せず、さらにブロックを省略した場合、
Enumerator を返します。
@param value 探索する値
@param selector 探索範囲... -
Matrix
# index(value , selector = :all) -> [Integer , Integer] | nil (3116.0) -
指定した値と一致する要素の位置を [row, column] という配列で返します。 ブロックを与えた場合は各要素を引数としてブロックを呼び出し、 返り値が真であった要素の位置を返します。
...返します。
selector で行列のどの部分を探すかを指定します。この引数の意味は
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 を指定せず、さらにブロックを省略した場合、
Enumerator を返します。
@param value 探索する値
@param selector 探索範囲... -
Matrix
# *(m) -> Matrix | Vector (3111.0) -
self に行列またはベクトル m を右から乗じた行列を返します。
...た行列を返します。
m が Vector オブジェクトなら返り値も Vector オブジェクトになります。
@param m 右からの乗算が定義可能な行列やベクトルを指定します。
@raise ExceptionForMatrix::ErrDimensionMismatch 次元が合わない場合に発生し... -
Matrix
# *(other) -> Matrix (3111.0) -
self の各成分に数 other を掛けた行列を返します。
...self の各成分に数 other を掛けた行列を返します。
@param other self の各成分に掛ける Numeric オブジェクトを指定します。... -
Matrix
# / (m) -> Matrix (3111.0) -
self に行列 m の逆行列を右から乗じた行列を返します。
...行列を返します。
@param m 逆行列を右から乗算する行列。可逆行列でselfと乗算可能な行列を指定します。
@raise ExceptionForMatrix::ErrDimensionMismatch 次元が合わない場合に発生します
@raise ExceptionForMatrix::ErrNotRegular m が正則でない... -
Matrix
# / (other) -> Matrix (3111.0) -
self の各成分を数 other で割った行列を返します。
...self の各成分を数 other で割った行列を返します。
@param other self の各成分を割る Numeric オブジェクトを指定します。... -
Matrix
# **(n) -> Matrix (3110.0) -
self の n 乗を返します。
...self の n 乗を返します。
@param n べき数の指定
@raise ExceptionForMatrix::ErrNotRegular n が 0 以下で、行列が正則でない場合に発生します... -
Matrix
# +(m) -> Matrix (3110.0) -
self に行列 m を加算した行列を返します。 self の column_size が 1 なら Vector オブジェクトも指定出来ます。
...した行列を返します。
self の column_size が 1 なら Vector オブジェクトも指定出来ます。
@param m 加算する行列。加算可能な行列やベクトルを指定します。
@raise ExceptionForMatrix::ErrDimensionMismatch 次元が合わない場合に発生します...