VectorInt::Diag Method

TVecInt *Diag(TMtxInt *Mtx, int k) const;

Copies the k-th diagonal from the TMtxInt object.

#NameTypeDescription
1MtxTMtxInt *
2kint
Remarks:

Copies the k-th diagonal from the TMtxInt object. If k = 0 then the main diagonal is copied, if k < 0 then the subdiagonal is copied and if k > 0 then the k-th super diagonal is copied to the calling vector.

See Also: TMtx::Diag
Declared in Dew::Math::VectorInt · Dew.Math/MtxExprInt.h · Cross-compiler