ArrayTools[ElementDivide] - element-wise division of Array entries
ArrayTools[ElementMultiply] - element-wise multiplication of Array entries
ArrayTools[ElementPower] - element-wise power of Array entries
|
Calling Sequence
|
|
ElementMultiply(A,B)
ElementDivide(A,B)
ElementPower(A,B)
|
|
Parameters
|
|
A
|
-
|
scalar, Matrix, Vector, or Array
|
B
|
-
|
scalar, Matrix, Vector, or Array
|
|
|
|
|
Description
|
|
•
|
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.
|
|
|
Examples
|
|
>
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
|
|
Download Help Document
Was this information helpful?