るりまサーチ

最速Rubyリファレンスマニュアル検索!
22件ヒット [1-22件を表示] (0.017秒)
トップページ > クエリ:self[x] > クエリ:vstack[x]

別のキーワード

  1. object yield_self
  2. _builtin yield_self
  3. _builtin self
  4. tracepoint self
  5. codeobject document_self

ライブラリ

クラス

検索結果

Matrix#vstack -> Matrix (18141.0)

行列 self と matrices を縦に並べた行列を生成します。

...行列 self と matrices を縦に並べた行列を生成します。

Matrix.vstack(self, *matrices) と同じです。

//emlist[例][ruby]{
require 'matrix'
x = Matrix[[1, 2], [3, 4]]
y = Matrix[[5, 6], [7, 8]]
x.vstack(y) # => Matrix[[1, 2], [3, 4], [5, 6], [7, 8]]
//}

@see Matrix.vstack, Matr...

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