MatrixInt::MatrixInt Constructor

Overload List

#SignatureDescription
1MatrixInt(const int aRows, const int aCols);Constructor of the record.
2MatrixInt(const int aRows, const int aCols, const TIntPrecision aPrecision);Internally creates TMtxInt object without using object cache.
3MatrixInt(TMtxInt *Src);Uses TMtxInt object as internal storage.
4MatrixInt(bool FromObjectCache);Constructor of the record.
5MatrixInt();
6MatrixInt(const MatrixInt &aSrc);
7MatrixInt(std::initializer_list<std::initializer_list<int>> aRows);
8MatrixInt(const DewArray<TCplx> &AValue);Explicitely convert array of complex values to MatrixInt.
9MatrixInt(const DewArray<double> &AValue);Explicitely convert array of double values to MatrixInt.
10MatrixInt(const DewArray<float> &AValue);Explicitely convert array of single values to MatrixInt.
11MatrixInt(TMtxVec *AValue);Explicitely convert TMtxVec to MatrixInt.
12MatrixInt(const DewArray2D<int> &AValue);Implicit type conversion from an array of integer to MatrixInt.
13MatrixInt(const DewArray<int> &AValue);Implicit type conversion from an array of integer to MatrixInt.

Overload 1: MatrixInt(const int aRows, const int aCols);

Constructor of the record.

#NameTypeDescription
1aRowsconst int
2aColsconst int
Remarks:

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.

See Also: TMtxVecInt::IsEqual
Declared in Dew::Math::MatrixInt · Dew.Math/MtxExprInt.h · Cross-compiler

Overload 2: MatrixInt(const int aRows, const int aCols, const TIntPrecision aPrecision);

Internally creates TMtxInt object without using object cache.

#NameTypeDescription
1aRowsconst int
2aColsconst int
3aPrecisionconst TIntPrecision
Remarks:

Creates TMtxInt object without using object cache. Suitable for declaring global variables.

Declared in Dew::Math::MatrixInt · Dew.Math/MtxExprInt.h · Cross-compiler

Overload 3: MatrixInt(TMtxInt *Src);

Uses TMtxInt object as internal storage.

#NameTypeDescription
1SrcTMtxInt *
Remarks:

The resulting Vector will own Src object of TMtxInt type and will release it once Vector gets out of scope.

Declared in Dew::Math::MatrixInt · Dew.Math/MtxExprInt.h · Cross-compiler

Overload 4: MatrixInt(bool FromObjectCache);

Constructor of the record.

#NameTypeDescription
1FromObjectCachebool
Remarks:

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.

Declared in Dew::Math::MatrixInt · Dew.Math/MtxExprInt.h · Cross-compiler

Overload 5: MatrixInt();

Declared in Dew::Math::MatrixInt · Dew.Math/MtxExprInt.h · Cross-compiler

Overload 6: MatrixInt(const MatrixInt &aSrc);

#NameTypeDescription
1aSrcconst MatrixInt &
Declared in Dew::Math::MatrixInt · Dew.Math/MtxExprInt.h · Cross-compiler

Overload 7: MatrixInt(std::initializer_list<std::initializer_list<int>> aRows);

#NameTypeDescription
1aRowsstd::initializer_list<std::initializer_list<int>>
Declared in Dew::Math::MatrixInt · Dew.Math/MtxExprInt.h · Cross-compiler

Overload 8: MatrixInt(const DewArray<TCplx> &AValue);

Explicitely convert array of complex values to MatrixInt.

#NameTypeDescription
1AValueconst DewArray<TCplx> &
Remarks:

Copies all values from the complex array to the result with precision set at 32bit signed integer.

Declared in Dew::Math::MatrixInt · Dew.Math/MtxExprInt.h · Cross-compiler

Overload 9: MatrixInt(const DewArray<double> &AValue);

Explicitely convert array of double values to MatrixInt.

#NameTypeDescription
1AValueconst DewArray<double> &
Remarks:

Copies all values from the double array to the result with precision set at 32bit signed integer;

Declared in Dew::Math::MatrixInt · Dew.Math/MtxExprInt.h · Cross-compiler

Overload 10: MatrixInt(const DewArray<float> &AValue);

Explicitely convert array of single values to MatrixInt.

#NameTypeDescription
1AValueconst DewArray<float> &
Remarks:

Copies all values from the AValue array to the result with precision set at 32bit signed integer.

Declared in Dew::Math::MatrixInt · Dew.Math/MtxExprInt.h · Cross-compiler

Overload 11: MatrixInt(TMtxVec *AValue);

Explicitely convert TMtxVec to MatrixInt.

#NameTypeDescription
1AValueTMtxVec *
Remarks:

Copies all values from AValue to the result with precision set at 32bit signed integer.

Declared in Dew::Math::MatrixInt · Dew.Math/MtxExprInt.h · Cross-compiler

Overload 12: MatrixInt(const DewArray2D<int> &AValue);

Implicit type conversion from an array of integer to MatrixInt.

#NameTypeDescription
1AValueconst DewArray2D<int> &
Remarks:

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;

Declared in Dew::Math::MatrixInt · Dew.Math/MtxExprInt.h · Cross-compiler

Overload 13: MatrixInt(const DewArray<int> &AValue);

Implicit type conversion from an array of integer to MatrixInt.

#NameTypeDescription
1AValueconst DewArray<int> &
Remarks:

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;

Declared in Dew::Math::MatrixInt · Dew.Math/MtxExprInt.h · Cross-compiler