TOpenCLMatrix.SetZero Method

function SetZero: TOpenCLMtxVec;

Initializes object elements to zero.

Result: stored in self (calling object), returns self for chaining

Indexed: function SetZero(Index: Integer; Len: Integer): TOpenCLMtxVec;

Initializes calling object elements [Index]..[Index+Len-1] to zero.

#NameTypeDescription
1IndexIntegerstart index
2LenIntegerelement count

Result: stored in self (calling object), returns self for chaining

Remarks:

An exception is raised if array borders are overrun.