: all (x)
: all (x, dim)

For a vector argument, return true (logical 1) if all elements of the vector are nonzero.

For a matrix argument, return a row vector of logical ones and zeros with each element indicating whether all of the elements of the corresponding column of the matrix are nonzero. For example:

all ([2, 3; 1, 0])
   ⇒ [ 1, 0 ]

If the optional argument dim is supplied, work along dimension dim.

See also: any.

Package: communications