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

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

[Octave-bug-tracker] [bug #61651] rdivide doesn't work with sparse matri


From: Diego Masotti
Subject: [Octave-bug-tracker] [bug #61651] rdivide doesn't work with sparse matrix if they are compatible
Date: Thu, 9 Dec 2021 14:50:35 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0

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

                 Summary: rdivide doesn't work with sparse matrix if they are
compatible
                 Project: GNU Octave
            Submitted by: wiserorb
            Submitted on: Thu 09 Dec 2021 07:50:33 PM UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Unexpected Error or Warning
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: 6.4.0
         Discussion Lock: Any
        Operating System: GNU/Linux

    _______________________________________________________

Details:

Put it simply, rdivide incorrectly throws:
 

error: quotient: nonconformant arguments (op1 is 1x3, op2 is 3x3)


when used with compatible matrix.
This error is not thrown if the matrices are converted into full matrices

Code:

x = sparse(rand(3,3));
y = sparse(rand(3,1));

#this works
full(x)./full(y)
#this does not work
x./y 



I don't have access to a Matlab license so I cannot test the code, however it
doesn't specify any exception for rdivide in its documentation:
https://it.mathworks.com/help/matlab/ref/rdivide.html

Thank for taking the time to address this issue.




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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