idl.tmt.representation.matrix
Class TmtVector

java.lang.Object
  |
  +--idl.tmt.representation.matrix.TmtVector

public class TmtVector
extends java.lang.Object

An encapsulated version of colt's DoubleMatrix1D, intended for use with the TmtMatrix class.

Author:
miles

Field Summary
protected  DoubleMatrix1D theVector
           
 
Constructor Summary
TmtVector(java.util.ArrayList a)
          constructor for a vector from an arrayList of Doubles
TmtVector(DoubleMatrix1D v)
          constructor for a vector from a colt 1D matrix
 
Method Summary
 void showVector()
          prints the vector contents to stdout
 double[] toArray()
          gets us an array of doubles for this vector
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

theVector

protected DoubleMatrix1D theVector
Constructor Detail

TmtVector

public TmtVector(DoubleMatrix1D v)
constructor for a vector from a colt 1D matrix
Parameters:
v - the 1D matrix to be stored as a vector

TmtVector

public TmtVector(java.util.ArrayList a)
constructor for a vector from an arrayList of Doubles
Parameters:
v - the 1D matrix to be stored as a vector
Method Detail

showVector

public void showVector()
prints the vector contents to stdout

toArray

public double[] toArray()
gets us an array of doubles for this vector
Returns:
an array of n doubles for this n-vector