33 #ifndef __H__UG__COMMON__DENSEVECTOR_H__
34 #define __H__UG__COMMON__DENSEVECTOR_H__
38 #include "../storage/storage.h"
99 template<
typename TStorage>
114 using base::operator [];
147 for(
size_t i=0; i<size(); i++)
168 for(
size_t i=0; i<size(); i++)
169 if(
entry(i) <= d)
return false;
175 for(
size_t i=0; i<size(); i++)
176 if(
entry(i) >= d)
return false;
182 for(
size_t i=0; i<size(); i++)
183 if(
entry(i) < d)
return false;
189 for(
size_t i=0; i<size(); i++)
190 if(
entry(i) > d)
return false;
195 for(
size_t i=0; i<size(); i++)
196 if(
entry(i) != d)
return false;
202 for(
size_t i=0; i<size(); i++)
203 if(
entry(i) != d)
return true;
215 for(
size_t i=0; i<size(); i++)
216 erg[i] =
entry(i) + other[i];
225 for(
size_t i=0; i<size(); i++)
226 erg[i] =
entry(i) - other[i];
235 for(
size_t i=0; i<size(); i++)
244 for(
size_t i=0; i<size(); i++)
253 return operator[] (i);
257 return operator[] (i);
260 template<
typename Type>
279 UG_ASSERT(c==0,
"vector only has one column");
285 UG_ASSERT(c==0,
"vector only has one column");
295 template<
typename T2>
300 for(
size_t i1=0; i1<t.size(); i1++)
305 template<
typename TStorage>
307 DenseVector<TStorage>
313 template<
typename TStorage>
320 template<
typename TStorage>
328 template<
typename TStorage>
336 template<
typename TStorage>
location name
Definition: checkpoint_util.lua:128
Definition: densevector.h:101
@ static_size
Definition: densevector.h:108
this_type & operator-=(const this_type &rhs)
Definition: densevector_impl.h:78
this_type & operator=(const this_type &rhs)
Definition: densevector_impl.h:55
size_t num_rows() const
Definition: densevector.h:267
DenseVector(double alpha=0.0)
Definition: densevector_impl.h:42
this_type operator+(const this_type &other) const
Definition: densevector.h:210
value_type & entry(size_t i)
Definition: densevector.h:255
bool operator<(double d) const
Definition: densevector.h:173
const value_type & operator()(size_t r, size_t c) const
Definition: densevector.h:277
bool operator==(double d) const
Definition: densevector.h:193
@ is_static
Definition: densevector.h:107
bool operator!=(double d) const
Definition: densevector.h:200
this_type & operator*=(const T &alpha)
size_t num_cols() const
Definition: densevector.h:272
this_type operator*(double alpha) const
Definition: densevector.h:231
void maple_print(const char *name)
Definition: densevector_impl.h:137
void subassign(size_t i, const T2 &t)
Definition: densevector.h:297
bool operator>(double d) const
Definition: densevector.h:166
DenseVector< TStorage > this_type
Definition: densevector.h:110
DenseVector< TStorage > & assign(const Type &t)
Definition: densevector_impl.h:168
const value_type & entry(size_t i) const
Definition: densevector.h:251
bool operator<=(double d) const
Definition: densevector.h:187
void subassign(size_t i, const value_type &t)
Definition: densevector.h:290
TStorage base
Definition: densevector.h:113
bool operator>=(double d) const
Definition: densevector.h:180
this_type & operator/=(const value_type &alpha)
Definition: densevector_impl.h:128
TStorage::size_type size_type
Definition: densevector.h:104
TStorage::value_type value_type
Definition: densevector.h:103
this_type operator-() const
Definition: densevector.h:240
this_type & operator+=(const this_type &rhs)
Definition: densevector_impl.h:68
Definition: densevector.h:47
const T & t
Definition: densevector.h:71
size_t num_rows() const
Definition: densevector.h:51
size_t num_cols() const
Definition: densevector.h:56
TE_TRANSPOSED(const T &_t)
Definition: densevector.h:50
T::value_type value_type
Definition: densevector.h:49
const value_type & operator()(size_t r, size_t c) const
Definition: densevector.h:61
bool operator<=(double alpha, const DenseVector< TStorage > &vec)
Definition: densevector.h:339
bool operator>(double alpha, const DenseVector< TStorage > &vec)
Definition: densevector.h:316
bool operator>=(double alpha, const DenseVector< TStorage > &vec)
Definition: densevector.h:331
TE_TRANSPOSED< T > te_transpose(const T &t)
Definition: densevector.h:75
PrandtlReuss< TDomain > this_type
#define UG_ASSERT(expr, msg)
Definition: assert.h:70
bool operator<(const MathVector< N, T > &v, const MathVector< N, T > &w)
Definition: math_vector.h:541
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)