TSparseMtx.Sumc Method

function Sumc: TCplx; overload;

Sum (complex value).

Returns: TCplx (complex) - the complex sum of all calling object complex elements.

Remarks:

An exception is raised if calling object TMtxVec.Complex property is False.

Indexed: function Sumc(Index,Len: integer): TCplx; overload;

Returns the complex sum of calling object complex elements [Index]..[Index+Len-1].

#NameTypeDescription
1Indexintegerstart index
2Lenintegerelement count

Returns: TCplx (complex)

Remarks:

An exception is raised if calling object TMtxVec.Complex property is False or array borders are overrun/underrun.