Template Function sequant::mbpt::detail::nns_projection_weights¶
Defined in File biorthogonalization.hpp
Function Documentation¶
-
template<typename T>
const std::vector<T> &sequant::mbpt::detail::nns_projection_weights(std::size_t n_particles, double pseudoinverse_threshold = default_biorthogonalizer_pseudoinverse_threshold)¶ Provides NNS projection weights for a given rank.
- Template Parameters:
T – The numeric type (must be floating point or complex)
- Parameters:
n_particles – The rank of external index pairs
threshold – The threshold to compute the pseudoinverse matrix (set to default_biorthogonalizer_pseudoinverse_threshold)
- Returns:
(memoized) Vector of hrdcoded/computed NNS projection weights