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

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

[Octave-bug-tracker] [bug #65054] inv (Inf (2, 2)) should return matrix


From: Rik
Subject: [Octave-bug-tracker] [bug #65054] inv (Inf (2, 2)) should return matrix of all Inf and rcond of 0
Date: Tue, 19 Dec 2023 18:31:42 -0500 (EST)

URL:
  <https://savannah.gnu.org/bugs/?65054>

                 Summary: inv (Inf (2,2)) should return matrix of all Inf and
rcond of 0
                   Group: GNU Octave
               Submitter: rik5
               Submitted: Tue 19 Dec 2023 03:31:40 PM PST
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Other
                  Status: In Progress
             Assigned to: rik5
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: stable
         Discussion Lock: Any
        Operating System: Any
           Fixed Release: None
         Planned Release: 10.1.0 (current default)


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Tue 19 Dec 2023 03:31:40 PM PST By: Rik <rik5>
For consistency, the inverse of a singular matrix should return all Inf.  For
example,


inv (1e22*ones(2,2))
warning: matrix singular to machine precision
ans =

   Inf   Inf
   Inf   Inf


Currently Octave usually returns all NaN matrix along with an rcond of NaN. 
However, this depends on the version of BLAS being used.  Such a dependency is
undesirable as well as being the wrong result.







    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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