ArrayTools
ElementDivide
element-wise division of Array entries
ElementMultiply
element-wise multiplication of Array entries
ElementPower
element-wise power of Array entries
Calling Sequence
Parameters
Description
Examples
ElementMultiply(A,B)
ElementDivide(A,B)
ElementPower(A,B)
A
-
scalar, Matrix, Vector, or Array
B
These commands apply operations on individual elements of an Array. If one of A or B are scalars and the other is an Array, the operation is mapped over the Array. If both A or B are Arrays of the same size, then the operation is applied using zip.
These functions are part of the ArrayTools package, so they can be used in the short form ElementMultiply(..), ElementDivide(..), or ElementPower(..) only after executing the command with(ArrayTools). However, they can always be accessed through the long form of the commands by using ArrayTools[ElementMultiply](..), ArrayTools[ElementDivide](..), or ArrayTools[ElementPower(..), respectively.
with⁡ArrayTools:
ElementPower⁡Array⁡a,b,c,2
a2b2c2
ElementDivide⁡Array⁡a,b,c,Array⁡e,f,g
aebfcg
ElementMultiply⁡3,Array⁡a,b,c
3⁢a3⁢b3⁢c
See Also
map
operators/elementwise
zip
Download Help Document