openCARP
Doxygen code documentation for the open cardiac electrophysiology simulator openCARP
Public Member Functions | Public Attributes | List of all members
SF::scattering Class Reference

Redistributes vector data from indexing "a" to indexing "b". More...

#include <SF_abstract_vector.h>

Collaboration diagram for SF::scattering:

Public Member Functions

template<class T , class S >
void forward (abstract_vector< T, S > &in, abstract_vector< T, S > &out, bool add=false)
 Forward scattering. More...
 
template<class T , class S >
void backward (abstract_vector< T, S > &in, abstract_vector< T, S > &out, bool add=false)
 Backward scattering. More...
 
template<class T , class S >
void operator() (abstract_vector< T, S > &v, bool fwd)
 Apply the scattering on a data vector. More...
 

Public Attributes

vector< SF_int > idx_a
 the d.o.f. indices of the two sides, which the backends build their scatters from More...
 
vector< SF_int > idx_b
 
std::shared_ptr< void > backend_data
 

Detailed Description

Redistributes vector data from indexing "a" to indexing "b".

The two indexings can have different parallel layouts.

Definition at line 677 of file SF_abstract_vector.h.

Member Function Documentation

◆ backward()

template<class T , class S >
void SF::scattering::backward ( abstract_vector< T, S > &  in,
abstract_vector< T, S > &  out,
bool  add = false 
)
inline

Backward scattering.

Parameters
inScatter from.
outScatter to.

Definition at line 707 of file SF_abstract_vector.h.

Here is the call graph for this function:

◆ forward()

template<class T , class S >
void SF::scattering::forward ( abstract_vector< T, S > &  in,
abstract_vector< T, S > &  out,
bool  add = false 
)
inline

Forward scattering.

Parameters
inScatter from.
outScatter to.

Definition at line 695 of file SF_abstract_vector.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator()()

template<class T , class S >
void SF::scattering::operator() ( abstract_vector< T, S > &  v,
bool  fwd 
)
inline

Apply the scattering on a data vector.

Parameters
[in,out]vThe data vector.
[in]fwdTrue for forward, false for backward scatting.

Definition at line 719 of file SF_abstract_vector.h.

Here is the call graph for this function:

Member Data Documentation

◆ backend_data

std::shared_ptr<void> SF::scattering::backend_data

Data a backend derives from idx_a and idx_b, i.e. the PETSc VecScatter or the Ginkgo scatter matrices. It is freed with the scattering, so a later scattering never finds stale data.

Definition at line 686 of file SF_abstract_vector.h.

◆ idx_a

vector<SF_int> SF::scattering::idx_a

the d.o.f. indices of the two sides, which the backends build their scatters from

Definition at line 681 of file SF_abstract_vector.h.

◆ idx_b

vector<SF_int> SF::scattering::idx_b

Definition at line 681 of file SF_abstract_vector.h.


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