ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
hsolver::LinearOperator< T, Device > Class Template Referenceabstract

Device-resident block operator for independent right-hand sides. More...

#include <linear_operator.h>

Collaboration diagram for hsolver::LinearOperator< T, Device >:

Public Member Functions

virtual ~LinearOperator ()=default
virtual void apply (const T *x, T *y, const int ld, const int nvec) const =0
virtual bool is_identity () const
 Allow solvers to bypass identity preconditioner copies.

Detailed Description

template<typename T, typename Device = base_device::DEVICE_CPU>
class hsolver::LinearOperator< T, Device >

Device-resident block operator for independent right-hand sides.

Column i starts at x + i*ld. The operator knows the valid row count. Inputs are read-only; input/output buffers must not overlap. The same operator acts on every column, including reordered or compacted blocks. A zero local row count must still participate in operator collectives.

Constructor & Destructor Documentation

◆ ~LinearOperator()

template<typename T, typename Device = base_device::DEVICE_CPU>
virtual hsolver::LinearOperator< T, Device >::~LinearOperator ( )
virtualdefault

Member Function Documentation

◆ apply()

template<typename T, typename Device = base_device::DEVICE_CPU>
virtual void hsolver::LinearOperator< T, Device >::apply ( const T * x,
T * y,
const int ld,
const int nvec ) const
pure virtual

Implemented in hsolver::LinearLowRank< T, Device >.

Here is the caller graph for this function:

◆ is_identity()

template<typename T, typename Device = base_device::DEVICE_CPU>
virtual bool hsolver::LinearOperator< T, Device >::is_identity ( ) const
inlinevirtual

Allow solvers to bypass identity preconditioner copies.

Reimplemented in hsolver::LinearLowRank< T, Device >.

Here is the caller graph for this function:

The documentation for this class was generated from the following file: