cgv
Loading...
Searching...
No Matches
cgv::math::sparse_les_factory_impl< T > Class Template Reference

implementation of factory class for sparse linear system solvers More...

#include <sparse_les.h>

Inheritance diagram for cgv::math::sparse_les_factory_impl< T >:
cgv::math::sparse_les_factory cgv::data::ref_counted

Public Member Functions

 sparse_les_factory_impl (const std::string &_solver_name, SparseLesCaps _caps)
 
SparseLesCaps get_caps () const
 return the supported capabilities of the solver
 
std::string get_solver_name () const
 return the name of the solver
 
sparse_les_ptr create (int n, int nr_rhs, int nr_nze)
 create an instance of the solver.
 
- Public Member Functions inherited from cgv::math::sparse_les_factory
virtual ~sparse_les_factory ()
 make constructor virtual
 
- Public Member Functions inherited from cgv::data::ref_counted
int get_ref_count () const
 read access to current count
 

Protected Attributes

std::string solver_name
 
SparseLesCaps caps
 

Additional Inherited Members

- Protected Member Functions inherited from cgv::data::ref_counted
 ref_counted ()
 constructor initializes the count to 0
 
void set_ref_count (int c) const
 write access is also const to allow ref counted pointers to const instances
 

Detailed Description

template<class T>
class cgv::math::sparse_les_factory_impl< T >

implementation of factory class for sparse linear system solvers

Definition at line 93 of file sparse_les.h.

Constructor & Destructor Documentation

◆ sparse_les_factory_impl()

template<class T >
cgv::math::sparse_les_factory_impl< T >::sparse_les_factory_impl ( const std::string &  _solver_name,
SparseLesCaps  _caps 
)
inline

Definition at line 99 of file sparse_les.h.

Member Function Documentation

◆ create()

template<class T >
sparse_les_ptr cgv::math::sparse_les_factory_impl< T >::create ( int  n,
int  nr_rhs,
int  nr_nze 
)
inlinevirtual

create an instance of the solver.

Implements cgv::math::sparse_les_factory.

Definition at line 106 of file sparse_les.h.

◆ get_caps()

template<class T >
SparseLesCaps cgv::math::sparse_les_factory_impl< T >::get_caps ( ) const
inlinevirtual

return the supported capabilities of the solver

Implements cgv::math::sparse_les_factory.

Definition at line 102 of file sparse_les.h.

◆ get_solver_name()

template<class T >
std::string cgv::math::sparse_les_factory_impl< T >::get_solver_name ( ) const
inlinevirtual

return the name of the solver

Implements cgv::math::sparse_les_factory.

Definition at line 104 of file sparse_les.h.

Member Data Documentation

◆ caps

template<class T >
SparseLesCaps cgv::math::sparse_les_factory_impl< T >::caps
protected

Definition at line 97 of file sparse_les.h.

◆ solver_name

template<class T >
std::string cgv::math::sparse_les_factory_impl< T >::solver_name
protected

Definition at line 96 of file sparse_les.h.


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