TOpenCLVector.SumAndSqrSum Method

procedure SumAndSqrSum(out Sum: Double; out SqrSum: Double);

Computes the sum and the sum of squared elements from the elements in the calling object.

#NameTypeDescription
1SumDouble
2SqrSumDouble

Result: stored in self (calling object)

Indexed: procedure SumAndSqrSum(out Sum: Double; out SqrSum: Double; Index: Integer; Len: Integer);

Returns the sum and the sum of squared elements.

#NameTypeDescription
1SumDouble
2SqrSumDouble
3IndexIntegerstart index
4LenIntegerelement count

Result: stored in self (calling object)

Remarks:

Returns the sum and the sum of squared items from calling vector elements [Index]..[Index+Len-1].