Dew MtxVec NET
TMtxVec.SetVal Methods
Summary
Initialize elements to Value.

Class
TMtxVec

Declaration
Function SetVal(Value: TSample): TMtxVec;

Description
Set all calling object elements to Value. If the calling object is complex then the real part is set to Value and the imaginary is set to zero.
 See Also 
SetZero 

Example 1

var a: TVec; begin CreateIt(a); a.Size(4,False); a.SetVal(1); // a = [1,1,1,1] FreeIt(a); end;


Declaration
Function SetVal(Value: TCplx; Index: integer; Len: integer): TMtxVec;

Description
Set calling object complex elements [Index]..[Index+Len-1] to complex Value.
Complex properties of the calling object are set to true even before the call it was false. An exception is raised if calling object array borders are overrun/underrun.
Declaration
Function SetVal(Value: TCplx): TMtxVec;

Description
Set all calling object complex elements to complex Value.
Declaration
Function SetVal(Value: TSample; Index, Len: integer): TMtxVec;

Description
Set all calling object elements [Index]..[Index+Len-1] to real Value. If the calling object is complex then the real part is set to Value and the imaginary is set to zero. An exception is raised if array borders are overrun/underrun.

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