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: anonymous
Subject: [Octave-bug-tracker] [bug #60784] Inconsistent behavior for boolean matrix types with matrix functions
Date: Tue, 22 Jun 2021 12:37:04 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:89.0) Gecko/20100101 Firefox/89.0

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

To summarize the discussion so far:

1. The following functions automatically convert logical and integer types to
double in Octave but not Matlab: det, lu, svd, inv.

2. The eig function consistently errors for anything other than single and
double, in both Octave and Matlab.

Possible courses of action to make the functions eig, det, lu, svd and inv all
consistent within Octave:

1. If we want to emulate Matlab, throw an error for logical or integer types
with det, lu, svd or inv. This will make those functions behave like eig.

2. If we want to be a superset of Matlab, make eig behave like det, inv, lu or
svd in accepting logical or integer types. If Octave does silent conversion to
double in cases that Matlab doesn't, it could emit a warning so that the user
can either suppress that warning ID or do an explicit cast or something
different.

Once we agree on one of the above, we have another choice: do we make the
integer types automatically convert to double like boolean, or not?


    _______________________________________________________

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]