sizeof
Storage size of the input in bytes.
Syntax
Section titled “Syntax”n = sizeof(A)Description
Section titled “Description”Returns the number of bytes used to store A in memory. Useful for memory budgeting on large arrays.
Examples
Section titled “Examples”sizeof(zeros(1000,1000)) % 8000000 (8 bytes per double × 1M elements)sizeof(int32(0)) % 4