CoCoA:Size

From ApCoCoAWiki

Size

the amount of memory used by an object

Description

This function returns the amount of memory used by the object E,

expressed in words (1 word = 4 bytes = 32 bits).

Example

  Use R ::= Q[x,y];
  Size(1);
1
-------------------------------
  Size(2^32-1);
1
-------------------------------
  Size(2^32);
2
-------------------------------
  Size(2^64);
3
-------------------------------
  Size(x);
32
-------------------------------
  Size([x,y]);
64
-------------------------------

Syntax

Size(E:OBJECT):INT

Count

Len

   <type>ideal</type>
   <type>integer</type>
   <type>list</type>
   <type>matrix</type>
   <type>memory</type>
   <type>module</type>
   <type>polynomial</type>
   <type>ratfun</type>
   <type>vector</type>