types
Class SparseVector

java.lang.Object
  extended by types.SparseVector

public class SparseVector
extends Object

a sparse vector implementation. Not necessarily the most efficient.

Author:
kuzman

Constructor Summary
SparseVector()
           
 
Method Summary
 void add(int index, double value)
           
 int getIndexAt(int i)
           
 double getValueAt(int i)
           
 int numEntries()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SparseVector

public SparseVector()
Method Detail

add

public void add(int index,
                double value)

getIndexAt

public int getIndexAt(int i)

getValueAt

public double getValueAt(int i)

numEntries

public int numEntries()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009. All Rights Reserved.