ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
hsolver::lobpcg_internal Namespace Reference

Functions

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

Function Documentation

◆ host_tensor()

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.

◆ host_tensor_cast_or_view()

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.