ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
orb_buffer.h
Go to the documentation of this file.
1#ifndef HSOLVER_ORB_BUFFER_H
2#define HSOLVER_ORB_BUFFER_H
3
6
7namespace hsolver
8{
11{
12 int ld;
13 int npw;
14 int npol;
15 int bands;
16};
17
19template <typename T, typename Device>
20void zero_pad(T* data, const OrbLayout& layout);
21
25template <typename T, typename Device>
26const T* clean_orbs(const T* input, const OrbLayout& layout, ct::Tensor* scratch);
27} // namespace hsolver
28#endif
A multi-dimensional array of elements of a single data type.
Definition tensor.h:32
#define T
Definition exp.cpp:237
Definition dense_eigensolver.cpp:23
void zero_pad(T *data, const OrbLayout &layout)
Clear all spin-component tails, including scalar-orbital padding.
Definition orb_buffer.cpp:8
const T * 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...
Definition orb_buffer.cpp:21
Column-major orbitals; spin components have ld/npol rows each.
Definition orb_buffer.h:11
int ld
Definition orb_buffer.h:12
int npw
Definition orb_buffer.h:13
int bands
Definition orb_buffer.h:15
int npol
Definition orb_buffer.h:14
Input_para input
Definition test_io_sys_var.cpp:58