34 #ifndef __H__UG__LIB_ALGEBRA__TEMPLATE_EXPRESSIONS2__
35 #define __H__UG__LIB_ALGEBRA__TEMPLATE_EXPRESSIONS2__
51 const T&
cast()
const {
return static_cast<const T&
>(*this); }
64 const T &
vec()
const {
return v; }
77 const T&
vec()
const {
return static_cast<const T&
>(*this); }
112 inline TE_VecAdd2(
double a1_,
const T& v1_,
double a2_,
const T& v2_)
113 :
a1(a1_),
v1(v1_),
a2(a2_),
v2(v2_) {}
127 inline TE_VecAdd3(
double a1_,
const T& v1_,
double a2_,
const T& v2_,
double a3_,
const T& v3_)
128 :
a1(a1_),
v1(v1_),
a2(a2_),
v2(v2_),
a3(a3_),
v3(v3_) {}
138 template<
typename L,
typename R>
143 template<
typename L,
typename R>
152 template<
typename L,
typename R>
157 template<
typename L,
typename R>
163 template<
typename L,
typename R>
168 template<
typename L,
typename R>
double scaling() const
Definition: te.h:52
const T & cast() const
Definition: te.h:51
const T & v1
Definition: te.h:109
double a1
Definition: te.h:108
TE_VecAdd2(double a1_, const T &v1_, double a2_, const T &v2_)
Definition: te.h:112
double a2
Definition: te.h:110
const T & v2
Definition: te.h:111
const T & v3
Definition: te.h:126
double a2
Definition: te.h:123
TE_VecAdd3(double a1_, const T &v1_, double a2_, const T &v2_, double a3_, const T &v3_)
Definition: te.h:127
double a3
Definition: te.h:125
const T & v1
Definition: te.h:122
const T & v2
Definition: te.h:124
double a1
Definition: te.h:121
TE_VecScale(double a_, const T &v_)
Definition: te.h:66
double a
Definition: te.h:60
T vector_type
Definition: te.h:59
const T & v
Definition: te.h:61
double scaling() const
Definition: te.h:63
const T & vec() const
Definition: te.h:64
double scaling() const
Definition: te.h:76
T vector_type
Definition: te.h:75
const T & vec() const
Definition: te.h:77
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
AlphaMatVec_X_Expression< L, operation_sub, R > operator-(const TE_AMV_X< L > &l, const TE_AMV_X< R > &r)
create AlphaMatVec_X_Expression<L, operation_minus, R> by conjunction of TE_AMV_X<L> + TE_AMV_X<R>
Definition: template_expressions.h:215
AlphaMatVec_X_Expression< L, operation_add, R > operator+(const TE_AMV_X< L > &l, const TE_AMV_X< R > &r)
create AlphaMatVec_X_Expression<L, operation_add, R> by conjunction of TE_AMV_X<L> + TE_AMV_X<R>
Definition: template_expressions.h:208