Package de.labathome.trustconstr.matrix
Class SparseMatrix.Factory
java.lang.Object
de.labathome.trustconstr.matrix.SparseMatrix.Factory
- Enclosing class:
- SparseMatrix
Static factories that produce
SparseMatrix instances.-
Method Summary
Modifier and TypeMethodDescriptionstatic SparseMatrixstatic SparseMatrixzeros(long[] size) static SparseMatrixzeros(long rows, long cols)
-
Method Details
-
zeros
- Parameters:
rows- number of rowscols- number of columns- Returns:
- a fresh empty
SparseMatrix
-
zeros
- Parameters:
size- length-2 shape array[rows, cols]- Returns:
- a fresh empty
SparseMatrix
-
copyFromMatrix
- Parameters:
m- source matrix- Returns:
- a fresh
SparseMatrixcontaining the non-zero entries ofm
-