[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #44193] whos "elements" count wrong for user-d
From: |
Dan Sebald |
Subject: |
[Octave-bug-tracker] [bug #44193] whos "elements" count wrong for user-defined class, capacity problem? |
Date: |
Fri, 06 Feb 2015 09:33:17 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:18.0) Gecko/20100101 Firefox/18.0 SeaMonkey/2.15 |
Follow-up Comment #2, bug #44193 (project octave):
What is 'sym'? Is it related to symmetric elimination tree? "symbolic"?
Here's another example:
>> sparse(1,2,3)
ans =
Compressed Column Sparse (rows = 1, cols = 2, nnz = 1 [50%])
(1, 2) -> 3
>> whos
Variables in the current scope:
Attr Name Size Bytes Class
==== ==== ==== ===== =====
ans 1x2 24 double
Total is 1 element using 24 bytes
Could it be that the sparse variables only count the defined, non-zero values?
Filling in the zero value results in two elements:
>> ans(1,1) = 6
ans =
Compressed Column Sparse (rows = 1, cols = 2, nnz = 2 [100%])
(1, 1) -> 6
(1, 2) -> 3
>> whos
Variables in the current scope:
Attr Name Size Bytes Class
==== ==== ==== ===== =====
ans 1x2 36 double
Total is 2 elements using 36 bytes
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?44193>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #44193] whos "elements" count wrong for user-defined class, capacity problem?, Colin Macdonald, 2015/02/05
- [Octave-bug-tracker] [bug #44193] whos "elements" count wrong for user-defined class, capacity problem?, Colin Macdonald, 2015/02/05
- [Octave-bug-tracker] [bug #44193] whos "elements" count wrong for user-defined class, capacity problem?,
Dan Sebald <=
- [Octave-bug-tracker] [bug #44193] whos "elements" count wrong for user-defined class, capacity problem?, Colin Macdonald, 2015/02/06
- [Octave-bug-tracker] [bug #44193] whos "elements" count wrong for user-defined class, capacity problem?, Colin Macdonald, 2015/02/06
- [Octave-bug-tracker] [bug #44193] whos "elements" count wrong for user-defined class, capacity problem?, Colin Macdonald, 2015/02/06
- [Octave-bug-tracker] [bug #44193] whos "elements" count wrong for user-defined class, capacity problem?, Colin Macdonald, 2015/02/06
- [Octave-bug-tracker] [bug #44193] whos "elements" count wrong for user-defined class, capacity problem?, Mike Miller, 2015/02/06
- [Octave-bug-tracker] [bug #44193] whos "elements" count wrong for user-defined class, capacity problem?, Dan Sebald, 2015/02/06
- [Octave-bug-tracker] [bug #44193] whos "elements" count wrong for user-defined class, capacity problem?, Colin Macdonald, 2015/02/06