35 #ifndef _BLAZE_MATH_EXPRESSIONS_VECTOR_H_ 36 #define _BLAZE_MATH_EXPRESSIONS_VECTOR_H_ 89 return *
static_cast<VectorType*
>( this );
99 return *
static_cast<const VectorType*
>( this );
117 template<
typename VT,
bool TF >
120 template<
typename VT,
bool TF >
123 template<
typename VT,
bool TF >
126 template<
typename VT,
bool TF >
129 template<
typename VT,
bool TF >
132 template<
typename VT,
bool TF >
135 template<
typename VT,
bool TF >
138 template<
typename VT,
bool TF >
141 template<
typename VT,
bool TF >
144 template<
typename VT,
bool TF >
147 template<
typename VT,
bool TF >
150 template<
typename VT1,
bool TF1,
typename VT2,
bool TF2 >
163 template<
typename VT
167 return (~vector).begin();
179 template<
typename VT
183 return (~vector).begin();
195 template<
typename VT
199 return (~vector).begin();
211 template<
typename VT
215 return (~vector).end();
227 template<
typename VT
231 return (~vector).end();
243 template<
typename VT
247 return (~vector).end();
259 template<
typename VT
263 return (~vector).size();
275 template<
typename VT
279 return (~vector).capacity();
294 template<
typename VT
298 return (~vector).nonZeros();
317 template<
typename VT
320 resize_backend(
Vector<VT,TF>& vector,
size_t n,
bool preserve )
324 if( (~vector).
size() != n ) {
344 template<
typename VT
347 resize_backend(
Vector<VT,TF>& vector,
size_t n,
bool preserve )
349 (~vector).
resize( n, preserve );
383 template<
typename VT
387 resize_backend( vector, n, preserve );
442 template<
typename VT
485 template<
typename VT1
492 reinterpret_cast<const void*>( &a ) == reinterpret_cast<const void*>( &b ) );
512 template<
typename VT1
521 (~lhs).assign( ~rhs );
542 template<
typename VT1
551 (~lhs).addAssign( ~rhs );
572 template<
typename VT1
581 (~lhs).subAssign( ~rhs );
602 template<
typename VT1
611 (~lhs).multAssign( ~rhs );
632 template<
typename VT1
641 (~lhs).divAssign( ~rhs );
662 template<
typename VT1
694 template<
typename VT1
726 template<
typename VT1
758 template<
typename VT1
790 template<
typename VT1
822 template<
typename VT
#define BLAZE_THROW_INVALID_ARGUMENT(MESSAGE)
Macro for the emission of a std::invalid_argument exception.This macro encapsulates the default way o...
Definition: Exception.h:235
Header file for the UNUSED_PARAMETER function template.
BLAZE_ALWAYS_INLINE size_t capacity(const Matrix< MT, SO > &matrix) noexcept
Returns the maximum capacity of the matrix.
Definition: Matrix.h:352
BLAZE_ALWAYS_INLINE bool isSame(const Matrix< MT1, SO1 > &a, const Matrix< MT2, SO2 > &b) noexcept
Returns whether the two given matrices represent the same observable state.
Definition: Matrix.h:721
Header file for basic type definitions.
BLAZE_ALWAYS_INLINE size_t size(const Vector< VT, TF > &vector) noexcept
Returns the current size/dimension of the vector.
Definition: Vector.h:261
Header file for the IsSame and IsStrictlySame type traits.
BLAZE_ALWAYS_INLINE MT::Iterator begin(Matrix< MT, SO > &matrix, size_t i)
Returns an iterator to the first element of row/column i.
Definition: Matrix.h:194
typename DisableIf< Condition, T >::Type DisableIf_
Auxiliary type for the DisableIf class template.The DisableIf_ alias declaration provides a convenien...
Definition: DisableIf.h:223
BLAZE_ALWAYS_INLINE size_t nonZeros(const Matrix< MT, SO > &matrix)
Returns the total number of non-zero elements in the matrix.
Definition: Matrix.h:390
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 constant is set to true, the nested type definition Type is TrueType, and the class derives from TrueType. Otherwise value is set to false, Type is FalseType, and the class derives from FalseType.
Definition: IsSame.h:138
VT VectorType
Type of the vector.
Definition: Vector.h:80
const MT::ResultType evaluate(const Matrix< MT, SO > &matrix)
Evaluates the given matrix expression.
Definition: Matrix.h:657
BLAZE_ALWAYS_INLINE VectorType & operator~() noexcept
Conversion operator for non-constant vectors.
Definition: Vector.h:88
BLAZE_ALWAYS_INLINE MT::ConstIterator cend(const Matrix< MT, SO > &matrix, size_t i)
Returns an iterator just past the last element of row/column i.
Definition: Matrix.h:304
BLAZE_ALWAYS_INLINE MT::ConstIterator cbegin(const Matrix< MT, SO > &matrix, size_t i)
Returns an iterator to the first element of row/column i.
Definition: Matrix.h:238
Header file for the DisableIf class template.
Namespace of the Blaze C++ math library.
Definition: Blaze.h:57
#define BLAZE_ALWAYS_INLINE
Platform dependent setup of an enforced inline keyword.
Definition: Inline.h:85
const Element * ConstIterator
Iterator over constant elements.
Definition: CompressedMatrix.h:2939
Header file for the exception macros of the math module.
BLAZE_ALWAYS_INLINE void resize(Matrix< MT, SO > &matrix, size_t rows, size_t columns, bool preserve=true)
Changing the size of the matrix.
Definition: Matrix.h:544
BLAZE_ALWAYS_INLINE MT::Iterator end(Matrix< MT, SO > &matrix, size_t i)
Returns an iterator just past the last element of row/column i.
Definition: Matrix.h:260
Header file for the EnableIf class template.
Header file for run time assertion macros.
#define BLAZE_FUNCTION_TRACE
Function trace macro.This macro can be used to reliably trace function calls. In case function tracin...
Definition: FunctionTrace.h:93
Element * Iterator
Iterator over non-constant elements.
Definition: CompressedMatrix.h:2938
typename EnableIf< Condition, T >::Type EnableIf_
Auxiliary alias declaration for the EnableIf class template.The EnableIf_ alias declaration provides ...
Definition: EnableIf.h:223
Base class for N-dimensional vectors.The Vector class is a base class for all arbitrarily sized (N-di...
Definition: Forward.h:164
This ResultType
Result type for expression template evaluations.
Definition: CompressedMatrix.h:2930
void UNUSED_PARAMETER(const Args &...)
Suppression of unused parameter warnings.
Definition: Unused.h:81
Header file for the IsResizable type trait.
System settings for the inline keywords.
#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
Header file for the function trace functionality.
BLAZE_ALWAYS_INLINE const VectorType & operator~() const noexcept
Conversion operator for constant vectors.
Definition: Vector.h:98