Program: various
Title: Handy-Dandy Matrix Functions
Version: 1.0
Author: Michael McElroy (lord_nightrose@yahoo.com)

This is a group of 8 functions that allow you to do very useful things to matrices (some of which should have been included by TI in the first place, IMHO).

They are:

matfind(matrix,item to find,starting row, starting column): Searches a matrix for any item, starting in a given row and column. If it is found, it returns a list giving the coordinates of the item, otherwise it returns 0.

matmax(matrix): Returns the maximum value of the given matrix.

matmin(matrix): Returns the minimum value of the given matrix.

matrot(matrix,amount): Rotates the values in a matrix. If the amount is positive, it rotates left, placing values at the beginning near the end and shifting the other values left (and up when they reach the beginning of a row). If the amount is negative, it rotates right, placing values at the end near the beginning and shifting the other values right (and down when they reach the end of a row).

matshift(matrix,amount): Shifts the values in a matrix. Almost identical to matrot(), except any values that are pushed 'off' the ends of the matrix are discarded and 'undef' fills in the gaps.

matsorta(matrix): Sorts all elements in a matrix in ascending order.

matsortd(matrix): Sorts all elements in a matrix in descending order.

rowsum(matrix,row): Returns the sum of a given row of a given matrix. If 'row' is 0, returns the sum of the entire matrix.

Please feel free to send me any comments or questions about this or any of my other programs.