CMatrix Class
The CMatrix class manages a sparse 2-dimensional matrix. The members (or elements) of the matrix are usually numbers but may be any type of value, such as strings or references to other types. The matrix is organized as an array of CMatrixRow objects, with each CMatrix row managing an array of matrix elements.
See the detailed description of the CMatrix class in Working with Matrices.
Construction |
Object = CMatrix:new() |
Destruction |
Object:delete() |
This class has no exposed properties.
Creates a new instance of the CMatrix class. |
|
Deletes the instance of the CMatrix object. |
|
Copies another CMatrix into this one. |
|
Duplicates the current CMatrix into a new CMatrix and returns the new CMatrix. |
Returns the maximum column index used in any row. |
|
Returns the number of rows actually initialized. |
|
Lists all matrix elements in a text window. |
|
Empties the contents of the CMatrix but does not delete it. |
|
Returns true if a value exists at the (row, column) index. |
|
Returns the value at a (row, column) position in the matrix. |
|
Returns the CArray used for a row. |
|
Initializes all row x column entries to a value. |
|
Returns the maximum number of columns initialized in any row. |
|
Returns a count of total defined members. |
|
Removes the value at a (row,column) index. |
|
Deletes an entire row from the matrix. |
|
Returns the number the maximum row index used. |
|
Returns true if a specified row exists. |
|
Returns the number of rows actually initialized. |
|
Sets the value at a row, column index. |
Normalizes all element values to a volume of 1.0. |
|
Returns the sum of all matrix members. |