2 ms·
Here, is "broadcasts" like apply or map of functional programming?
by fuzztester 3y ago
Here, is "broadcasts" like apply or map of functional programming?
- pavon 3y agoYes, very similar. When performing an operation between an array and a scalar, it is identical to mapping that operation on each element of the array. Broadcasting generalizes this to also handle operations between matrices and vectors, such that the operation with the vector is applied to each row or column of the matrix.
- fuzztester 3y agoThank you.