20template<
typename ValueType,
typename IndexType>
A class to contain the data and executors for a field and define some basic operations.
A class representing a linear system of equations.
const Executor & exec() const
Field< ValueType > & rhs()
const Field< ValueType > & rhs() const
const CSRMatrix< ValueType, IndexType > & matrix() const
CSRMatrix< ValueType, IndexType > & matrix()
LinearSystem(const CSRMatrix< ValueType, IndexType > &matrix, const Field< ValueType > &rhs)
#define NF_ASSERT(condition, message)
Macro for asserting a condition and printing an error message if the condition is false.
std::variant< SerialExecutor, CPUExecutor, GPUExecutor > Executor