ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
BasisFlattenedIndexing Class Reference

Canonical atom-major flattening of the LCAO basis hierarchy. More...

#include <basis_flattened_indexing.h>

Collaboration diagram for BasisFlattenedIndexing:

Public Member Functions

 BasisFlattenedIndexing (const ModuleBase::Element_Basis_Index::IndexLNM &hierarchy, const std::vector< int > &atom_types, const int npol)
std::size_t size () const
int nat () const
int npol () const
BasisRange range (const int iat) const
int atom_of (const std::size_t ibas) const
const BasisLabel & label (const std::size_t ibas) const
std::size_t ibas (const int iat, const int l, const int izeta, const int im, const int spin) const

Private Attributes

std::vector< BasisRange > atom_ranges_
std::vector< BasisLabel > labels_
int nat_ = 0
int npol_ = 1

Detailed Description

Canonical atom-major flattening of the LCAO basis hierarchy.

The flattened order is atom, angular momentum, radial function, magnetic component, then spin component. This value defines global basis indexing only; it contains no MPI, matrix-distribution, or descriptor state.

Constructor & Destructor Documentation

◆ BasisFlattenedIndexing()

BasisFlattenedIndexing::BasisFlattenedIndexing ( const ModuleBase::Element_Basis_Index::IndexLNM & hierarchy,
const std::vector< int > & atom_types,
const int npol )
Here is the call graph for this function:

Member Function Documentation

◆ atom_of()

int BasisFlattenedIndexing::atom_of ( const std::size_t ibas) const
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ibas()

std::size_t BasisFlattenedIndexing::ibas ( const int iat,
const int l,
const int izeta,
const int im,
const int spin ) const
Here is the call graph for this function:
Here is the caller graph for this function:

◆ label()

const BasisLabel & BasisFlattenedIndexing::label ( const std::size_t ibas) const
Here is the call graph for this function:
Here is the caller graph for this function:

◆ nat()

int BasisFlattenedIndexing::nat ( ) const
inline
Here is the caller graph for this function:

◆ npol()

int BasisFlattenedIndexing::npol ( ) const
inline
Here is the caller graph for this function:

◆ range()

BasisRange BasisFlattenedIndexing::range ( const int iat) const
Here is the caller graph for this function:

◆ size()

std::size_t BasisFlattenedIndexing::size ( ) const
inline
Here is the caller graph for this function:

Member Data Documentation

◆ atom_ranges_

std::vector<BasisRange> BasisFlattenedIndexing::atom_ranges_
private

◆ labels_

std::vector<BasisLabel> BasisFlattenedIndexing::labels_
private

◆ nat_

int BasisFlattenedIndexing::nat_ = 0
private

◆ npol_

int BasisFlattenedIndexing::npol_ = 1
private

The documentation for this class was generated from the following files: