ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
lobpcg_subspace.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/timer.h"
#include "source_base/tool_quit.h"
#include "source_base/module_parallel/para_mpi_func.h"
#include <algorithm>
#include <exception>
#include <type_traits>
Include dependency graph for lobpcg_subspace.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.