Matrix.Create Constructor

Overload List

#SignatureDescription
1constructor Create(const Src: TMtx);Uses Src object as internal storage.
2constructor Create(FromObjectCache: Boolean);Constructor of the record.
3constructor Create(const aRows: Integer; const aCols: Integer; const aFloatPrecision: TMtxFloatPrecision);Matrix constructor.
4constructor 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.

#NameTypeDescription
1SrcTMtx

Result: stored in self (calling object)

Remarks:

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.

#NameTypeDescription
1FromObjectCacheBoolean

Result: stored in self (calling object)

Remarks:

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.

#NameTypeDescription
1aRowsInteger
2aColsInteger
3aFloatPrecisionTMtxFloatPrecision

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.

#NameTypeDescription
1aRowsInteger
2aColsInteger
3aIsComplexBoolean
4aIsDoubleBoolean

Result: stored in self (calling object)

Remarks:

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.