Parallel Colt 0.7.2

cern.colt.matrix.io
Class VectorSize

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

public class VectorSize
extends Object

Contains the size of a vector stored in a variant of the Matrix Market exchange format


Constructor Summary
VectorSize(int size)
          Constructor for VectorSize.
VectorSize(int size, int numEntries)
          Constructor for VectorSize
 
Method Summary
 int numEntries()
          Returns the number of entries in the vector
 int size()
          Returns the size of the vector
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VectorSize

public VectorSize(int size)
Constructor for VectorSize. Assumes dense format

Parameters:
size - Size of the matrix

VectorSize

public VectorSize(int size,
                  int numEntries)
Constructor for VectorSize

Parameters:
size - Size of the matrix
numEntries - Number of entries stored
Method Detail

size

public int size()
Returns the size of the vector


numEntries

public int numEntries()
Returns the number of entries in the vector


Parallel Colt 0.7.2

Jump to the Parallel Colt Homepage