VectorInt::VectorInt Constructor

Overload List

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

Overload 1: VectorInt(int ALength);

Constructor of the record.

#NameTypeDescription
1ALengthint
Remarks:

Returns a Vector with internal TVecInt 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::VectorInt · Dew.Math/MtxExprInt.h · Cross-compiler

Overload 2: VectorInt(int ALength, TIntPrecision aPrecision);

Internally creates TVecInt object without using object cache.

#NameTypeDescription
1ALengthint
2aPrecisionTIntPrecision
Remarks:

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

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

Overload 3: VectorInt(TVecInt *Src);

Uses TVecInt object as internal storage.

#NameTypeDescription
1SrcTVecInt *
Remarks:

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

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

Overload 4: VectorInt(bool FromObjectCache);

Constructor of the record.

#NameTypeDescription
1FromObjectCachebool
Remarks:

Returns a Vector with internal TVecInt 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::VectorInt · Dew.Math/MtxExprInt.h · Cross-compiler

Overload 5: VectorInt();

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

Overload 6: VectorInt(const VectorInt &aSrc);

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

Overload 7: VectorInt(std::initializer_list<int> aValues);

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

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

Explicitely convert array of complex values to VectorInt.

#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::VectorInt · Dew.Math/MtxExprInt.h · Cross-compiler

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

Explicitely convert array of double values to VectorInt.

#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::VectorInt · Dew.Math/MtxExprInt.h · Cross-compiler

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

Explicitely convert array of single values to VectorInt.

#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::VectorInt · Dew.Math/MtxExprInt.h · Cross-compiler

Overload 11: VectorInt(TMtxVec *AValue);

Explicitely convert TMtxVec to VectorInt.

#NameTypeDescription
1AValueTMtxVec *
Remarks:

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

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

Overload 12: VectorInt(const DewArray<int> &AValue);

Implicit type conversion from an array of integer to VectorInt.

#NameTypeDescription
1AValueconst DewArray<int> &
Remarks:

Copies array and resizes resulting vector. Example of usage in Delphi XE7 and newer:

var a: VectorInt;
begin
a := [1,2,3,4,5];
a := [1,2,3,4] + [1,2]; //the + here is "column concatenation" a := [1,2,3,4] + a; //operator not applicable (it wont compile) end;

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

Overload 13: VectorInt(const Matrix &AValue);

Copies Matrix data to VectorInt.

#NameTypeDescription
1AValueconst Matrix &
Remarks:

Copies all values from AValue to the result.

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

Overload 14: VectorInt(const Vector &AValue);

Explicitely convert Vector to VectorInt.

#NameTypeDescription
1AValueconst Vector &
Remarks:

Copies all values from AValue to the result.

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