/* Sparse is an interface for a symmetric sparse matrix class */ interface Sparse { /* Perform a matrix-vector multiplication, y = this * x */ public void matvec (double [1d] single [1d] y, double [1d] single [1d] x); /* Return the matrix dimension. */ public int dim(); }