|
ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
|
#include "source_base/module_container/ATen/core/tensor.h"#include "source_base/module_device/memory_op.h"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. | |