Overload List
Overload 1: MatrixInt(const int aRows, const int aCols);
Constructor of the record.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | aRows | const int | |
| 2 | aCols | const int |
Returns a Vector with internal TMtxInt object created explicitely with Length property set to aLength and IntPrecision property set to int32. Call this constructor, if the Vector type variable is a global variable with a long life span.
Overload 2: MatrixInt(const int aRows, const int aCols, const TIntPrecision aPrecision);
Internally creates TMtxInt object without using object cache.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | aRows | const int | |
| 2 | aCols | const int | |
| 3 | aPrecision | const TIntPrecision |
Creates TMtxInt object without using object cache. Suitable for declaring global variables.
Overload 3: MatrixInt(TMtxInt *Src);
Uses TMtxInt object as internal storage.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TMtxInt * |
The resulting Vector will own Src object of TMtxInt type and will release it once Vector gets out of scope.
Overload 4: MatrixInt(bool FromObjectCache);
Constructor of the record.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | FromObjectCache | bool |
Returns a Vector with internal TMtxInt object created from object cache (CreateIt), if FromObjectCache is True. Pass false to the constructor or do not call it at all, if the variable is a local variable. Object cache has limited size.
Overload 5: MatrixInt();
Overload 6: MatrixInt(const MatrixInt &aSrc);
| # | Name | Type | Description |
|---|---|---|---|
| 1 | aSrc | const MatrixInt & |
Overload 7: MatrixInt(std::initializer_list<std::initializer_list<int>> aRows);
| # | Name | Type | Description |
|---|---|---|---|
| 1 | aRows | std::initializer_list<std::initializer_list<int>> |
Overload 8: MatrixInt(const DewArray<TCplx> &AValue);
Explicitely convert array of complex values to MatrixInt.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | AValue | const DewArray<TCplx> & |
Copies all values from the complex array to the result with precision set at 32bit signed integer.
Overload 9: MatrixInt(const DewArray<double> &AValue);
Explicitely convert array of double values to MatrixInt.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | AValue | const DewArray<double> & |
Copies all values from the double array to the result with precision set at 32bit signed integer;
Overload 10: MatrixInt(const DewArray<float> &AValue);
Explicitely convert array of single values to MatrixInt.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | AValue | const DewArray<float> & |
Copies all values from the AValue array to the result with precision set at 32bit signed integer.
Overload 11: MatrixInt(TMtxVec *AValue);
Explicitely convert TMtxVec to MatrixInt.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | AValue | TMtxVec * |
Copies all values from AValue to the result with precision set at 32bit signed integer.
Overload 12: MatrixInt(const DewArray2D<int> &AValue);
Implicit type conversion from an array of integer to MatrixInt.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | AValue | const DewArray2D<int> & |
Copies array and resizes resulting matrix. Example of usage:
var a: MatrixInt;
begin
a := [[1,2],[3,4]];
a := [[1,2],[3,4]] + [1,2]; //the + here is "row concatenation" a := [1,2,3,4] + a; //operator not applicable (it wont compile) end;
Overload 13: MatrixInt(const DewArray<int> &AValue);
Implicit type conversion from an array of integer to MatrixInt.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | AValue | const DewArray<int> & |
Copies array, but does not resize resulting matrix. Example of usage in Delphi XE7 and newer:
var a: MatrixInt;
begin
a.Size(2,2);
a := [1,2,3,4]; //same as a = [[1,2],[3,4]] end;