You are here: Symbol Reference > AbstractMtxVec Namespace > Classes > TMtxVec Class > public > Sgn Method > TMtxVec.Sgn Method (TMtxVec, integer, integer, integer)
MtxVec VCL
ContentsIndex
PreviousUpNext
TMtxVec.Sgn Method (TMtxVec, integer, integer, integer)

Computes signum function from Src elements [SrcIndex..SrcIndex+Len-1] and stores the result in the calling object [Index..Index+Len-1].

Pascal
function Sgn(const Src: TMtxVec; SrcIndex: integer; Index: integer; Len: integer): TMtxVec; overload;

Size and Complex properties of calling object are adjusted automatically. Signum(X) is 1 for X > 0 , equal to zero for X = 0 and -1 for X < 0.

Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!