Mundy: Multibody Nonlocal Dynamics Version of the Day
Loading...
Searching...
No Matches
mundy::convex::MixedReducedOp< Backend, LinearOpAStorage, LinearOpLStorage > Class Template Reference

The operator that perform Op x for Op := A (I - L A).

#include <convex.hpp>

Classes

struct  Workspace

Public Types

using backend_t = Backend
using linear_op_a_storage_t = LinearOpAStorage
using linear_op_l_storage_t = LinearOpLStorage

Public Member Functions

 MixedReducedOp (backend_t, linear_op_a_storage_t A_storage, linear_op_l_storage_t L_storage)
Backend backend () const
const auto & A () const
const auto & L () const
size_t domain_size () const
size_t range_size () const
auto make_domain_vector () const
auto make_range_vector () const
auto make_workspace (bool committed=false) const
template<class AxVector, class LAxVector, class AWorkspace, class LWorkspace>
auto make_workspace (AxVector &&ax, LAxVector &&lax, AWorkspace &&a_workspace, LWorkspace &&l_workspace, bool committed=false) const
template<class XVector, class YVector, class WorkspaceType>
void apply (const XVector &x, YVector &y, WorkspaceType &workspace) const
template<class XVector, class YVector, class WorkspaceType>
void apply (const XVector &x, YVector &y) const

Member Typedef Documentation

◆ backend_t

template<class Backend, class LinearOpAStorage, class LinearOpLStorage>
using mundy::convex::MixedReducedOp< Backend, LinearOpAStorage, LinearOpLStorage >::backend_t = Backend

◆ linear_op_a_storage_t

template<class Backend, class LinearOpAStorage, class LinearOpLStorage>
using mundy::convex::MixedReducedOp< Backend, LinearOpAStorage, LinearOpLStorage >::linear_op_a_storage_t = LinearOpAStorage

◆ linear_op_l_storage_t

template<class Backend, class LinearOpAStorage, class LinearOpLStorage>
using mundy::convex::MixedReducedOp< Backend, LinearOpAStorage, LinearOpLStorage >::linear_op_l_storage_t = LinearOpLStorage

Constructor & Destructor Documentation

◆ MixedReducedOp()

template<class Backend, class LinearOpAStorage, class LinearOpLStorage>
mundy::convex::MixedReducedOp< Backend, LinearOpAStorage, LinearOpLStorage >::MixedReducedOp ( backend_t ,
linear_op_a_storage_t A_storage,
linear_op_l_storage_t L_storage )
inline

Member Function Documentation

◆ backend()

template<class Backend, class LinearOpAStorage, class LinearOpLStorage>
Backend mundy::convex::MixedReducedOp< Backend, LinearOpAStorage, LinearOpLStorage >::backend ( ) const
inline

◆ A()

template<class Backend, class LinearOpAStorage, class LinearOpLStorage>
const auto & mundy::convex::MixedReducedOp< Backend, LinearOpAStorage, LinearOpLStorage >::A ( ) const
inline

◆ L()

template<class Backend, class LinearOpAStorage, class LinearOpLStorage>
const auto & mundy::convex::MixedReducedOp< Backend, LinearOpAStorage, LinearOpLStorage >::L ( ) const
inline

◆ domain_size()

template<class Backend, class LinearOpAStorage, class LinearOpLStorage>
size_t mundy::convex::MixedReducedOp< Backend, LinearOpAStorage, LinearOpLStorage >::domain_size ( ) const
inline

◆ range_size()

template<class Backend, class LinearOpAStorage, class LinearOpLStorage>
size_t mundy::convex::MixedReducedOp< Backend, LinearOpAStorage, LinearOpLStorage >::range_size ( ) const
inline

◆ make_domain_vector()

template<class Backend, class LinearOpAStorage, class LinearOpLStorage>
auto mundy::convex::MixedReducedOp< Backend, LinearOpAStorage, LinearOpLStorage >::make_domain_vector ( ) const
inline

◆ make_range_vector()

template<class Backend, class LinearOpAStorage, class LinearOpLStorage>
auto mundy::convex::MixedReducedOp< Backend, LinearOpAStorage, LinearOpLStorage >::make_range_vector ( ) const
inline

◆ make_workspace() [1/2]

template<class Backend, class LinearOpAStorage, class LinearOpLStorage>
auto mundy::convex::MixedReducedOp< Backend, LinearOpAStorage, LinearOpLStorage >::make_workspace ( bool committed = false) const
inline

◆ make_workspace() [2/2]

template<class Backend, class LinearOpAStorage, class LinearOpLStorage>
template<class AxVector, class LAxVector, class AWorkspace, class LWorkspace>
auto mundy::convex::MixedReducedOp< Backend, LinearOpAStorage, LinearOpLStorage >::make_workspace ( AxVector && ax,
LAxVector && lax,
AWorkspace && a_workspace,
LWorkspace && l_workspace,
bool committed = false ) const
inline

◆ apply() [1/2]

template<class Backend, class LinearOpAStorage, class LinearOpLStorage>
template<class XVector, class YVector, class WorkspaceType>
void mundy::convex::MixedReducedOp< Backend, LinearOpAStorage, LinearOpLStorage >::apply ( const XVector & x,
YVector & y,
WorkspaceType & workspace ) const
inline

◆ apply() [2/2]

template<class Backend, class LinearOpAStorage, class LinearOpLStorage>
template<class XVector, class YVector, class WorkspaceType>
void mundy::convex::MixedReducedOp< Backend, LinearOpAStorage, LinearOpLStorage >::apply ( const XVector & x,
YVector & y ) const
inline