The function all behaves like the function any, except that it returns true only if all the elements of a vector, or all the elements along dimension dim of a matrix, are nonzero.
all
any