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 List<Vector> |
getBasis(int dim)
Get the full set of the standard basis vectors.
|
static List<Vector> |
getBasis(int dim,
int nCols)
Get a subset of the standard basis vectors.
|
add, add, add, angle, deepCopy, divide, equals, get, hashCode, innerProduct, innerProduct, iterator, leftMultiply, minus, minus, minus, multiply, multiply, nNonZeros, norm, norm, opposite, pow, scaled, scaled, set, size, toArray, toString, ZEROclone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic Basis(int dim,
int i)
dim - the dimensioni - the i-th dimension in Rnpublic static List<Vector> getBasis(int dim)
dim - the dimensionpublic static List<Vector> getBasis(int dim, int nCols)
dim - the dimensionnCols - the number of basis vectors requested; it must be smaller than dimIllegalArgumentException - if there are more columns requested than the dimensionCopyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.