scalarfunctionappliedelementwise
nounUK /ˈskeɪlə ˈfʌŋkʃən əˈplaɪd ˈɛlɪməntwaɪz/
US /ˈskeɪlər ˈfʌŋkʃən əˈplaɪd ˈɛləməntwaɪz/
A math rule that works on each number in a list one by one.
The scalar function applied elementwise doubled every number in the array.
SYNONYMS
OTHER MEANINGS
2. In computing, a routine that takes one value and returns one value, run separately on every item of a collection.
The code used a scalar function applied elementwise to clean each entry in the dataset.
3. In linear algebra, a transformation that multiplies each component of a vector by the same single number.
Scaling the vector by three is a scalar function applied elementwise.
4. A way to describe code that avoids loops by acting on whole arrays at once.
Thanks to the scalar function applied elementwise, the loop was replaced with one short line.