bugGNU Octave - Bugs: bug #56974, Display size/type of non-double...

 
 

bug #56974: Display size/type of non-double non-char arrays

Submitter:  Colin Macdonald <cbm>
Submitted:  Mon 30 Sep 2019 07:07:11 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  None Assigned to:  None
Originator Name:  Open/Closed:  * Open
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 24 Oct 2019 03:08:39 AM UTC, comment #4: 

OK.  The change in scalar display would be pretty significant for Octave, but it could also simplify the implementation by not trying to special case scalar values so they are printed on one line.

John W. Eaton <jwe>
Group administrator
Wed 23 Oct 2019 10:17:22 PM UTC, comment #3: 

Yes, for scalars too:

>> A = int64(42)

A =

  int64

   42

>> B = rand(1,1,'single')

B =

  single

    0.9058


Colin Macdonald <cbm>
Wed 23 Oct 2019 08:41:14 PM UTC, comment #2: 

This bug has some overlap with bug #51410.  Maybe both should be fixed at the same time.

John W. Eaton <jwe>
Group administrator
Wed 23 Oct 2019 07:49:47 PM UTC, comment #1: 

I agree that the type info is useful.

Other than providing a custom display method for the built-in types, does Matlab offer a way to disable this feature?

Should we also display the type and size info for double values?

What about scalars?  Should type information also be displayed for those?  How should it be formatted?

John W. Eaton <jwe>
Group administrator
Mon 30 Sep 2019 07:07:11 PM UTC, original submission:  

In Matlab 2016b, they started displaying some metainfo along with non-double and non-char arrays:

>> A = int64(round(10*rand(3,4)))

A =

  3x4 int64 matrix

    7    7    1    3
    8    7    5    6
    3    2   10    2

>> A = rand(2,3, 'single')

A =

  2x3 single matrix

    0.7513    0.5060    0.8909
    0.2551    0.6991    0.9593


That looks nice to me: generally its important to me whenever something isn't a double.  Should we do this too?

Colin Macdonald <cbm>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by apjanke (subscribing because interested)
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by cbm (Submitted the item)
  •  

    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.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-10-24 apjanke Carbon-Copy- Added -email is unavailable-
    2019-10-01 mtmiller Carbon-CopyRemoved mtmiller -
    2019-09-30 cbm Carbon-Copy- Added mtmiller

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code