るりまサーチ

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

別のキーワード

  1. rbconfig ruby
  2. fiddle ruby_free
  3. fiddle build_ruby_platform
  4. rake ruby
  5. rubygems/defaults ruby_engine

ライブラリ

クラス

検索結果

Matrix.hstack(*matrices) -> Matrix (18138.0)

行列 matrices を横に並べた行列を生成します。

...ます。

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

@
param matrices 並べる行列。すべての行列の行数が一致していなければならない
@
raise ExceptionForMatrix::E...
...rrDimensionMismatch 行数の異なる行列がある場合に発生します
@
see Matrix.vstack, Matrix#hstack...

Matrix.vstack(*matrices) -> Matrix (31.0)

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

...す。

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

@
param matrices 並べる行列。すべての行列の列数が一致していなければならない
@
raise ExceptionForMatrix::...
...ErrDimensionMismatch 列数の異なる行列がある場合に発生します
@
see Matrix.hstack, Matrix#vstack...