SuanShu, a Java numerical and statistical library

com.numericalmethod.suanshu.matrix.doubles.matrixtype.sparse
Class SparseVector.Entry

java.lang.Object
  extended by com.numericalmethod.suanshu.matrix.doubles.matrixtype.sparse.SparseVector.Entry
Enclosing class:
SparseVector

public static class SparseVector.Entry
extends java.lang.Object

This class represents an entry in a SparseVector.


Method Summary
 int index()
          Get the index of this entry in the sparse vector.
 java.lang.String toString()
           
 double value()
          Get the value of this entry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

index

public int index()
Get the index of this entry in the sparse vector.

Returns:
the index

value

public double value()
Get the value of this entry.

Returns:
the value

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

SuanShu, a Java numerical and statistical library

Copyright © 2011 Numerical Method Inc. Ltd. All Rights Reserved.