CMatrixRow:Class Description
The CMatrixRow class manages a 1-dimensional array of elements that form each of the rows of a CMatrix object. The elements may be any kind of thing (number, string, object), although the CMatrix usually is implemented to hold numbers. CMatrixRow elements are referenced as numeric array indices, like [1] or [10000].
A CMatrixRow is sparse, meaning that there may be "holes" at indices where no value is defined. For example, you might define only one value at index 10000. Being sparse, this CMatrixRow requires storing only 1 value in memory, rather than 10000 elements with one defined value following 9999 other elements.
Construction |
Object = CMatrixRow:new() |
Destruction |
Object:delete() |
Creates a new instance of the CMatrixRow class. There are 3 constructor formats. |
|
Deletes the instance of the CMatrixRow object. |
|
Copies this CMatrixRow to a new CMatrixRow |
Returns the number of members actually initialized. |
|
Returns the dot product with another CMatrixRow. |
|
Empties the contents of the CMatrixRow but does not delete it. |
|
Returns true if a member exists at the index. |
|
Returns the member value at an array index. |
|
Initializes all members to a value. |
|
Returns the maximum member index. |
|
Removes the member at an index. |
|
Sets the member value at an index. |