Initialize the new PMC
Destroy the PMC and free all associated memory
Mark all the PMC contents of the matrix
In each of these cases, the specified Key PMC must have exactly two elements
to specify a location in the matrix. Attempting to retrieve a value outside the
boundaries of the matrix will throw an OUT_OF_BOUNDS exception.
Get the floating point value from the PMC at the specified coordinates.
Get an integer value from the PMC at the specified coordinates.
Get the string representation of the PMC at the point specified by
the key.
Get a PMC from the point specified by the key.
These VTABLEs treat the matrix, which is a contiguous region in memory, as a
linear array of values. The matrix data is stored by rows. These routines are
used for low-level access. Attempting to access a value
outside the bounds of the matrix will throw an OUT_OF_BOUNDS exception.
Get a floating point number from the PMC at the specified location.
Get an integer from the PMC at the specified coordinates.
Get a string representation of the PMC at the specified point.
Get the PMC at the specified point.
These VTABLEs insert new values into the matrix at a point specified by the
Key PMC. The Key PMC must have exactly two elements. If the matrix is not large
enough to accomodate the specified location, it will be grown with zero-padding
so that it is at least large enough to hold the specified point and all existing
data.
Insert the given PMC at the specified coordinates.
Insert a Float PMC at the specified coordinates.
Insert a String PMC at the specified coordinates.
Insert an Integer PMC at the specified coordinates.
These VTABLEs treat the matrix as a linear array in memory and allow fast
lookup based on the integer offset of values in the array. These are low-level
routines and are not intended for general use.
Unlike the PMC-keyed VTABLEs, these routines will not automatically grow the
matrix if an index is provided which is outside the boundaries of the matrix.
In that case, an OUT_OF_BOUNDS exception will be thrown.
Insert the PMC at the specified location.
Insert a Float PMC at the specified location.
Insert an Integer PMC at the specified location.
Insert a String PMC at the specified location.
Get a string representation of the matrix, suitable for printing to the console
Get a named attribute. The name can be one of “rows”, “cols”, or “size”.
Clone the matrix
Determine if two matrices are equal in size and composition.
Freeze the PMC for serialization to a string suitable for long-term storage in
a file.
Thaw a serialized PMC