[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

2.7.1 General Functions

03562 ARSIZE ( [] → # )
Returns number of elements as a bint.
035A9 DIMLIMITS ( [] → {#n #m} )
Returns list of array dimensions.
0371D GETATELN ( # [] → ob T )
( # [] → F )
Gets one element from array.
0C506 rGETATELN
Gets one element from array referenced by rompointer.
0C501 (GETEL) ( #i [] → ob T )
( #i [] → F )
Gets one element from array.
35D35 (MATIDN) ( [F%] → [F%]' )
Creates identity matrix. Errors if input is not a square matrix.
3745E SWAPROWS ( M % %' → M' )
SWAP two rows in matrix. Internal version of xRSWP.
37508 (SWAPCOLUMNS) ( [] #m #n → []' #m #n )
9358F (TYPEARRY@) ( [] → # )
Returns address of the prolog of the array element type.
03685 (ARRYEL?) ( {#n #m} [] → # T )
( {#n #m} [] → F )
Returns TRUE if array element exists.
03685 (FINDELN) ( {} A → # flag )
Return index # of element {} in array.
1DBB0 (BANGARRY) ( el # M → M' )
Puts el at index # of matrix M.
35CAE MATCON ( [%] % → [%]' )
( [C%] C% → [C%]' )
Replace all elements of [F%] by F%.
37E0F METREDIM ( [F%] {#n #m} → [F%]' )
Redimensions matrix. Removes elements or adds zeros as necessary.
357A8 MDIMS ( [1D] → #m F )
( [2D] → #m #n T )
If it is a vector, returns number of elements and FALSE. If it is an array (including arrays with only one line), returns dimensions and TRUE.
62F9D MDIMSDROP ( [2D] → #m #n )
MDIMS followed by DROP.
63141 OVERARSIZE ( [] ob → [] ob #elts )
Does OVER then <REF>ARSIZE.
355B8 PULLREALEL ( [%] # → [%] % )
Gets real element.
355C8 PULLCMPEL ( [C%] # → [C%] C% )
Gets complex element.
3558E (PULLEL) ( [F%] #n → [F%] F% )
Gets real or complex element.
35602 (PULLEREALEL) ( [%] #n → [%] %% )
Gets real element then converts to long real.
355D8 (PULLLONGEL) ( [F%] #n → [F%] L% )
Gets element then converts to long.
35628 PUTEL ( [%] % # → [%]' )
( [C%] C% # → [C%]' )
Puts element at specified position. Converts to "short" before. Warning: no copy to tempob first.
3566F PUTREALEL ( [%] % # → [%]' )
Puts real element at specified position. Warning: no copy to tempob first.
356F3 PUTCMPEL ( [C%] C% # → [C%]' )
Puts complex element at specified position. Warning: no copy to tempob first.
36115 (MAT+) ( [F%] [F%]' → [F%]" )
Adds two arrays.
36278 (MAT-) ( [F%] [F%]' → [F%]" )
Subtracts two arrays.
3644E (MAT*) ( [F%] [F%]' → [F%]" )
Multiplies two arrays.
36AC3 (MAT/) ( [F%] [F%]' → [F%]" )
Divides two arrays.
362DC (MATFLOAT*) ( [F%] F% → [F%]' )
Multiplies matrix by float.
363DB (MATFLOAT/) ( [F%] F% → [F%]' )
Divides matrix by float.
36444 (MATSQ) ( [F%] → [F%]' )
Squares matrix.
35F30 (MATCONJ) ( [F%] → [F%]' )
If a complex array, does the conjugate of all elements. If a real array, does nothing.
35DEB (MATNEG) ( [F%] → [F%]' )
Changes sign of all elements of array.
36A99 (MATINV) ( [F%] → [F%]' )
Reciprocal of all elements of array.
37E0F MATREDIM ( [F%] {#n #m} → [F%]' )
3811F MATTRN ( [F%] → [F%]' )
Transposes matrix.
35FA3 (DUP%0CON) ( [F%] → [F%] [0%] )
DUP then creates a matrix of the same size filled with zeros.
36A48 (MATDET) ( [F%] → F% )
Calculates determinant of matrix. Generates "Invalid Dimension" error for non-square matrices.
369E9 (MATABS) ( [F%] → F% )
Returns the scalar magnitude of array.
36705 (MATDOT) ( [F%] [F%]' → F% )
Returns the dot product of two vectors.
36791 (MATCROSS) ( [F%] [F%]' → [F%]" )
Returns the cross product of two vectors. Generates a "Invalid Dimension" error if inputs are not vectors.
365BB (MATRSD) ( [F%] [F%] [F%] → [F%] )
Calculates residuals of solutions of a linear system.
368F4 (MATRNRM)
Row norm.
3690D (MATCNRM) ( [F%] → F% )
Column norm.
36039 (MATR>C) ( [%re] [%im] → [C%] )
Creates complex matrix from real and imaginary parts.
360B6 (MATC>R) ( [C%] → [%re] [%im] )
Explodes complex matrix into real and imaginary parts.
35F8F (MATRE) ( [F%] → [%re] )
Returns (real) matrix with real part of complex numbers. Does nothing if the input is a real matrix.
35FEE (MATIM) ( [F%] → [%im] )
Returns (real) matrix with imaginary part of complex numbers. Returns an array of zeros if input is a real matrix.
35E2C (MATRND) ( [F%] % → [F%]' )
RND on all elements of matrix.
35EA9 (MATTRNC) ( [F%] % → [F%]' )
TRNC on all elements of matrix.
35C2C (DOARRYPRG1) ( seco [F%] → [F%]' )
Evaluates seco for each element in array, then builds array again. Argument for seco will be L%.
35C63 (DOARRYPRG2) ( seco [F%] [F%] → [F%]' )
Same as above, but seco has two arguments: one from array1 and another from array2. Arrays must be F%. Arguments for seco will be L%.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

This document was generated by Carsten Dominik on May, 30 2005 using texi2html