function inner(a: NumericArray, b: NumericArray): number function inner(
a: DistanceArray,
b: DistanceArray,
dtype: DType,
): number function inner(a: TensorBase, b: TensorBase): number Parameters
a | The first vector, as TypedArray or TensorBase. | |
|---|---|---|
b | The second vector, matching the type and length of a. | |
dtypeDType | Optional dtype string for custom types, e.g. 'f16', 'bf16', 'e4m3'. |
Returns
The inner product of
a and b.