ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
orb_buffer.h File Reference
Include dependency graph for orb_buffer.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  hsolver::OrbLayout
 Column-major orbitals; spin components have ld/npol rows each. More...

Namespaces

namespace  hsolver

Functions

template<typename T, typename Device>
void hsolver::zero_pad (T *data, const OrbLayout &layout)
 Clear all spin-component tails, including scalar-orbital padding.
template<typename T, typename Device>
const T * hsolver::clean_orbs (const T *input, const OrbLayout &layout, ct::Tensor *scratch)
 Borrow scalar input, or copy spinors into scratch and clear their padding. Scratch must have room for ld * bands coefficients; input remains unchanged.