34 #ifndef __H__UG__COMMON__DENSEVECTOR_IMPL_H__
35 #define __H__UG__COMMON__DENSEVECTOR_IMPL_H__
41 template<
typename TStorage>
47 template<
typename TStorage>
53 template<
typename TStorage>
57 if(
this == &rhs)
return *
this;
58 if(size() != rhs.size())
resize(rhs.size());
66 template<
typename TStorage>
76 template<
typename TStorage>
87 template<
typename TStorage>
92 for(
size_t i=0; i<size(); i++)
97 template<
typename TStorage>
101 for(
size_t i=0; i<size(); i++)
106 template<
typename TStorage>
107 DenseVector<TStorage> &
110 for(
size_t i=0; i<size(); i++)
115 template<
typename TStorage>
117 DenseVector<TStorage> &
120 for(
size_t i=0; i<size(); i++)
126 template<
typename TStorage>
130 for(
size_t i=0; i<size(); i++)
136 template<
typename TStorage>
140 for(
size_t i=0; i<size(); ++i)
152 template<
typename TStorage>
156 for(
size_t i=0; i<vec.size(); i++)
157 out <<
" " << vec[i];
165 template<
typename TStorage>
166 template<
typename Type>
178 buff.write((
char*)&vec,
sizeof(vec));
183 buff.read((
char*)&vec,
sizeof(vec));
189 size_t s = vec.size();
190 buff.write((
char*)&
s,
sizeof(
s));
191 for(
size_t i=0; i<
s; i++)
198 buff.read((
char*)&
s,
sizeof(
s));
200 for(
size_t i=0; i<
s; i++)
205 template<
typename T >
208 for(
size_t r=0; r<v.size(); r++)
location name
Definition: checkpoint_util.lua:128
Definition: densevector.h:101
this_type & operator-=(const this_type &rhs)
Definition: densevector_impl.h:78
this_type & operator=(const this_type &rhs)
Definition: densevector_impl.h:55
DenseVector(double alpha=0.0)
Definition: densevector_impl.h:42
this_type & operator*=(const T &alpha)
void maple_print(const char *name)
Definition: densevector_impl.h:137
DenseVector< TStorage > & assign(const Type &t)
Definition: densevector_impl.h:168
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 this_type &rhs)
Definition: densevector_impl.h:68
Definition: fixed_array.h:56
Definition: variable_array.h:59
std::ostream & operator<<(std::ostream &outStream, const ug::MathMatrix< 2, 2 > &m)
Definition: math_matrix.cpp:38
#define UG_LOG(msg)
Definition: log.h:367
void Deserialize(TIStream &buf, ParallelVector< T > &v)
Deerialize for ParallelVector<T>
Definition: restart_bridge.cpp:112
bool IsFiniteAndNotTooBig(double d)
Definition: number_util.h:39
void Serialize(TOStream &buf, const ParallelVector< T > &v)
Serialize for ParallelVector<T>
Definition: restart_bridge.cpp:103
void VectorAssign(vector_t &dest, double alpha1, const MatVec_Expression< matrix_t, vector_t > &m1, double alpha2, const MatVec_Expression< matrix_t, vector_t > &m2, double alpha3, const vector_t2 &v3)
v = Mv + Mv + v
Definition: operations_transform.h:51
bool resize(size_t newRows, size_t newCols)