ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
diago_lobpcg.cpp File Reference
#include "diago_lobpcg.h"
#include "lobpcg_internal.h"
#include "dense_eigensolver.h"
#include "source_base/kernels/math_kernel_op.h"
#include "source_base/memory_recorder.h"
#include "source_base/module_container/ATen/kernels/memory.h"
#include "source_base/parallel_device.h"
#include "source_base/timer.h"
#include "source_base/tool_quit.h"
#include <algorithm>
#include <cmath>
#include <limits>
#include <random>
#include <type_traits>
#include <utility>
Include dependency graph for diago_lobpcg.cpp:

Namespaces

namespace  hsolver

Functions

template<typename T>
ct::Tensor hsolver::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::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.