るりまサーチ (Ruby 3.3)

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

別のキーワード

  1. _builtin size
  2. _builtin size?
  3. rexml/document size
  4. net/imap size
  5. matrix column_size

クラス

検索結果

Matrix.empty(row_size=0, column_size=0) -> Matrix (55417.0)

要素を持たない行列を返します。

...一方は0である必要があります。

//emlist[例][ruby]{
require 'matrix'
m = Matrix.empty(2, 0)
m == Matrix[ [], [] ]
# => true
n = Matrix.empty(0, 3)
n == Matrix.columns([ [], [], [] ])
# => true
m * n
# => Matrix[[0, 0, 0], [0, 0, 0]]
//}

@param row_size 行列の行数
@param column_si...