Home > @josh-brown/vector > SparseVector > innerProduct
Implements the inner product (scalar product or dot product) of two vectors
Signature:
innerProduct(other: Vector<S>): S;|
Parameter |
Type |
Description |
|---|---|---|
|
other |
Vector<S> |
The vector with which to calculate an inner product |
Returns:
S
The inner product