You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > clMatrix Structure > clMatrix Methods > Sgn Method > clMatrix.Sgn Method (int, int)
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
clMatrix.Sgn Method (int, int)

Computes signum function of calling object elements [Index..Index+Len-1].

Syntax
C#
Visual Basic
public TOpenCLMtxVec Sgn(int Index, int Len);

Signum(X) is 1 for X > 0 , equal to zero for X = 0 and -1 for X < 0.

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