Matrix.Matrix Constructor

Overload List

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

#NameTypeDescription
1SrcTMtxsource TMtx

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: Matrix(Boolean FromObjectCache)

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: Matrix(Int32 aRows, Int32 aCols, TMtxFloatPrecision aFloatPrecision)

Matrix constructor.

#NameTypeDescription
1aRowsInt32
2aColsInt32
3aFloatPrecisionTMtxFloatPrecision

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.

#NameTypeDescription
1aRowsInt32
2aColsInt32
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.