ClMtxExpr.Cos Method

Overload List

#SignatureDescription
1function Cos(X: TOpenCLMatrix): clMatrix;Result = the cos function from the source and return the result
2function Cos(X: TOpenCLValue): clValue;Result = the cos function from the source and return the result
3function Cos(X: TOpenCLVector): clVector;Result = the cos function from the source and return the result

Overload 1: function Cos(X: TOpenCLMatrix): clMatrix;

Compute the cos function from the source and return the result.

#NameTypeDescription
1XTOpenCLMatrixsource TOpenCLMatrix

Returns: clMatrix

Remarks:

Internally calls clMatrix.Cos

Overload 2: function Cos(X: TOpenCLValue): clValue;

Compute the cos function from the source and return the result.

#NameTypeDescription
1XTOpenCLValuesource TOpenCLValue

Returns: clValue

Remarks:

Internally calls clValue.Cos

Examples
var a,b: clValue;
begin
    b.Copy(4);
    a.Cos(b);
end;

Overload 3: function Cos(X: TOpenCLVector): clVector;

Compute the cos function from the source and return the result.

#NameTypeDescription
1XTOpenCLVectorsource TOpenCLVector

Returns: clVector

Remarks:

Internally calls clVector.Cos