Returns the logical product of the elements of a matrix. If all values are nonzero, then the result is nonzero.
Format
ALLM (M)
Argument
M | A matrix of arbitrary shape. |
Examples
The following examples illustrate the use of the ALLM function:
Function | ALLM({1, 0, 1}) |
Result | 0 |
Function | ALLM({1, 2, 3}) |
Result | 1 |
Function | ALLM({[1, 1], [1, 0]}) |
Result | 0 |