Skip to content

Commit

Permalink
Add function to get number of linearly independent auxiliary functions
Browse files Browse the repository at this point in the history
  • Loading branch information
susilehtola committed Jan 21, 2024
1 parent ec73829 commit c6b3cab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/density_fitting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1144,6 +1144,10 @@ size_t DensityFit::get_Naux() const {
return Naux;
}

size_t DensityFit::get_Naux_indep() const {
return ab_invh.n_cols;
}

arma::mat DensityFit::get_ab() const {
return ab;
}
Expand Down
2 changes: 2 additions & 0 deletions src/density_fitting.h
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,8 @@ class DensityFit {
size_t get_Norb() const;
/// Get the number of auxiliary functions
size_t get_Naux() const;
/// Get the number of linearly independent auxiliary functions
size_t get_Naux_indep() const;
/// Get ab_inv
arma::mat get_ab() const;
/// Get ab_inv
Expand Down

0 comments on commit c6b3cab

Please sign in to comment.