Applies a callback function in an element-wise manner on a complex number, matrix, quaternion, tensor, vector, set, or structure.
// Returns the vector (1, 2, 6, 24)let v = Chalkboard.vect.init(1, 2, 3, 4);let factorialv = Chalkboard.APPLY(v, (x) => { return Chalkboard.numb.factorial(x)}); Copy
// Returns the vector (1, 2, 6, 24)let v = Chalkboard.vect.init(1, 2, 3, 4);let factorialv = Chalkboard.APPLY(v, (x) => { return Chalkboard.numb.factorial(x)});
The complex number, matrix, quaternion, tensor, vector, set, or structure
The callback function
Applies a callback function in an element-wise manner on a complex number, matrix, quaternion, tensor, vector, set, or structure.
Example