Matrix.SetZero Method

Overload List

#SignatureDescription
1TMtxVec SetZeroInitializes object elements to zero.
└ indexed: TMtxVec SetZero(Int32 Index, Int32 Len)
2TMtx SetZero(Int32 Row, Int32 Col, Int32 ToRow, Int32 ToCol)Initializes matrix values to zero.

Overload 1: TMtxVec SetZero

Initializes object elements to zero.

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

See Also: Matrix.SetVal

Indexed: TMtxVec SetZero(Int32 Index, Int32 Len)

Set all calling object elements to zero.

#NameTypeDescription
1IndexInt32start index
2LenInt32element count

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

Remarks:

Initializes calling object elements [Index]..[Index+Len-1] to zero. An exception is raised if array borders are overrun.

Overload 2: TMtx SetZero(Int32 Row, Int32 Col, Int32 ToRow, Int32 ToCol)

Initializes matrix values to zero.

#NameTypeDescription
1RowInt32
2ColInt32
3ToRowInt32
4ToColInt32

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

Remarks:

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