Function matrix_set_identity (o2scl)

O2scl : Function List

template<class mat_t>
void o2scl::matrix_set_identity(size_t M, size_t N, mat_t &m)

Set a matrix to unity on the diagonal and zero otherwise.

template<class mat_t>
void o2scl::matrix_set_identity(mat_t &m)

Set a matrix to unity on the diagonal and zero otherwise.