Overload List
| # | Signature | Description |
|---|---|---|
| 1 | Matrix(TMtx Src) | Uses Src object as internal storage. |
| 2 | Matrix(Boolean FromObjectCache) | Constructor of the record. |
| 3 | Matrix(Int32 aRows, Int32 aCols, TMtxFloatPrecision aFloatPrecision) | Matrix constructor. |
| 4 | Matrix(Int32 aRows, Int32 aCols, Boolean aIsComplex, Boolean aIsDouble) | Internally creates TMtx object without using object cache. |
Overload 1: Matrix(TMtx Src)
Uses Src object as internal storage.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TMtx | source TMtx |
Result: stored in self (calling object)
The resulting Matrix will own Src object of TMtx type and will release it once Matrix gets out of scope.
Overload 2: Matrix(Boolean FromObjectCache)
Constructor of the record.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | FromObjectCache | Boolean |
Result: stored in self (calling object)
Returns a Matrix with internal TMtx object created from object cache (CreateIt), if FromObjectCache is True. Pass false to the constructor, if the variable is a global variable. Object cache has limited size and to be used only for local variables.
Overload 3: Matrix(Int32 aRows, Int32 aCols, TMtxFloatPrecision aFloatPrecision)
Matrix constructor.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | aRows | Int32 | |
| 2 | aCols | Int32 | |
| 3 | aFloatPrecision | TMtxFloatPrecision |
Result: stored in self (calling object)
Overload 4: Matrix(Int32 aRows, Int32 aCols, Boolean aIsComplex, Boolean aIsDouble)
Internally creates TMtx object without using object cache.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | aRows | Int32 | |
| 2 | aCols | Int32 | |
| 3 | aIsComplex | Boolean | |
| 4 | aIsDouble | Boolean |
Result: stored in self (calling object)
Creates TMtx object without using object cache. Suitable for declaring global variables. To obtain Matrix type with storage from object cache, do not call the constructor, but simply declare the var.