Returns 1 if all elements of the input are non-zero.
ALL(val)
val |
- |
A scalar, string or series. |
The scalar 1.0 or 0.0 or a row array if the input is an array with more than 1 row and column.
all(3)
returns 1.0
all({0.0, 1.0})
returns 0.0
all(ones(3,1))
returns 1.0
all(ones(3,3))
returns the 1x3 array {{1.0, 1.0, 1.0}}
all({})
returns 1.0
The input is cast to a series if it is a scalar or a string.