grinda.test
Class SparseVector
java.lang.Object
grinda.test.SparseVector
public class SparseVector
- extends java.lang.Object
An implementation of a sparse vector
- Version:
- 1.0
- Author:
- Sirio Capizzi
Method Summary |
double |
get(int index)
|
int |
getLength()
|
void |
set(int index,
double v)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SparseVector
public SparseVector(byte[] data)
SparseVector
public SparseVector(byte[] data,
int start,
int length)
get
public double get(int index)
set
public void set(int index,
double v)
getLength
public int getLength()
Copyright © 2006 Sirio Capizzi. All Rights Reserved.