|
ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
|
Device-resident block operator for independent right-hand sides. More...
#include <linear_operator.h>
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. | |
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.
|
virtualdefault |
|
pure virtual |
|
inlinevirtual |
Allow solvers to bypass identity preconditioner copies.
Reimplemented in hsolver::LinearLowRank< T, Device >.