34 #ifndef __H__UG__COMMON__DENSEMATRIX_H__
35 #define __H__UG__COMMON__DENSEMATRIX_H__
39 #include "../storage/storage.h"
55 template<
typename TStorage>
68 using base::operator ();
163 template<
typename TStorage2>
186 template<
typename TStorage2>
192 template<
typename TStorage2>
213 template<
typename TStorage2>
218 for(
size_t r1=0; r1<t.num_rows(); r1++)
219 for(
size_t c1=0; c1<t.num_cols(); c1++)
220 entry(r+r1, c+c1) = t(r1, c1);
232 template<
typename TStorage>
239 template<
typename TStorage>
243 At.resize(A.num_cols(), A.num_rows());
244 for(
size_t r=0; r < A.num_rows(); r++)
245 for(
size_t c=0; c < A.num_cols(); c++)
location name
Definition: checkpoint_util.lua:128
Definition: densematrix.h:57
this_type & operator+=(const T &t)
static const eMatrixOrdering ordering
Definition: densematrix.h:61
TStorage::size_type size_type
Definition: densematrix.h:60
bool operator!=(const TStorage2 &t) const
void subassign(size_t r, size_t c, const TStorage2 &t)
Definition: densematrix.h:215
TStorage base
Definition: densematrix.h:67
@ static_num_cols
Definition: densematrix.h:64
this_type & operator-=(const T &t)
this_type & operator*=(double alpha)
Definition: densematrix_impl.h:164
this_type & operator/=(double alpha)
Definition: densematrix_impl.h:183
void maple_print(const char *name)
Definition: densematrix_impl.h:365
bool operator==(double t) const
Definition: densematrix_impl.h:330
this_type operator/(this_type &other)
Definition: densematrix_impl.h:318
@ is_static
Definition: densematrix.h:62
DenseMatrix()
Definition: densematrix_impl.h:56
DenseVector< TStorage2 > operator*(const DenseVector< TStorage2 > &vec) const
Definition: densematrix_impl.h:285
this_type T() const
Definition: densematrix_impl.h:272
DenseMatrix< TStorage > this_type
Definition: densematrix.h:66
this_type operator-() const
Definition: densematrix_impl.h:234
void subassign(size_t r, size_t c, const value_type &t)
Definition: densematrix.h:224
const value_type & entry(size_type r, size_type c) const
Definition: densematrix.h:200
value_type & entry(size_type r, size_type c)
Definition: densematrix.h:207
this_type & operator=(const this_type &t)
Definition: densematrix_impl.h:76
@ static_num_rows
Definition: densematrix.h:63
TStorage::value_type value_type
Definition: densematrix.h:59
this_type operator+(const this_type &other) const
Definition: densematrix_impl.h:206
Definition: densevector.h:101
DenseMatrix< TStorage > MatrixTranspose(const DenseMatrix< TStorage > &A)
Definition: densematrix.h:240
#define UG_ASSERT(expr, msg)
Definition: assert.h:70
double number
Definition: types.h:124
eMatrixOrdering
Definition: storage.h:47
MatVec_Expression< L, R > operator*(const AlphaMat_Expression< L > &l, const R &r)
create a MatVec_Expression by (alpha*MATRIX) * VECTOR
Definition: template_expressions.h:223
T value_type
Definition: sparsematrix_interface.h:2
bool resize(size_t newRows, size_t newCols)
size_t num_rows() const
Definition: sparsematrix_interface.h:38
value_type & operator()(size_t r, size_t c)
size_t num_cols() const
Definition: sparsematrix_interface.h:39