size xsize x returns the size of x, which usually gives a rough indication of memory space required to store it.
For a polynomial, the size is the number of terms.
|
|
|
For lists, size reports the capacity of the underlying sequence, which may exceed the number of elements when the list is mutable. This reflects the amount of memory currently allocated to allow efficient growth without reallocating on every insertion.
|
|
|
|
The object size is a method function.
The source of this document is in /build/reproducible-path/macaulay2-1.26.11+ds/M2/Macaulay2/packages/Macaulay2Doc/doc_rings.m2:327:0.