Post Reply 
Color value from GETPIX_P returns unexpected result
02-05-2016, 05:49 AM
Post: #12
RE: Color value from GETPIX_P returns unexpected result
Hello,

Matrices are stored as one blob of data. 8 byte per number.
Each number is stored with 4 bits (one nibble) for the sign, 12 (nibbles) for the mantissa in DCB (ie, used at 10/16 of capacity), normalized, and 12 bits for the exponent (hex, limited to +/-999).

If you use the m(x,y):= format, they will not lead to data duplication/copy and be quite fast.

But, they also have a size limitation, just like strings.

How much data do you want/need to store?

Lists are quite inefficient. They are a list of pointers to objects. So, you have 4 bytes per object in the list, plus the objects themselves. A real, for example takes 16 bytes (plus the 8 bytes used by the OS to manage memory allocation).

Cyrille

Although I work for the HP calculator group, the views and opinions I post here are my own. I do not speak for HP.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Color value from GETPIX_P returns unexpected result - cyrille de brébisson - 02-05-2016 05:49 AM



User(s) browsing this thread: 1 Guest(s)