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

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

[Octave-bug-tracker] [bug #51246] pinv(0) different from Matlab


From: Rik
Subject: [Octave-bug-tracker] [bug #51246] pinv(0) different from Matlab
Date: Fri, 16 Jun 2017 13:36:24 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:53.0) Gecko/20100101 Firefox/53.0

Follow-up Comment #8, bug #51246 (project octave):

Any fix also needs to respect bug #49690 where the inverse of Inf should be 0
for Matlab compatibility.  My guess is that is where the problem in inverse
for the input 0 has crept in.  See cset 22154.


changeset:   22154:1d242ae72240
user:        Rik <address@hidden>
date:        Tue Nov 29 16:46:35 2016 -0800
files:       libinterp/corefcn/inv.cc liboctave/array/CMatrix.cc
liboctave/array/dMatrix.cc liboctave/array/fCMatrix.cc
liboctave/array/fMatrix.cc
description:
Return 0 for special case of scalar Inf input to inverse (bug #49690).

* inv.cc (Finv): Add BIST tests for new behavior.

* CMatrix.cc, fCMatrix.cc, dMatrix.cc, fMatrix.cc (::inverse):
If function has had to calculate the reciprocal condition number, and
the rcond value is zero, then return 0 if the input was a scalar, or
a matrix of all Inf values.




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?51246>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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