include/meltpooldg/utilities/matrix_type_wrapper.h Source File

Developer Documentation: include/meltpooldg/utilities/matrix_type_wrapper.h Source File
Developer Documentation
matrix_type_wrapper.h
Go to the documentation of this file.
1
7#pragma once
8
9#include <functional>
10#include <utility>
11
12namespace MeltPoolDG
13{
14 template <typename VectorType>
16 {
24 const std::function<void(VectorType &, const VectorType &)> &alias_function)
25 : alias_function(std::move(alias_function))
26 {}
27
35 void
36 vmult(VectorType &dst, const VectorType &src) const
37 {
38 alias_function(dst, src);
39 };
40
41 private:
42 const std::function<void(VectorType &, const VectorType &)> alias_function;
43 };
44} // namespace MeltPoolDG
Interface for a general preconditioner.
Definition boundary_condition_functions.hpp:17
Definition matrix_type_wrapper.h:16
void vmult(VectorType &dst, const VectorType &src) const
Definition matrix_type_wrapper.h:36
const std::function< void(VectorType &, const VectorType &)> alias_function
Definition matrix_type_wrapper.h:42
MatrixTypeObject(const std::function< void(VectorType &, const VectorType &)> &alias_function)
Definition matrix_type_wrapper.h:23