るりまサーチ

最速Rubyリファレンスマニュアル検索!
21件ヒット [1-21件を表示] (0.014秒)
トップページ > ライブラリ:matrix[x] > クエリ:matrix[x] > クエリ:combine[x]

別のキーワード

  1. matrix collect
  2. matrix map
  3. matrix index
  4. matrix each
  5. matrix []

検索結果

Matrix.combine(*matrices) {|*elements| ... } -> Matrix (35269.0)

要素ごとにブロックを呼び出した結果を組み合わせた Matrix を返します。

...ごとにブロックを呼び出した結果を組み合わせた Matrix を返します。

//emlist[例][ruby]{
require 'matrix'
x = Matrix[[6, 6], [4, 4]]
y = Matrix[[1, 2], [3, 4]]
Matrix
.combine(x, y) {|a, b| a - b} # => Matrix[[5, 4], [1, 0]]
//}

@param matrices 並べる行列。すべて...
...の行列の行数と列数が一致していなければならない
@raise ExceptionForMatrix::ErrDimensionMismatch 行や列の要素数が一致しない時に発生します
@see Matrix#combine...

Matrix#combine(*matrices) {|*elements| ... } -> Matrix (35244.0)

要素ごとにブロックを呼び出した結果を組み合わせた Matrix を返します。

...要素ごとにブロックを呼び出した結果を組み合わせた Matrix を返します。

Matrix
.combine(self, *matrices) { ... } と同じです。

@see Matrix.combine...

Matrix.combine(*matrices) -> Enumerator (35169.0)

要素ごとにブロックを呼び出した結果を組み合わせた Matrix を返します。

...ごとにブロックを呼び出した結果を組み合わせた Matrix を返します。

//emlist[例][ruby]{
require 'matrix'
x = Matrix[[6, 6], [4, 4]]
y = Matrix[[1, 2], [3, 4]]
Matrix
.combine(x, y) {|a, b| a - b} # => Matrix[[5, 4], [1, 0]]
//}

@param matrices 並べる行列。すべて...
...の行列の行数と列数が一致していなければならない
@raise ExceptionForMatrix::ErrDimensionMismatch 行や列の要素数が一致しない時に発生します
@see Matrix#combine...