ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
state_group.h
Go to the documentation of this file.
1#ifndef ABACUS_LR_STATE_GROUP_H
2#define ABACUS_LR_STATE_GROUP_H
3#include <complex>
4#include <vector>
5namespace LR
6{
8{
9 int group = 0;
10 double score = 0.0;
11 double subspace_score = 0.0;
12 std::vector<double> reference_weights;
13 double old_coverage = 0.0;
14 double new_coverage = 0.0;
15 double runner_up = 0.0;
16 std::vector<double> singular_values;
17};
18// Row-major old-group by current-root overlap. JT ranks by the actual reference
19// projection weight; otherwise total subspace overlap ranks groups. Ties use the other score.
20// No dimension cap: losing old directions is diagnosed, rather than rejected.
21GroupMatch match_state_group(const std::vector<std::complex<double>>& overlap,
22 int old_dimension, int nstates, const std::vector<std::vector<int>>& groups,
23 const std::vector<double>& reference_overlap, bool reference_first);
24}
25#endif
Definition esolver_lr_lcao_tddft.h:28
GroupMatch match_state_group(const std::vector< std::complex< double > > &overlap, const int old_dimension, const int nstates, const std::vector< std::vector< int > > &groups, const std::vector< double > &reference_overlap, const bool reference_first)
Definition state_group.cpp:8
Definition state_group.h:8
std::vector< double > singular_values
Definition state_group.h:16
int group
Definition state_group.h:9
std::vector< double > reference_weights
Definition state_group.h:12
double subspace_score
Definition state_group.h:11
double old_coverage
Definition state_group.h:13
double score
Definition state_group.h:10
double new_coverage
Definition state_group.h:14
double runner_up
Definition state_group.h:15