1#ifndef HSOLVER_LINEAR_OPERATOR_H
2#define HSOLVER_LINEAR_OPERATOR_H
15 const char*
what() const noexcept
override
17 return "Preconditioner application failed.";
29template <
typename T,
typename Device = base_device::DEVICE_CPU>
34 virtual void apply(
const T* x,
T* y,
const int ld,
const int nvec)
const = 0;
Device-resident block operator for independent right-hand sides.
Definition linear_operator.h:31
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.
Definition linear_operator.h:36
virtual ~LinearOperator()=default
Stop the current recurrence when a preconditioner cannot be applied.
Definition linear_operator.h:13
const char * what() const noexcept override
Definition linear_operator.h:15
#define T
Definition exp.cpp:237
Definition dense_eigensolver.cpp:23