octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #60784] Inconsistent behavior for boolean matr


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #60784] Inconsistent behavior for boolean matrix types with matrix functions
Date: Wed, 16 Jun 2021 11:49:17 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0

Follow-up Comment #9, bug #60784 (project octave):

Prior to this change (from 2008!)

http://hg.savannah.gnu.org/hgweb/octave/diff/18c4ded8612a/src/DLD-FUNCTIONS/eig.cc

it looks like eig would have worked on integer and logical matrices.  But then
the test was added to error early if the argument was not single or double,
then later that test was changed to use isfloat.

In any case, can someone test what Matlab actually does for the following?


eig (rand (3) > 0.5)
eig (int8 (rand (3) * 255))
eig (int16 (rand (3) * 65535))


I'm not saying we can't support this feature but I'm wondering whether Matlab
actually restricts the inputs to double and single as the docs say, or if it
silently converts other numeric types to double?

If it errors for types other than single and double and we accept  and convert
other numeric types, then how long will it be until someone submits a bug
report about a missed (instead of unexpected) warning or error?  LOL.

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]