Overload List
| # | Signature | Description |
|---|---|---|
| 1 | TMtxVec *Size(TMtxVecBase *Src); | Size the object. |
| 2 | TVec *Size(int ALength, bool AComplex, bool aIsDouble); | Sets the size of the vector. |
| 3 | TVec *Size(int ALength, bool AComplex); | Sets the size of the vector. |
| 4 | TVec *Size(int ALength); | Sizes the vector. |
| 5 | TVec *Size(int ALength, const TMtxFloatPrecision aFloatPrecision); | Sets the size of the vector. |
| 6 | TVec *Size(int ALength, TMtxVec *FloatRef); | Sets the size of the vector. |
| 7 | TMtxVec *Size(TMtxVecBase *Src, bool AComplex); | Sets vector size. |
| 8 | TMtxVec *Size(TMtxVecBase *Src, const TMtxFloatPrecision aFloatPrecision); | Sets vector size. |
Overload 1: TMtxVec *Size(TMtxVecBase *Src);
Size the object.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TMtxVecBase * |
Assignes the size of the Src object to the calling object. If the calling object is a TVec object then the Src can be of any type, otherwise TMtx can only obtain size from a TMtx object and TSparseMtx can only obtain size from a TSparseMtx object.
If the calling object and Src are of different types, the complex property can be different, if both objects have a matching TVec::Length property. In this case only the Complex property of the calling object will changed, while all other properties describing the size of the object (rows, cols, length, nonZeros) will be preserved. This is different from simply setting the Complex property. Changing the Complex property directly would also change the Length, Cols and NonZeros properties.
Overload 2: TVec *Size(int ALength, bool AComplex, bool aIsDouble);
Sets the size of the vector.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | ALength | int | |
| 2 | AComplex | bool | |
| 3 | aIsDouble | bool |
Same as the following code:
if aIsDouble then begin if aComplex then Size(aLength, mvDoubleComplex) else Size(aLength, mvDouble); end else begin if aComplex then Size(aLength, mvSingleComplex) else Size(aLength, mvSingle); end;
Calling the Size method does not preserve the contents of the vector. Use the Resize method, if you want to preserve existing values.
Overload 3: TVec *Size(int ALength, bool AComplex);
Sets the size of the vector.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | ALength | int | |
| 2 | AComplex | bool |
Same as the following code:
Vec.Length := ALength; Vec.Complex := AComplex;
Calling the Size method does not preserve the contents of the vector. Use the Resize method, if you want to preserve existing values.
Existing floating point precision is preserved.
Overload 4: TVec *Size(int ALength);
Sizes the vector.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | ALength | int |
Sets the following properties:
Length := ALength; Complex := false;
Existing floating point precision is preserved.
Calling the Size method does not preserve the contents of the vector. Use the Resize method, if you want to preserve existing values.
Overload 5: TVec *Size(int ALength, const TMtxFloatPrecision aFloatPrecision);
Sets the size of the vector.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | ALength | int | |
| 2 | aFloatPrecision | const TMtxFloatPrecision |
Same as the following code:
Vec.FloatPrecision := aFloatPrecision; Vec.Length := ALength;
Calling the Size method does not preserve the contents of the vector. Use the Resize method, if you want to preserve existing values.
Overload 6: TVec *Size(int ALength, TMtxVec *FloatRef);
Sets the size of the vector.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | ALength | int | |
| 2 | FloatRef | TMtxVec * |
Same as the following code:
Vec.FloatPrecision := FloatRef.FloatPrecision; Vec.Length := ALength;
Calling the Size method does not preserve the contents of the vector. Use the Resize method, if you want to preserve existing values.
Overload 7: TMtxVec *Size(TMtxVecBase *Src, bool AComplex);
Sets vector size.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TMtxVecBase * | |
| 2 | AComplex | bool |
Length is set to Src.Length and Complex property to AComplex. Floating point precision is obtained from Src. If Src is integer type (TVecInt, TMtxInt), the existing floating point precision is preserved.
Overload 8: TMtxVec *Size(TMtxVecBase *Src, const TMtxFloatPrecision aFloatPrecision);
Sets vector size.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TMtxVecBase * | |
| 2 | aFloatPrecision | const TMtxFloatPrecision |
Length is set to Src.Length and precision is set to aFloatPrecision.