@saehrimnir/druidjs / inner_product
Function: inner_product()
ts
function inner_product(a: number[] | Float64Array<ArrayBufferLike>, b: number[] | Float64Array<ArrayBufferLike>): number;Defined in: linear_algebra/inner_product.js:9
Computes the inner product between two arrays of the same length.
Parameters
| Parameter | Type | Description |
|---|---|---|
a | number[] | Float64Array<ArrayBufferLike> | Array a. |
b | number[] | Float64Array<ArrayBufferLike> | Array b. |
Returns
number
The inner product between a and b.