elementwisescalaroperation
nounUK /ˌelɪməntwaɪz ˈskeɪlə ˌɒpəˈreɪʃən/
US /ˌelɪməntwaɪz ˈskeɪlər ˌɑːpəˈreɪʃən/
A math rule that changes each number in a list one by one using the same single number.
Multiplying the list [1, 2, 3] by 2 is an elementwisescalaroperation that gives [2, 4, 6].
SYNONYMS
RELATED WORDS
OTHER MEANINGS
2. In programming, applying a single value to every item of an array at once.
The library performs an elementwisescalaroperation to add 5 to every score.
3. In linear algebra, multiplying each entry of a vector by one constant number.
Scaling the vector by 3 is a simple elementwisescalaroperation.
4. A data-processing step that transforms every cell of a table using one fixed value.
We used an elementwisescalaroperation to double every price in the column.