bugGNU Octave - Bugs: bug #55126, Sparse Matrix and binary oparators

 
 

bug #55126: Sparse Matrix and binary oparators

Submitter:  Nik Demus <sumocin>
Submitted:  Wed 28 Nov 2018 03:54:09 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Duplicate Assigned to:  None
Originator Name:  sumocin Open/Closed:  * Closed
Release:  * 4.4.1 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Post a Comment

Add a New Comment Rich Markup
   

Discussion

Wed 28 Nov 2018 06:32:47 PM UTC, comment #2: 

Unfortunately this is a known problem, see bug #41441.

Marking this report as a duplicate and closing.

Rik <rik5>
Group administrator
Wed 28 Nov 2018 04:03:00 PM UTC, comment #1: 

Forgot to mention that the result in GNU Octave is

error: operator <op>: nonconformant arguments (op1 is 3x3, op2 is 3x1)

I think the problem is related to broadcasting the vector with sparse matrices.

Not sure though if this is a bug or a feature yet to implement.

Nik Demus <sumocin>
Wed 28 Nov 2018 03:54:09 PM UTC, original submission:  

Hi, the following code fails in GNU Octave


a = [1 2 0; 0 0 1; 1 0 0];
b = [1 2 3]';

% this works
a .* b

% this don't
sparse(a).*b


other commands which fail are

sparse(a).^ b
sparse(a)./ b
sparse(a) + b
sparse(a) - b


In matlab they all return a sparse matrix

Nik Demus <sumocin>

 

Attached Files

This item currently has no attached files.

(Note: upload size limit is set to 4.0MiB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

 

Dependencies

Digest:
   bug dependencies.

No items depend on this one.

 

Mail Notification Carbon-Copy List

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by sumocin (Submitted the item)
  •  

    Votes

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

    History

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-11-28 rik5 CategoryNone Interpreter
        StatusNone Duplicate
        Open/ClosedOpen Closed
        Dependencies- Depends on bugs #41441

    Back to the top

    Powered by Savane 3.16-a7ba.
    Corresponding source code