/** * copy contructor * * @param matrix */ public SparseMatrix(SparseMatrix matrix) { for (SparseVector s : matrix) { add(s.copy()); } }