com.browseengine.bobo.util
Class PrimitiveMatrix

java.lang.Object
  extended by com.browseengine.bobo.util.PrimitiveMatrix
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
FloatMatrix, IntMatrix

public abstract class PrimitiveMatrix
extends Object
implements Serializable

See Also:
Serialized Form

Field Summary
protected  int _colCount
           
protected  Object _matrix
           
protected  int _rowCount
           
 
Constructor Summary
protected PrimitiveMatrix(Class type)
           
protected PrimitiveMatrix(Class type, int[] sizes)
           
 
Method Summary
 void ensureCapacity(int x, int y)
           
protected  void expand(int rUpto, int cUpTo)
           
protected  void expandCols(int upTo)
           
protected  void expandRows(int upTo)
           
 void seal()
          called to shrink the array size to the current # of elements to save memory.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_matrix

protected Object _matrix

_rowCount

protected int _rowCount

_colCount

protected int _colCount
Constructor Detail

PrimitiveMatrix

protected PrimitiveMatrix(Class type,
                          int[] sizes)

PrimitiveMatrix

protected PrimitiveMatrix(Class type)
Method Detail

expandRows

protected void expandRows(int upTo)

expandCols

protected void expandCols(int upTo)

expand

protected void expand(int rUpto,
                      int cUpTo)

ensureCapacity

public void ensureCapacity(int x,
                           int y)

seal

public void seal()
called to shrink the array size to the current # of elements to save memory.


toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011. All Rights Reserved.