Overload List
| # | Signature | Description |
|---|---|---|
| 1 | constructor Create(const Src: TMtx); | Uses Src object as internal storage. |
| 2 | constructor Create(FromObjectCache: Boolean); | Constructor of the record. |
| 3 | constructor Create(const aRows: Integer; const aCols: Integer; const aFloatPrecision: TMtxFloatPrecision); | Matrix constructor. |
| 4 | constructor Create(const aRows: Integer; const aCols: Integer; const aIsComplex: Boolean; const aIsDouble: Boolean); | Internally creates TMtx object without using object cache. |
Overload 1: constructor Create(const Src: TMtx);
Uses Src object as internal storage.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | 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: constructor Create(FromObjectCache: Boolean);
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: constructor Create(const aRows: Integer; const aCols: Integer; const aFloatPrecision: TMtxFloatPrecision);
Matrix constructor.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | aRows | Integer | |
| 2 | aCols | Integer | |
| 3 | aFloatPrecision | TMtxFloatPrecision |
Result: stored in self (calling object)
Overload 4: constructor Create(const aRows: Integer; const aCols: Integer; const aIsComplex: Boolean; const aIsDouble: Boolean);
Internally creates TMtx object without using object cache.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | aRows | Integer | |
| 2 | aCols | Integer | |
| 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.