Skip to content

any

builtin · libnexusinterp/corefcn/data-proprietary.cc

: tf = any (a)
: tf = any (a, dim)
: tf = any (a, vecdim)
: tf = any (a, "all")

Return true where at least one element along the chosen dimension is nonzero. NaN counts as nonzero. By default the first non-singleton dimension is used; any ([]) is false.