ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
lobpcg_internal.h File Reference
#include "diago_lobpcg.h"
#include "source_base/module_container/ATen/core/tensor_map.h"
#include "source_base/parallel_device.h"
#include <algorithm>
#include <cstdint>
#include <type_traits>
#include <utility>
Include dependency graph for lobpcg_internal.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  hsolver
namespace  hsolver::lobpcg_internal

Functions

template<typename T>
ct::Tensor hsolver::lobpcg_internal::host_tensor (const int64_t count, const T value)
 Allocate and fill a host Tensor for small projected matrices or scalar work arrays.
template<typename T, typename U>
ct::Tensor hsolver::lobpcg_internal::host_tensor_cast_or_view (U *input, const int64_t count)
 Borrow host storage when types match; otherwise own a converted copy. The view must not outlive input.