Home > @josh-brown/vector > Vector
A generalized Vector - one of the core data types
Signature:
export interface Vector<S = number> |
Method |
Description |
|---|---|
|
Implements vector addition | |
|
Returns a VectorBuilder which will build new vectors of the same type | |
|
Constructs a vector by combining the values of two other vectors | |
|
Tests if two vectors are equal | |
|
Executes the | |
|
Returns the dimension of the vector | |
|
Returns the entry of the matrix located at the provided index ( | |
|
Returns the contents of the vector as a map of indices to nonzero values | |
|
Implements the inner product (scalar product or dot product) of two vectors | |
|
Constructs a vector by transforming the values of another vector. | |
|
Returns a MatrixBuilder which will build new matrices of a compatible type | |
|
Returns a ScalarOperations object which will allow consumers to work generically with the scalars contained in the vector. | |
|
Implements the outer product (matrix product) of two vectors | |
|
Returns a new vector in the direction of | |
|
Implements vector multiplication by a scalar | |
|
Returns a new vector equal to the old one, except with the entry at | |
|
Returns the contents of the vector as an array |