Makes matrix diagonal. Can be used with arithmetic data types only.
template<class TYPE>
void Diagonal(TMat2<TYPE> &m, const TYPE v);
template<class TYPE>
void Diagonal(TMat3<TYPE> &m, const TYPE v);
template<class TYPE>
void Diagonal(TMat4<TYPE> &m, const TYPE v);
template<class TYPE, size_t ROWS, size_t COLUMNS>
void Diagonal(TMatrix<TYPE, ROWS, COLUMNS> &m, const TYPE diagonal);
Namespace: | ntl |
Include: |
NTL/Core/Mat2.h (For TMat2 argument) NTL/Core/Mat3.h (For TMat3 argument) NTL/Core/Mat4.h (For TMat4 argument) NTL/Core/Matrix.h (For TMatrix argument) |