Skip to content

@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

ParameterTypeDescription
anumber[] | Float64Array<ArrayBufferLike>Array a.
bnumber[] | Float64Array<ArrayBufferLike>Array b.

Returns

number

The inner product between a and b.