MFEM v4.7.0
Finite element discretization library
Loading...
Searching...
No Matches
mfem::Ginkgo::OperatorWrapper Class Reference

#include <ginkgo.hpp>

Inheritance diagram for mfem::Ginkgo::OperatorWrapper:
[legend]
Collaboration diagram for mfem::Ginkgo::OperatorWrapper:
[legend]

Public Member Functions

 OperatorWrapper (std::shared_ptr< const gko::Executor > exec, gko::size_type size=0, const Operator *oper=NULL)
 

Protected Member Functions

void apply_impl (const gko::LinOp *b, gko::LinOp *x) const override
 
void apply_impl (const gko::LinOp *alpha, const gko::LinOp *b, const gko::LinOp *beta, gko::LinOp *x) const override
 

Detailed Description

This class wraps an MFEM Operator for Ginkgo, to make its Mult() function available to Ginkgo, provided the input and output vectors are of the VectorWrapper type. Note that this class does NOT take ownership of the MFEM Operator.

Definition at line 224 of file ginkgo.hpp.

Constructor & Destructor Documentation

◆ OperatorWrapper()

mfem::Ginkgo::OperatorWrapper::OperatorWrapper ( std::shared_ptr< const gko::Executor > exec,
gko::size_type size = 0,
const Operator * oper = NULL )
inline

Definition at line 229 of file ginkgo.hpp.

Member Function Documentation

◆ apply_impl() [1/2]

void mfem::Ginkgo::OperatorWrapper::apply_impl ( const gko::LinOp * alpha,
const gko::LinOp * b,
const gko::LinOp * beta,
gko::LinOp * x ) const
overrideprotected

Definition at line 433 of file ginkgo.cpp.

◆ apply_impl() [2/2]

void mfem::Ginkgo::OperatorWrapper::apply_impl ( const gko::LinOp * b,
gko::LinOp * x ) const
overrideprotected

Definition at line 423 of file ginkgo.cpp.


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