- scalarProduct(alpha): ((mat) => Readonly<{
nums: Float64Array;
strides: Strides;
}>) Returns ((mat) => Readonly<{
nums: Float64Array;
strides: Strides;
}>)
The scaled matrix.
- (mat): Readonly<{
nums: Float64Array;
strides: Strides;
}> Parameters
mat: Readonly<{
nums: Float64Array;
strides: Strides;
}>
Returns Readonly<{
nums: Float64Array;
strides: Strides;
}>
Multiplies the coefficient
alpha
to all stored numbers.