|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Vec
based on the vector template of Numerical Recipes. abstracts a vector of doubles
| Method Summary | |
|---|---|
double[] |
asArray()
get the data |
Vec |
copy()
return a copy of this, or some version that the user can manipulate at will. |
double |
get(int i)
the i-th element |
void |
set(double[] d)
Copy the vector from an array |
void |
set(int i,
double d)
set the i-th element |
void |
set(Vec v)
Copy the vector from an array |
int |
size()
the size of the vector |
| Method Detail |
|---|
int size()
double get(int i)
void set(int i,
double d)
i - the element to setd - the value to set it to
java.lang.UnsupportedOperationException - if the vector is immutablevoid set(double[] d)
d - the array to copy from
java.lang.UnsupportedOperationException - if the vector is immutablevoid set(Vec v)
v - the vector to copy from
java.lang.UnsupportedOperationException - if the vector is immutableVec copy()
double[] asArray()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||