ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
lr_amp.h File Reference
#include "utils/lr_util.h"
#include "source_base/parallel_reduce.h"
#include <ostream>
#include <stdexcept>
Include dependency graph for lr_amp.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  LR

Functions

int LR::electron_hole_offset (const int state, const int nk, const int up_size, const int down_size, const int ispin, const bool openshell)
template<typename T>
void LR::save_mixed_root (const T *Xall, const int n, const std::vector< int > &group, const std::vector< double > &mixing, std::vector< T > &previous)
template<typename T>
void LR::follow_root (const T *Xall, const int n, const int nstates, const int initial_state, int &target_state, std::vector< T > &previous, std::ostream &ofs)
template<typename T>
ct::Tensor LR::pad_amplitudes (const std::vector< ct::Tensor > &X, const bool openshell, const std::vector< Parallel_Blkcyclic > &px, const std::vector< Parallel_Blkcyclic > &px_z, const std::vector< int > &nocc, const std::vector< int > &nvirt, const int nk, const int nloc, const int nloc_z, const int ispin, const int istate_begin, const int nst)