Parallel Colt 0.7.2

cern.colt.matrix.io
Class MatrixSize

java.lang.Object
  extended by cern.colt.matrix.io.MatrixSize

public class MatrixSize
extends Object

Contains the size of a matrix stored in the Matrix Market exchange format


Constructor Summary
MatrixSize(int numRows, int numColumns, int numEntries)
          Constructor for MatrixSize
MatrixSize(int numRows, int numColumns, MatrixInfo info)
          Constructor for MatrixSize
 
Method Summary
 boolean isSquare()
          Returns true if the matrix is square, else false
 int numColumns()
          Returns the number of columns in the matrix
 int numEntries()
          Returns the number of entries stored
 int numRows()
          Returns the number of rows in the matrix
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MatrixSize

public MatrixSize(int numRows,
                  int numColumns,
                  MatrixInfo info)
Constructor for MatrixSize

Parameters:
numRows - Number of rows in the matrix
numColumns - Number of columns in the matrix
info - Info on the matrix

MatrixSize

public MatrixSize(int numRows,
                  int numColumns,
                  int numEntries)
Constructor for MatrixSize

Parameters:
numRows - Number of rows in the matrix
numColumns - Number of columns in the matrix
numEntries - Number of entries stored
Method Detail

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()
Returns true if the matrix is square, else false


Parallel Colt 0.7.2

Jump to the Parallel Colt Homepage