[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #66513] Two sparse matrix issues on indexing a
From: |
Liang Tang |
Subject: |
[Octave-bug-tracker] [bug #66513] Two sparse matrix issues on indexing and rank |
Date: |
Mon, 2 Dec 2024 21:00:39 -0500 (EST) |
URL:
<https://savannah.gnu.org/bugs/?66513>
Summary: Two sparse matrix issues on indexing and rank
Group: GNU Octave
Submitter: lt1234
Submitted: Tue 03 Dec 2024 02:00:36 AM UTC
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name: lt1234
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 9.2.0
Operating System: Microsoft Windows
Fixed Release: None
Planned Release: None
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Tue 03 Dec 2024 02:00:36 AM UTC By: Liang Tang <lt1234>
Since there are some on-going efforts to fix issues of sparse matrix, I would
like to submit two small issues as a batch in this report. Thanks.
Issue 1 - indexing (9.2.0)
a=sparse(randi(1, 30,30)); a(31:+1:60,31:+1:60)=a; whos a
a=full( randi(1, 30,30)); a(60:-1:31,60:-1:31)=a; whos a
a=sparse(randi(1, 30,30)); a(60:-1:31,60:-1:31)=a; % failed
error: =: nonconformant arguments (op1 is 30x30, op2 is 30x29)
Issue 2 - rank does not work for sparse. Should have been an error message.
(9.2.0)
a=sparse(30,30); a(1:30, 1:29)=sparse(randi(1, 30,29));
display([sprank(a), rank(a)])
29 1
Issue 3 - Load file error already fixed in 9.2. Failed in 8.2
a=spalloc(3,3); save -V7 a.mat a; load a.mat;
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?66513>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
Description: PGP signature
- [Octave-bug-tracker] [bug #66513] Two sparse matrix issues on indexing and rank,
Liang Tang <=