You are here: Symbol Reference > clMtxVec Namespace > Classes > TOpenCLMtxVec Class > public > TOpenCLMtxVec.SgnMul Method
MtxVec VCL
ContentsIndex
PreviousUpNext
TOpenCLMtxVec.SgnMul Method

Signum.

Pascal
function SgnMul(const Src: TOpenCLMtxVec): TOpenCLMtxVec; overload;

Calculates the signum of all Src object elements and multiplies it with the calling object elements accordingly. Signum(X) is 1 for X > 0 , equal to zero for X = 0 and -1 for X < 0. The length of Src and of the calling object must match or an exception will be raised. Size and TOpenCLBase.ComplexComplexproperty of calling object are adjusted automatically.

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