src/pmc/APLVector.pmc - APLVector
These are the vtable functions for the APL Vector class.
- INTVAL size_of_shape(INTERP,
PMC)
void class_init()
- initialize the pmc class.
Store some constants,
etc.
PMC *init()
- initialize the instance.
PMC *get_shape()
- Returns a vector-like PMC containing the shape of this PMC.
PMC *set_shape()
- Reshape the existing APLvector by passing in an existing vector.
- If the new shape is larger than our old shape,
pad the end of the APLv with elements from the beginning.
- If the new shape is shorter than our old shape,
truncate elements from the end of the APLv.