Calculates the scalar multiplication of a tensor.
The tensor
The number
const result = Chalkboard.tens.scl([[1, 2], [3, 4]], 2); // Returns [[2, 4], [6, 8]] Copy
const result = Chalkboard.tens.scl([[1, 2], [3, 4]], 2); // Returns [[2, 4], [6, 8]]
Calculates the scalar multiplication of a tensor.