TMtxInt.SetZero Method

Overload List

#SignatureDescription
1function SetZero(Row: Integer; Col: Integer; ToRow: Integer; ToCol: Integer): TMtxInt;Initializes matrix values to zero.
2function SetZero: TMtxVecInt;Set all calling vector elements to zero.
└ indexed: function SetZero(Index: Integer; Len: Integer): TMtxVecInt;

Overload 1: function SetZero(Row: Integer; Col: Integer; ToRow: Integer; ToCol: Integer): TMtxInt;

Initializes matrix values to zero.

#NameTypeDescription
1RowInteger
2ColInteger
3ToRowInteger
4ToColInteger

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

Remarks:

Sets the calling matrix elements [Row,Col]..[ToRow,ToCol] to zero. An exception is raised if TMtxVecBase.ConditionCheck is true and array bounds are overrun.

Overload 2: function SetZero: TMtxVecInt;

Set all calling vector elements to zero.

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

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

Set calling vector 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/underrun.