MFEM  v4.5.2
Finite element discretization library
Public Member Functions | Protected Member Functions | List of all members
mfem::Ginkgo::OperatorWrapper Class Reference

#include <ginkgo.hpp>

Inheritance diagram for mfem::Ginkgo::OperatorWrapper:
Collaboration diagram for mfem::Ginkgo::OperatorWrapper:

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 

Definition at line 229 of file ginkgo.hpp.

Member Function Documentation

◆ apply_impl() [1/2]

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

Definition at line 202 of file ginkgo.cpp.

◆ apply_impl() [2/2]

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

Definition at line 212 of file ginkgo.cpp.

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