You are here: Symbol Reference > clMtxExpr Namespace > Classes > clMatrix Record > public > Sgn Method > clMatrix.Sgn Method (TOpenCLMtxVec)
MtxVec VCL
ContentsIndex
PreviousUpNext
clMatrix.Sgn Method (TOpenCLMtxVec)

Computes signum function from Src elements and stores the result in the calling object.

Pascal
function Sgn(const Src: TOpenCLMtxVec): TOpenCLMtxVec; 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-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!