vkostyukov/la4j

SparseMatrix.zero uses CCSMatrix instead of CRSMatrix?

alexanderwlee opened this issue · 0 comments

Please correct me if I am wrong, but it seems like the default matrix for the SparseMatrix class is the CRSMatrix. If this is the case, why are we calling CCSMatrix.zero in SparseMatrix.zero? Shouldn't the method call CRSMatrix.zero instead?

/**
* Creates a zero {@link SparseMatrix} of the given shape:
* {@code rows} x {@code columns}.
*/
public static SparseMatrix zero(int rows, int columns) {
return CCSMatrix.zero(rows, columns);
}

Anyways, thanks for the amazing library!