all(X) returns 1 if all of the elements of X are non-zero, otherwise it returns 0.