[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #63281] bsxfun fails to preserve sparse output
From: |
Nicholas Jankowski |
Subject: |
[Octave-bug-tracker] [bug #63281] bsxfun fails to preserve sparse output for some functions |
Date: |
Thu, 27 Oct 2022 15:01:14 -0400 (EDT) |
Follow-up Comment #10, bug #63281 (project octave):
and acts like multiplication, or acts like addition...
&
A = sprand (10, 10, 0.1);
x = 1;
Ax=issparse(A & x)
sx = sparse (x);
Asx=issparse(A & sx)
r = 1:10;
Ar=issparse(A & r)
sr = sparse (r);
Asr=issparse(A & sr)
Ax =
logical
1
Asx =
logical
1
Ar =
logical
1
Asr =
logical
1
|
A = sprand (10, 10, 0.1);
x = 1;
Ax=issparse(A | x)
sx = sparse (x);
Asx=issparse(A | sx)
r = 1:10;
Ar=issparse(A | r)
sr = sparse (r);
Asr=issparse(A | sr)
Ax =
logical
0
Asx =
logical
1
Ar =
logical
0
Asr =
logical
1
I think the Ax vs Asx answers your second question, but maybe 'adding a
scalar' matters. will try a few of those next
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?63281>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #63281] bsxfun fails to preserve sparse output for some functions, Nicholas Jankowski, 2022/10/27
- [Octave-bug-tracker] [bug #63281] bsxfun fails to preserve sparse output for some functions, John W. Eaton, 2022/10/27
- [Octave-bug-tracker] [bug #63281] bsxfun fails to preserve sparse output for some functions, Nicholas Jankowski, 2022/10/27
- [Octave-bug-tracker] [bug #63281] bsxfun fails to preserve sparse output for some functions, Nicholas Jankowski, 2022/10/27
- [Octave-bug-tracker] [bug #63281] bsxfun fails to preserve sparse output for some functions, Nicholas Jankowski, 2022/10/27
- [Octave-bug-tracker] [bug #63281] bsxfun fails to preserve sparse output for some functions, John W. Eaton, 2022/10/27
- [Octave-bug-tracker] [bug #63281] bsxfun fails to preserve sparse output for some functions, Nicholas Jankowski, 2022/10/27
- [Octave-bug-tracker] [bug #63281] bsxfun fails to preserve sparse output for some functions, Nicholas Jankowski, 2022/10/27
- [Octave-bug-tracker] [bug #63281] bsxfun fails to preserve sparse output for some functions, Nicholas Jankowski, 2022/10/27
- [Octave-bug-tracker] [bug #63281] bsxfun fails to preserve sparse output for some functions, John W. Eaton, 2022/10/27
- [Octave-bug-tracker] [bug #63281] bsxfun fails to preserve sparse output for some functions,
Nicholas Jankowski <=
- [Octave-bug-tracker] [bug #63281] bsxfun fails to preserve sparse output for some functions, Nicholas Jankowski, 2022/10/27
- [Octave-bug-tracker] [bug #63281] bsxfun fails to preserve sparse output for some functions, John W. Eaton, 2022/10/27
- [Octave-bug-tracker] [bug #63281] bsxfun fails to preserve sparse output for some functions, Nicholas Jankowski, 2022/10/27
- [Octave-bug-tracker] [bug #63281] bsxfun fails to preserve sparse output for some functions, Nicholas Jankowski, 2022/10/27
- [Octave-bug-tracker] [bug #63281] bsxfun fails to preserve sparse output for some functions, John W. Eaton, 2022/10/27
- [Octave-bug-tracker] [bug #63281] bsxfun fails to preserve sparse output for some functions, Nicholas Jankowski, 2022/10/31
- [Octave-bug-tracker] [bug #63281] bsxfun fails to preserve sparse output for some functions, Nicholas Jankowski, 2022/10/31
- [Octave-bug-tracker] [bug #63281] bsxfun fails to preserve sparse output for some functions, John W. Eaton, 2022/10/31
- [Octave-bug-tracker] [bug #63281] bsxfun fails to preserve sparse output for some functions, Nicholas Jankowski, 2022/10/31