Flowdock
method

empty

Importance_1
v1_9_3_125 - Show latest stable - 0 notes - Class: Matrix
empty(row_size = 0, column_size = 0) public

Creates a empty matrix of row_size x column_size. At least one of row_size or column_size must be 0.

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]]
Show source
Register or log in to add new notes.