Go to the documentation of this file.
7 #ifndef INCLUDE_JET_VECTOR_EXPRESSION_H_
8 #define INCLUDE_JET_VECTOR_EXPRESSION_H_
24 template <
typename T,
typename E>
46 template <
typename T,
typename E,
typename Op>
66 template <
typename T,
typename E,
typename U>
82 template <
typename T,
typename E1,
typename E2,
typename Op>
112 template <
typename T,
typename E,
typename Op>
134 template <
typename T,
typename E1,
typename E2>
138 template <
typename T,
typename E>
142 template <
typename T,
typename E1,
typename E2>
146 template <
typename T,
typename E>
150 template <
typename T,
typename E>
154 template <
typename T,
typename E1,
typename E2>
158 template <
typename T,
typename E>
162 template <
typename T,
typename E1,
typename E2>
166 template <
typename T,
typename E>
170 template <
typename T,
typename E>
176 template <
typename T,
typename E>
180 template <
typename T,
typename E>
184 template <
typename T,
typename E1,
typename E2>
189 template <
typename T,
typename E>
193 template <
typename T,
typename E>
197 template <
typename T,
typename E1,
typename E2>
202 template <
typename T,
typename E>
206 template <
typename T,
typename E>
210 template <
typename T,
typename E1,
typename E2>
215 template <
typename T,
typename E>
219 template <
typename T,
typename E>
223 template <
typename T,
typename E1,
typename E2>
229 #include "detail/vector_expression-inl.h"
231 #endif // INCLUDE_JET_VECTOR_EXPRESSION_H_
Base class for vector expression.
Definition: vector_expression.h:25
Vector expression for unary operation.
Definition: vector_expression.h:47
VectorBinaryOp(const E1 &u, const E2 &v)
Vector expression for matrix-scalar binary operation.
Definition: vector_expression.h:114
VectorScalarBinaryOp(const E &u, const T &v)
Constructs a binary expression for given vector and scalar.
T operator[](size_t i) const
Returns vector element at i.
Vector expression for binary operation.
Definition: vector_expression.h:84
Definition: advection_solver2.h:18
VectorUnaryOp(const E &u)
Constructs unary operation expression for given input expression.
Matrix2x2< T > operator+(const Matrix2x2< T > &a, const Matrix2x2< T > &b)
Returns a + b (element-size).
size_t size() const
Size of the matrix.
size_t size() const
Size of the vector.
size_t size() const
Size of the matrix.
T operator[](size_t i) const
Returns vector element at i.
const E & operator()() const
Returns actual implementation (the subclass).
T operator[](size_t i) const
Returns vector element at i.
Matrix2x2< T > operator/(const Matrix2x2< T > &a, T b)
Returns a' / b, where every element of matrix a' is a.
size_t size() const
Size of the matrix.
Matrix2x2< T > operator-(const Matrix2x2< T > &a)
Returns a matrix with opposite sign.
Matrix2x2< T > operator*(const Matrix2x2< T > &a, T b)
Returns a * b', where every element of matrix b' is b.