36 #ifndef __H__UG__MARTIN_ALGEBRA__LOCAL_HELPER__
37 #define __H__UG__MARTIN_ALGEBRA__LOCAL_HELPER__
178 template<
typename TGlobalMatrix,
typename TLocalMatrix>
184 template<
typename TGlobalMatrix,
typename TLocalMatrix>
190 template<
typename TGlobalMatrix,
typename TLocalMatrix>
197 template<
typename TGlobalMatrix,
typename TLocalMatrix>
198 inline bool AddLocalMatrix(TGlobalMatrix &mat,
const TLocalMatrix &localMat,
const size_t *rowIndices,
const size_t *colIndices)
204 template<
typename TGlobalMatrix,
typename TLocalMatrix>
205 inline bool SetLocalMatrix(TGlobalMatrix &mat, TLocalMatrix &localMat,
const size_t *rowIndices,
const size_t *colIndices)
211 template<
typename TGlobalMatrix,
typename TLocalMatrix>
212 inline bool GetLocalMatrix(
const TGlobalMatrix &mat, TLocalMatrix &localMat,
const size_t *rowIndices,
const size_t *colIndices)
Definition: local_helper.h:72
const_localMatrix_from_mat_and_array(const M &m_, const size_t *rows_, const size_t *cols_)
Definition: local_helper.h:74
const M & m
Definition: local_helper.h:84
const size_t * cols
Definition: local_helper.h:86
size_t col_index(size_t i) const
Definition: local_helper.h:80
const size_t * rows
Definition: local_helper.h:85
size_t row_index(size_t i) const
Definition: local_helper.h:79
const M::value_type & operator()(size_t i, size_t j) const
Definition: local_helper.h:81
size_t num_cols() const
Definition: local_helper.h:78
size_t num_rows() const
Definition: local_helper.h:77
Definition: local_helper.h:91
size_t col_index(size_t i) const
Definition: local_helper.h:103
T & operator()(size_t i, size_t j)
Definition: local_helper.h:104
const size_t * cols
Definition: local_helper.h:112
size_t row_index(size_t i) const
Definition: local_helper.h:102
size_t num_cols() const
Definition: local_helper.h:101
size_t num_rows() const
Definition: local_helper.h:100
const T & operator()(size_t i, size_t j) const
Definition: local_helper.h:105
localMatrix_from_col_major_and_array(size_t numrows_, size_t numcols_, T *m_, const size_t *rows_, const size_t *cols_)
Definition: local_helper.h:93
T * m
Definition: local_helper.h:108
const size_t * rows
Definition: local_helper.h:111
size_t numrows
Definition: local_helper.h:109
size_t numcols
Definition: local_helper.h:110
Definition: local_helper.h:45
localMatrix_from_mat_and_array(M &m_, const size_t *rows_, const size_t *cols_)
Definition: local_helper.h:47
M::value_type & operator()(size_t i, size_t j)
Definition: local_helper.h:61
const size_t * rows
Definition: local_helper.h:66
size_t row_index(size_t i) const
Definition: local_helper.h:59
size_t num_cols() const
Definition: local_helper.h:58
size_t num_rows() const
Definition: local_helper.h:57
size_t col_index(size_t i) const
Definition: local_helper.h:60
M * m
Definition: local_helper.h:65
const M::value_type & operator()(size_t i, size_t j) const
Definition: local_helper.h:62
~localMatrix_from_mat_and_array()
Definition: local_helper.h:52
const size_t * cols
Definition: local_helper.h:67
Definition: local_helper.h:117
size_t num_cols() const
Definition: local_helper.h:127
size_t row_index(size_t i) const
Definition: local_helper.h:128
size_t numrows
Definition: local_helper.h:137
size_t numcols
Definition: local_helper.h:138
size_t num_rows() const
Definition: local_helper.h:126
size_t col_index(size_t i) const
Definition: local_helper.h:129
localMatrix_from_row_major_and_array(size_t numrows_, size_t numcols_, T *m_, const size_t *rows_, const size_t *cols_)
Definition: local_helper.h:119
const T & operator()(size_t i, size_t j) const
Definition: local_helper.h:131
const size_t * rows
Definition: local_helper.h:135
T * m
Definition: local_helper.h:134
const size_t * cols
Definition: local_helper.h:136
T & operator()(size_t i, size_t j)
Definition: local_helper.h:130
Definition: local_helper.h:143
size_t size() const
Definition: local_helper.h:150
T * v
Definition: local_helper.h:158
size_t N
Definition: local_helper.h:157
T & operator[](size_t i)
Definition: local_helper.h:153
size_t index(size_t i) const
Definition: local_helper.h:151
const size_t * indices
Definition: local_helper.h:159
localVector_from_array(size_t N_, T *v_, const size_t *indices_)
Definition: local_helper.h:145
const T & operator[](size_t i) const
Definition: local_helper.h:154
bool SetLocalMatrix(TGlobalMatrix &mat, const TLocalMatrix &localMat)
Definition: local_helper.h:185
bool GetLocalMatrix(const TGlobalMatrix &mat, TLocalMatrix &localMat)
Definition: local_helper.h:191
bool AddLocalMatrix(TGlobalMatrix &mat, const TLocalMatrix &localMat)
Definition: local_helper.h:179
T value_type
Definition: sparsematrix_interface.h:2