Appendix A: System Routines — Lists and Matrices
push_submat
Example:
This example pushes the submatrix [(1,1) . . . (nRows, nCols)] of the matrix
indexed by inMat onto the estack.
unsigned long nRows, nCols;
EStackIndex endRowIdx, endColIdx, oldTop, inMat;
.
.
.
/* assume inMat, nRows, nCols already setup */
oldTop = top_index;
push_ulong_to_integer ( nRows );
endRowIdx = top_estack;
push_ulong_to_integer ( nCols );
endColIdx = top_estack;
push_submat ( inMat, NULL, NULL, endRowIdx, endColIdx );
delete_between( oldTop, endColIdx );
.
.
.
TI-89 / TI-92 Plus Developer Guide
(continued)
Not for Distribution
717
Beta Version January 26, 2001