Vector::Diag Method

TVec *Diag(TMtx *Mtx, int k) const;

Copies the k-th diagonal from the TMtx object.

#NameTypeDescription
1MtxTMtx *
2kint
Remarks:

Copies the k-th diagonal from the TMtx 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: Vector::Diag
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler