clVector.SetZero Method

function SetZero: TOpenCLMtxVec; overload;

Initializes object elements to zero.

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

See Also: clVector.SetVal, clVector.SetVal, clVector.SetVal, clVector.SetVal

Indexed: function SetZero(Index, Len: integer): TOpenCLMtxVec; overload;

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.