Overload List
Overload 1: Vector(const int ALength, const TMtxFloatPrecision aFloatPrecision);
Internally creates TVec object without using object cache.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | ALength | const int | |
| 2 | aFloatPrecision | const TMtxFloatPrecision |
Creates TVec object without using object cache. Suitable for declaring global variables.
Overload 2: Vector(const int ALength);
| # | Name | Type | Description |
|---|---|---|---|
| 1 | ALength | const int |
Overload 3: Vector(TVec *Src);
Uses TVec object as internal storage.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TVec * |
The resulting Vector will own Src object of TVec type and will release it once Vector gets out of scope.
Overload 4: Vector(bool FromObjectCache);
Constructor of the record.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | FromObjectCache | bool |
Returns a Vector with internal TVec 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 is to be used only for local variables.
Overload 5: Vector(const int ALength, const bool aIsComplex, const bool aIsDouble);
Constructor of the record.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | ALength | const int | |
| 2 | aIsComplex | const bool | |
| 3 | aIsDouble | const bool |
Returns a Vector with internal TVec object created explicitely with Length property set to aLength and Complex property set to IsComplex. Call this constructor, if the Vector type variable is a global variable with a long life span.
Overload 6: Vector(const int ALength, const bool aIsComplex);
| # | Name | Type | Description |
|---|---|---|---|
| 1 | ALength | const int | |
| 2 | aIsComplex | const bool |
Overload 7: Vector();
Overload 8: Vector(const Vector &aSrc);
| # | Name | Type | Description |
|---|---|---|---|
| 1 | aSrc | const Vector & |
Overload 9: Vector(std::initializer_list<double> aValues);
| # | Name | Type | Description |
|---|---|---|---|
| 1 | aValues | std::initializer_list<double> |
Overload 10: Vector(std::initializer_list<TCplx> aValues);
| # | Name | Type | Description |
|---|---|---|---|
| 1 | aValues | std::initializer_list<TCplx> |
Overload 11: Vector(const DewArray<float> &AValue);
Explicitely convert array of single values to Vector.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | AValue | const DewArray<float> & |
Copies all values from the AValue array to the result.
Overload 12: Vector(TVecInt *AValue);
Explicitely convert TVecInt to Vector.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | AValue | TVecInt * |
Copies all values from AValue to the result.
Overload 13: Vector(const VectorInt &AValue);
Explicitely convert VectorInt to Vector.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | AValue | const VectorInt & |
Copies all values from AValue to the result.
Overload 14: Vector(const DewArray<double> &AValue);
Implicit type conversion from an array of double to Vector.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | AValue | const DewArray<double> & |
Copies array and resizes resulting vector. Example of usage in Delphi XE7 and newer:
var a: Vector;
begin
a := [1,2,3,4,5];
a := [1,2.2,3,4] + [1,2]; //the + here is "column concatenation" a := [1,2.2,3,4] + a; //operator not applicable (it wont compile) end;
Overload 15: Vector(const DewArray<TCplx> &AValue);
Implicit type conversion from an array of TCplx to Vector.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | AValue | const DewArray<TCplx> & |
Copies array and resizes resulting vector. Example of usage in Delphi XE7 and newer:
var a: Vector;
begin
a := [Cplx(1,2),Cplx(3,4),Cplx(5)]; a := [Cplx(1,2.2),Cplx(3,4)] + [Cplx(1,2)]; //the + here is "column concatenation" a := [Cplx(1,2.2),Cplx(3,4)] + a; //operator not applicable (it wont compile) end;