#include "sparsematrix.h" SparseMatrix::SparseMatrix(int nrows, int ncols) : Matrix(nrows, ncols) { } ValType & SparseMatrix::operator()(int i, int j) { return _values[j + i * _ncols]; }