Posts tagged ‘Create Matrix’

Can I instanciate a Matrix without specifying its size?

It is possible to create a zero size matrix:

Matrix m = MatrixFactory.zeros(0, 0);

Create a sparse matrix

Matrix m = MatrixFactory.sparse(10, 10);

Create empty matrices

Matrix m = MatrixFactory.zeros(10, 10);