35 #ifndef _BLAZE_MATH_EXPRESSIONS_VECTOR_H_
36 #define _BLAZE_MATH_EXPRESSIONS_VECTOR_H_
92 return *
static_cast<const VectorType*
>( this );
110 template<
typename VT,
bool TF >
111 inline size_t size(
const Vector<VT,TF>& v );
113 template<
typename VT,
bool TF >
114 inline size_t capacity(
const Vector<VT,TF>& v );
116 template<
typename VT,
bool TF >
117 inline size_t nonZeros(
const Vector<VT,TF>& v );
119 template<
typename VT1,
bool TF1,
typename VT2,
bool TF2 >
120 inline void assign( Vector<VT1,TF1>& lhs,
const Vector<VT2,TF2>& rhs );
122 template<
typename VT1,
bool TF1,
typename VT2,
bool TF2 >
123 inline void addAssign( Vector<VT1,TF1>& lhs,
const Vector<VT2,TF2>& rhs );
125 template<
typename VT1,
bool TF1,
typename VT2,
bool TF2 >
126 inline void subAssign( Vector<VT1,TF1>& lhs,
const Vector<VT2,TF2>& rhs );
128 template<
typename VT1,
bool TF1,
typename VT2,
bool TF2 >
129 inline void multAssign( Vector<VT1,TF1>& lhs,
const Vector<VT2,TF2>& rhs );
131 template<
typename VT1,
bool TF1,
typename VT2,
bool TF2 >
132 inline bool isSame(
const Vector<VT1,TF1>& a,
const Vector<VT2,TF2>& b );
144 template<
typename VT
160 template<
typename VT
164 return (~v).capacity();
179 template<
typename VT
183 return (~v).nonZeros();
202 template<
typename VT1
230 template<
typename VT1
258 template<
typename VT1
286 template<
typename VT1
333 template<
typename VT1
340 reinterpret_cast<const void*>( &a ) == reinterpret_cast<const void*>( &b ) );
VectorType & operator~()
Conversion operator for non-constant vectors.
Definition: Vector.h:81
const VectorType & operator~() const
Conversion operator for constant vectors.
Definition: Vector.h:91
Header file for the IsSame and IsStrictlySame type traits.
Type relationship analysis.This class tests if the two data types A and B are equal. For this type comparison, the cv-qualifiers of both data types are ignored. If A and B are the same data type (ignoring the cv-qualifiers), then the value member enumeration is set to 1, the nested type definition Type is TrueType, and the class derives from TrueType. Otherwise value is set to 0, Type is FalseType, and the class derives from FalseType.
Definition: IsSame.h:158
bool isSame(const Matrix< MT1, SO1 > &a, const Matrix< MT2, SO2 > &b)
Returns whether the two given matrices represent the same observable state.
Definition: Matrix.h:409
size_t nonZeros(const Matrix< MT, SO > &m)
Returns the total number of non-zero elements in the matrix.
Definition: Matrix.h:224
void assign(Matrix< MT1, SO1 > &lhs, const Matrix< MT2, SO2 > &rhs)
Default implementation of the assignment of a matrix to a matrix.
Definition: Matrix.h:271
void multAssign(Matrix< MT1, SO1 > &lhs, const Matrix< MT2, SO2 > &rhs)
Default implementation of the multiplication assignment of a matrix to a matrix.
Definition: Matrix.h:361
Header file for run time assertion macros.
void addAssign(Matrix< MT1, SO1 > &lhs, const Matrix< MT2, SO2 > &rhs)
Default implementation of the addition assignment of a matrix to a matrix.
Definition: Matrix.h:301
void subAssign(Matrix< MT1, SO1 > &lhs, const Matrix< MT2, SO2 > &rhs)
Default implementation of the subtraction assignment of a matrix to matrix.
Definition: Matrix.h:331
VT VectorType
Type of the vector.
Definition: Vector.h:73
#define BLAZE_FUNCTION_TRACE
Function trace macro.This macro can be used to reliably trace function calls. In case function tracin...
Definition: FunctionTrace.h:157
#define BLAZE_INTERNAL_ASSERT(expr, msg)
Run time assertion macro for internal checks.In case of an invalid run time expression, the program execution is terminated. The BLAZE_INTERNAL_ASSERT macro can be disabled by setting the BLAZE_USER_ASSERTION flag to zero or by defining NDEBUG during the compilation.
Definition: Assert.h:101
size_t capacity(const Matrix< MT, SO > &m)
Returns the maximum capacity of the matrix.
Definition: Matrix.h:186
Header file for the FunctionTrace class.