Push_Newmat - Texas Instruments TI-89 Developer's Manual

Graphing calculator
Hide thumbs Also See for TI-89:
Table of Contents

Advertisement

704

push_newmat

Declaration:
void push_newmat (EStackIndex rdim_index , EStackIndex cdim_index )
Category(ies):
Lists and Matrices
Description:
Pushes onto the estack a matrix of zeros.
Inputs:
rdim_index — Indexes the number of rows in the new matrix.
cdim_index — Indexes the number of columns in the new matrix.
Outputs:
None
Assumptions:
None
Side Effects:
May expand expression stack, cause heap compression, or throw an error.
Availability:
On AMS 2.00 and higher.
TI-89 / TI-92 Plus
Differences:
None
See Also:
push_newlist, push_randmat
Example:
This example creates a 2x2 matrix named M0 and stores to one of its
elements.
BYTE mName[] = {0,'m','0',0};
/* create a 2x2 matrix of zeros on the estack */
push_ushort_to_integer( 2 );
push_newmat( top_estack, top_estack );
/* Store matrix created with push_newmat to 'M0' */
VarStore( mName+3, STOF_ESI, 0, top_estack );
/* Store 1.234 to M0[2,1] */
push_Float( 1.234 );
VarStore( mName+3, STOF_ELEMENT, 0, top_estack, 1u, 2u );
TI-89 / TI-92 Plus Developer Guide
Appendix A: System Routines — Lists and Matrices
Not for Distribution
Beta Version January 26, 2001

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ti-92 plusTi-92 plus

Table of Contents