Dew MtxVec NET
TVec.Size Methods
Summary
Sets the size of the vector.

Class
TVec

Declaration
Function Size(ALength: integer; AComplex: boolean; AIsInteger: boolean): TVec;

Description
Same as the following code:
Vec.Length := ALength; Vec.Complex := AComplex; Vec.IsInteger := AIsInteger;
The meaning of IsInteger is limited. It use used only by some routines, which expect TVec parameters to store integers and to have them accessible via IValues.

Calling the Size method does not preserve the contents of the vector. Use the Resize method, if you want to preserve existing values.


Declaration
Function Size(ALength: integer): TVec;

Description
Sets the following properties:
Vec.Length := ALength; Vec.Complex := false; Vec.IsInteger := false;

Declaration
Function Size(ALength: integer; AComplex: boolean): TVec;

Description
Sets the following properties:
Vec.Length := ALength; Vec.Complex := AComplex; Vec.IsInteger := false;

Copyright 2008 Dew Research
http://www.dewresearch.com