public class Basis extends SparseVector
SparseVector.Entry, SparseVector.Iterator| Constructor and Description |
|---|
Basis(int dim,
int i)
Construct a vector that corresponds to the i-th dimension in Rn.
|
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<Vector> |
getBasis(int dim)
Get the full set of the standard basis vectors.
|
static java.util.List<Vector> |
getBasis(int dim,
int nCols)
Get a subset of the standard basis vectors.
|
add, add, angle, deepCopy, divide, get, innerProduct, iterator, minus, minus, multiply, nNonZeros, norm, norm, opposite, pow, scaled, scaled, set, size, toArray, toString, ZEROpublic Basis(int dim,
int i)
dim - the dimensioni - the i-th dimension in Rnpublic static java.util.List<Vector> getBasis(int dim)
dim - the dimensionpublic static java.util.List<Vector> getBasis(int dim, int nCols)
dim - the dimensionnCols - the number of basis vectors requested; it must be smaller than dimjava.lang.IllegalArgumentException - if there are more columns requested than the dimension