1件ヒット
[1-1件を表示]
(0.032秒)
ライブラリ
- matrix (1)
検索結果
-
Matrix
. empty(row _ size=0 , column _ size=0) -> Matrix (63646.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...