ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
overlap_spectrum.cpp File Reference
#include "overlap_spectrum.h"
#include <algorithm>
#include <cmath>
Include dependency graph for overlap_spectrum.cpp:

Namespaces

namespace  hsolver

Functions

bool hsolver::overlap_inverse_sqrt (const std::vector< double > &values, double relative_cutoff, std::vector< double > &weights)
 Compute inverse square root weights for an ascending overlap spectrum. At zero cutoff every value must be positive. At positive cutoff, weights for values at or below relative_cutoff * max(values) are zero.