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

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

[Octave-bug-tracker] [bug #60867] `whos` doesn't show sparse attribute


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #60867] `whos` doesn't show sparse attribute
Date: Thu, 1 Jul 2021 03:15:19 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36 Edg/91.0.864.59

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

                 Summary: `whos` doesn't show sparse attribute
                 Project: GNU Octave
            Submitted by: mmuetzel
            Submitted on: Thu 01 Jul 2021 09:15:17 AM CEST
                Category: Interpreter
                Severity: 2 - Minor
                Priority: 5 - Normal
              Item Group: Feature Request
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: dev
         Discussion Lock: Any
        Operating System: Any

    _______________________________________________________

Details:

In the output printed by the function `whos` there is no easy way to see
immediately if a matrix is full or sparse:

>> a = 1;
>> b = sparse(1);
>> whos
Variables visible from the current scope:

variables in scope: top scope

   Attr Name        Size                     Bytes  Class
   ==== ====        ====                     =====  =====
        a           1x1                          8  double
        b           1x1                         32  double

Total is 2 elements using 40 bytes


Matlab R2021a shows the sparse attribute in a similar table:

>> a = 1;
>> b = sparse(1);
>> whos
  Name      Size            Bytes  Class     Attributes

  a         1x1                 8  double              
  b         1x1                32  double    sparse    

>>


It would be nice if Octave could do something similar.




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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