Package no.uib.cipr.matrix.io
Class MatrixSize
java.lang.Object
no.uib.cipr.matrix.io.MatrixSize
Contains the size of a matrix stored in the Matrix Market exchange format
-
Constructor Summary
ConstructorsConstructorDescriptionMatrixSize(int numRows, int numColumns, int numEntries) Constructor for MatrixSizeMatrixSize(int numRows, int numColumns, MatrixInfo info) Constructor for MatrixSize -
Method Summary
-
Constructor Details
-
MatrixSize
Constructor for MatrixSize- Parameters:
numRows- Number of rows in the matrixnumColumns- Number of columns in the matrixinfo- Info on the matrix
-
MatrixSize
public MatrixSize(int numRows, int numColumns, int numEntries) Constructor for MatrixSize- Parameters:
numRows- Number of rows in the matrixnumColumns- Number of columns in the matrixnumEntries- Number of entries stored
-
-
Method Details
-
numRows
public int numRows()Returns the number of rows in the matrix -
numColumns
public int numColumns()Returns the number of columns in the matrix -
numEntries
public int numEntries()Returns the number of entries stored -
isSquare
public boolean isSquare()Returnstrueif the matrix is square, elsefalse
-