numerics 0.1.0
Loading...
Searching...
No Matches
num::operators::CallableOp< F > Struct Template Referencefinal

Adapt any callable void(const Vector&, Vector&) to the operator protocol. More...

#include <callable.hpp>

Public Member Functions

 CallableOp (F f, idx rows, idx cols)
 
 CallableOp (F f, idx n)
 
void apply (const Vector &x, Vector &y) const
 
idx rows () const noexcept
 
idx cols () const noexcept
 

Detailed Description

template<class F>
struct num::operators::CallableOp< F >

Adapt any callable void(const Vector&, Vector&) to the operator protocol.

Definition at line 13 of file callable.hpp.

Constructor & Destructor Documentation

◆ CallableOp() [1/2]

template<class F >
num::operators::CallableOp< F >::CallableOp ( f,
idx  rows,
idx  cols 
)
inline

Definition at line 14 of file callable.hpp.

◆ CallableOp() [2/2]

template<class F >
num::operators::CallableOp< F >::CallableOp ( f,
idx  n 
)
inline

Definition at line 19 of file callable.hpp.

Member Function Documentation

◆ apply()

template<class F >
void num::operators::CallableOp< F >::apply ( const Vector x,
Vector y 
) const
inline

Definition at line 22 of file callable.hpp.

References num::BasicVector< T >::size().

◆ cols()

template<class F >
idx num::operators::CallableOp< F >::cols ( ) const
inlinenoexcept

Definition at line 30 of file callable.hpp.

◆ rows()

template<class F >
idx num::operators::CallableOp< F >::rows ( ) const
inlinenoexcept

Definition at line 29 of file callable.hpp.


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