Function log_det(Matrix const&, unsigned int)

Function Documentation

inline data_t log_det(Matrix const &mat, unsigned int N_sub)

Computes the log-determinant of the N_sub x N_sub sub-matrix of the given matrix mat

Parameters
  • &mat – The base matrix from which the N_sub x N_sub sub-matrix is used.

  • N_sub – The N_sub x N_sub sub-matrix. The caller has to make sure that N_sub <= N. If you want to use the entire matrix supply N_sub = N.

Returns The

log-determinant of the N_sub x N_sub sub-matrix of mat