[bug #68172] any() and all() should work only on numeric or logical args

Nicholas Jankowski <[email protected]>
Newsgroups gmane.comp.gnu.octave.bugs
Message-ID <[email protected]>
Please use the bug tracker to post updates to a bug report.  The mailing list is intended as a read-only notification stream.  Info posted to this mailing list address won't appear in the tracker database where it is most useful.

Follow-up Comment #4, bug #68172 (group octave):

noting that matlab also errors when called on a cell array while octave does
this:


octave:7>  foo = {1,2;a,b};

>> any(foo)
ans = [](0x0)

>> all(foo)
ans = [](0x0)


not familiar with the classdef code, but would it be better to handle this as
better input validation in any and all rather than within classdef overloads?


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?68172>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc (application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE-----

iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCacLvlQAKCRCqLAuaBUf3
TlLVAPsH5/aloNsB/VGSHQxFLCR6ZFb3ig1n1oerwhDMW8moOQD+LE/hOcpFT8EL
DMRdqjXPhPvjJzj1UWwPZsnbxSEIqwU=
=mmEG
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.