clValue.Sqr Method

TOpenCLValue Sqr(TOpenCLValue X)

Square.

#NameTypeDescription
1XTOpenCLValuesource TOpenCLValue

Returns: TOpenCLValue

Remarks:

Calculate the square of X.

Examples
clValue a;
clValue b;
b.Copy(2);
a.Sqr(b); // a=new double[] {4}
See Also: clValue.Sqrt, clValue.Power