- toArray
Convert the vector to an array of doubles. The array is independent from this
vector data: the eleme
- getEntry
Return the entry at the specified index.
- getDimension
Returns the size of the vector.
- setEntry
Set a single element.
- dotProduct
Compute the dot product of this vector with v.
- add
Compute the sum of this vector and v. Returns a new vector. Does not change
instance data.
- getNorm
Returns the L2 norm of the vector.The L2 norm is the root of the sum of the squared elements.
- subtract
Subtract v from this vector. Returns a new vector. Does not change instance
data.
- copy
Returns a (deep) copy of this vector.
- mapDivide
Divide each entry by the argument. Returns a new vector. Does not change
instance data.
- getL1Norm
Returns the L1 norm of the vector.The L1 norm is the sum of the absolute values of the elements.
- outerProduct
Compute the outer product.