ug4
ScalarSubMatrixAdapter< AT, ST, R, C > Class Template Reference

#include <scalar_submatrix_adapter.hh>

Classes

class  const_row_iterator
 
class  row_iterator
 

Public Types

typedef AT::matrix_type encapsulated_matrix_type
 
typedef ST::matrix_type::value_type value_type
 

Public Member Functions

row_iterator begin_row (size_t r)
 
const_row_iterator begin_row (size_t r) const
 
void defragment ()
 
row_iterator end_row (size_t r)
 
const_row_iterator end_row (size_t r) const
 
row_iterator get_connection (size_t r, size_t c)
 
const_row_iterator get_connection (size_t r, size_t c) const
 
const_row_iterator get_connection (size_t r, size_t c, bool &bFound) const
 
row_iterator get_iterator_or_next (size_t r, size_t c)
 
bool has_connection (size_t r, size_t c) const
 
bool is_isolated (size_t i) const
 
size_t num_cols () const
 returns the number of cols More...
 
size_t num_rows () const
 returns number of rows More...
 
value_typeoperator() (size_t r, size_t c)
 
const value_typeoperator() (size_t r, size_t c) const
 
void print (const char *text) const
 print (underlying) matrix More...
 
void printrow (size_t row) const
 print (block) row of (underlying) matrix More...
 
bool resize_and_clear (size_t newRows, size_t newCols)
 
bool resize_and_keep_values (size_t newRows, size_t newCols)
 
 ScalarSubMatrixAdapter (encapsulated_matrix_type &mat)
 
bool scale (double d)
 
size_t total_num_connections () const
 returns the total number of connections More...
 

Protected Attributes

const encapsulated_matrix_typem_const
 
encapsulated_matrix_typem_src
 

Static Protected Attributes

static const int m_subc =C
 
static const int m_subr =R
 

Member Typedef Documentation

◆ encapsulated_matrix_type

template<class AT , class ST , int R, int C>
typedef AT::matrix_type ScalarSubMatrixAdapter< AT, ST, R, C >::encapsulated_matrix_type

◆ value_type

template<class AT , class ST , int R, int C>
typedef ST::matrix_type::value_type ScalarSubMatrixAdapter< AT, ST, R, C >::value_type

Constructor & Destructor Documentation

◆ ScalarSubMatrixAdapter()

template<class AT , class ST , int R, int C>
ScalarSubMatrixAdapter< AT, ST, R, C >::ScalarSubMatrixAdapter ( encapsulated_matrix_type mat)
inline

Member Function Documentation

◆ begin_row() [1/2]

template<class AT , class ST , int R, int C>
row_iterator ScalarSubMatrixAdapter< AT, ST, R, C >::begin_row ( size_t  r)
inline

◆ begin_row() [2/2]

template<class AT , class ST , int R, int C>
const_row_iterator ScalarSubMatrixAdapter< AT, ST, R, C >::begin_row ( size_t  r) const
inline

◆ defragment()

template<class AT , class ST , int R, int C>
void ScalarSubMatrixAdapter< AT, ST, R, C >::defragment ( )
inline

◆ end_row() [1/2]

template<class AT , class ST , int R, int C>
row_iterator ScalarSubMatrixAdapter< AT, ST, R, C >::end_row ( size_t  r)
inline

◆ end_row() [2/2]

template<class AT , class ST , int R, int C>
const_row_iterator ScalarSubMatrixAdapter< AT, ST, R, C >::end_row ( size_t  r) const
inline

◆ get_connection() [1/3]

template<class AT , class ST , int R, int C>
row_iterator ScalarSubMatrixAdapter< AT, ST, R, C >::get_connection ( size_t  r,
size_t  c 
)
inline

◆ get_connection() [2/3]

template<class AT , class ST , int R, int C>
const_row_iterator ScalarSubMatrixAdapter< AT, ST, R, C >::get_connection ( size_t  r,
size_t  c 
) const
inline

◆ get_connection() [3/3]

template<class AT , class ST , int R, int C>
const_row_iterator ScalarSubMatrixAdapter< AT, ST, R, C >::get_connection ( size_t  r,
size_t  c,
bool &  bFound 
) const
inline

◆ get_iterator_or_next()

template<class AT , class ST , int R, int C>
row_iterator ScalarSubMatrixAdapter< AT, ST, R, C >::get_iterator_or_next ( size_t  r,
size_t  c 
)
inline

◆ has_connection()

template<class AT , class ST , int R, int C>
bool ScalarSubMatrixAdapter< AT, ST, R, C >::has_connection ( size_t  r,
size_t  c 
) const
inline

◆ is_isolated()

template<class AT , class ST , int R, int C>
bool ScalarSubMatrixAdapter< AT, ST, R, C >::is_isolated ( size_t  i) const
inline

◆ num_cols()

template<class AT , class ST , int R, int C>
size_t ScalarSubMatrixAdapter< AT, ST, R, C >::num_cols ( ) const
inline

returns the number of cols

◆ num_rows()

template<class AT , class ST , int R, int C>
size_t ScalarSubMatrixAdapter< AT, ST, R, C >::num_rows ( ) const
inline

returns number of rows

◆ operator()() [1/2]

template<class AT , class ST , int R, int C>
value_type& ScalarSubMatrixAdapter< AT, ST, R, C >::operator() ( size_t  r,
size_t  c 
)
inline

References ug::BlockRef().

◆ operator()() [2/2]

template<class AT , class ST , int R, int C>
const value_type& ScalarSubMatrixAdapter< AT, ST, R, C >::operator() ( size_t  r,
size_t  c 
) const
inline

References ug::BlockRef().

◆ print()

template<class AT , class ST , int R, int C>
void ScalarSubMatrixAdapter< AT, ST, R, C >::print ( const char *  text) const
inline

print (underlying) matrix

◆ printrow()

template<class AT , class ST , int R, int C>
void ScalarSubMatrixAdapter< AT, ST, R, C >::printrow ( size_t  row) const
inline

print (block) row of (underlying) matrix

◆ resize_and_clear()

template<class AT , class ST , int R, int C>
bool ScalarSubMatrixAdapter< AT, ST, R, C >::resize_and_clear ( size_t  newRows,
size_t  newCols 
)
inline

◆ resize_and_keep_values()

template<class AT , class ST , int R, int C>
bool ScalarSubMatrixAdapter< AT, ST, R, C >::resize_and_keep_values ( size_t  newRows,
size_t  newCols 
)
inline

◆ scale()

template<class AT , class ST , int R, int C>
bool ScalarSubMatrixAdapter< AT, ST, R, C >::scale ( double  d)
inline

◆ total_num_connections()

template<class AT , class ST , int R, int C>
size_t ScalarSubMatrixAdapter< AT, ST, R, C >::total_num_connections ( ) const
inline

returns the total number of connections

Member Data Documentation

◆ m_const

template<class AT , class ST , int R, int C>
const encapsulated_matrix_type& ScalarSubMatrixAdapter< AT, ST, R, C >::m_const
protected

◆ m_src

template<class AT , class ST , int R, int C>
encapsulated_matrix_type& ScalarSubMatrixAdapter< AT, ST, R, C >::m_src
protected

◆ m_subc

template<class AT , class ST , int R, int C>
const int ScalarSubMatrixAdapter< AT, ST, R, C >::m_subc =C
staticprotected

◆ m_subr

template<class AT , class ST , int R, int C>
const int ScalarSubMatrixAdapter< AT, ST, R, C >::m_subr =R
staticprotected

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