PeriDyno 1.0.0
Loading...
Searching...
No Matches
dyno::SparseMatrix< VarType > Class Template Reference

#include <SparseMatrix.h>

Collaboration diagram for dyno::SparseMatrix< VarType >:

Public Types

typedef DArrayMap< VarType > SparseM
 
typedef DArray< VarType > SparseV
 
typedef DArrayMap< VarType > SparseM
 
typedef DArray< VarType > SparseV
 

Public Member Functions

 SparseMatrix ()
 
 ~SparseMatrix ()
 Do not release memory here, call clear() explicitly.
 
void clear ()
 Free allocated memory. Should be called before the object is deleted.
 
void assign_cgls (CArray< VarType > &s_b, std::vector< std::map< int, VarType > > &s_matrix, std::vector< std::map< int, VarType > > &s_matrix_transposed)
 
void CGLS (int i_max, VarType threshold)
 
const SparseVX () const
 
 SparseMatrix ()
 
 ~SparseMatrix ()
 Do not release memory here, call clear() explicitly.
 
void clear ()
 Free allocated memory. Should be called before the object is deleted.
 
void assign_cgls (CArray< VarType > &s_b, std::vector< std::map< int, VarType > > &s_matrix, std::vector< std::map< int, VarType > > &s_matrix_transposed)
 
void CGLS (int i_max, VarType threshold)
 
const SparseVX () const
 

Private Attributes

SparseM my_A
 
SparseM my_transposedA
 
SparseV my_x
 
SparseV my_b
 

Detailed Description

template<typename VarType>
class dyno::SparseMatrix< VarType >

Definition at line 25 of file SparseMatrix.h.

Member Typedef Documentation

◆ SparseM [1/2]

template<typename VarType>
typedef DArrayMap<VarType> dyno::SparseMatrix< VarType >::SparseM

Definition at line 28 of file SparseMatrix.h.

◆ SparseM [2/2]

template<typename VarType>
typedef DArrayMap<VarType> dyno::SparseMatrix< VarType >::SparseM

Definition at line 28 of file SparseMatrix.h.

◆ SparseV [1/2]

template<typename VarType>
typedef DArray<VarType> dyno::SparseMatrix< VarType >::SparseV

Definition at line 29 of file SparseMatrix.h.

◆ SparseV [2/2]

template<typename VarType>
typedef DArray<VarType> dyno::SparseMatrix< VarType >::SparseV

Definition at line 29 of file SparseMatrix.h.

Constructor & Destructor Documentation

◆ SparseMatrix() [1/2]

template<typename VarType>
dyno::SparseMatrix< VarType >::SparseMatrix ( )
inline

Definition at line 31 of file SparseMatrix.h.

◆ ~SparseMatrix() [1/2]

template<typename VarType>
dyno::SparseMatrix< VarType >::~SparseMatrix ( )
inline

Do not release memory here, call clear() explicitly.

Definition at line 36 of file SparseMatrix.h.

◆ SparseMatrix() [2/2]

template<typename VarType>
dyno::SparseMatrix< VarType >::SparseMatrix ( )
inline

Definition at line 31 of file SparseMatrix.h.

◆ ~SparseMatrix() [2/2]

template<typename VarType>
dyno::SparseMatrix< VarType >::~SparseMatrix ( )
inline

Do not release memory here, call clear() explicitly.

Definition at line 36 of file SparseMatrix.h.

Member Function Documentation

◆ assign_cgls() [1/2]

template<typename VarType>
void dyno::SparseMatrix< VarType >::assign_cgls ( CArray< VarType > & s_b,
std::vector< std::map< int, VarType > > & s_matrix,
std::vector< std::map< int, VarType > > & s_matrix_transposed )

Definition at line 20 of file SparseMatrix.inl.

◆ assign_cgls() [2/2]

template<typename VarType>
void dyno::SparseMatrix< VarType >::assign_cgls ( CArray< VarType > & s_b,
std::vector< std::map< int, VarType > > & s_matrix,
std::vector< std::map< int, VarType > > & s_matrix_transposed )

◆ CGLS() [1/2]

template<typename VarType>
void dyno::SparseMatrix< VarType >::CGLS ( int i_max,
VarType threshold )

Definition at line 31 of file SparseMatrix.inl.

Here is the call graph for this function:

◆ CGLS() [2/2]

template<typename VarType>
void dyno::SparseMatrix< VarType >::CGLS ( int i_max,
VarType threshold )

◆ clear() [1/2]

template<typename VarType>
void dyno::SparseMatrix< VarType >::clear ( )

Free allocated memory. Should be called before the object is deleted.

Definition at line 11 of file SparseMatrix.inl.

◆ clear() [2/2]

template<typename VarType>
void dyno::SparseMatrix< VarType >::clear ( )

Free allocated memory. Should be called before the object is deleted.

◆ X() [1/2]

template<typename VarType>
const SparseV & dyno::SparseMatrix< VarType >::X ( ) const
inline

Definition at line 47 of file SparseMatrix.h.

◆ X() [2/2]

template<typename VarType>
const SparseV & dyno::SparseMatrix< VarType >::X ( ) const
inline

Definition at line 47 of file SparseMatrix.h.

Member Data Documentation

◆ my_A

template<typename VarType>
SparseM dyno::SparseMatrix< VarType >::my_A
private

Definition at line 50 of file SparseMatrix.h.

◆ my_b

template<typename VarType>
SparseV dyno::SparseMatrix< VarType >::my_b
private

Definition at line 54 of file SparseMatrix.h.

◆ my_transposedA

template<typename VarType>
SparseM dyno::SparseMatrix< VarType >::my_transposedA
private

Definition at line 51 of file SparseMatrix.h.

◆ my_x

template<typename VarType>
SparseV dyno::SparseMatrix< VarType >::my_x
private

Definition at line 53 of file SparseMatrix.h.


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