35 #ifndef _BLAZE_MATH_EXPRESSIONS_VECTOR_H_ 36 #define _BLAZE_MATH_EXPRESSIONS_VECTOR_H_ 100 return *
static_cast<const VectorType*
>( this );
118 template<
typename VT,
bool TF >
121 template<
typename VT,
bool TF >
124 template<
typename VT,
bool TF >
127 template<
typename VT,
bool TF >
130 template<
typename VT,
bool TF >
133 template<
typename VT,
bool TF >
136 template<
typename VT,
bool TF >
139 template<
typename VT,
bool TF >
142 template<
typename VT,
bool TF >
145 template<
typename VT,
bool TF >
148 template<
typename VT,
bool TF >
151 template<
typename VT,
bool TF >
154 template<
typename VT1,
bool TF1,
typename VT2,
bool TF2 >
167 template<
typename VT
171 return (~vector).begin();
183 template<
typename VT
187 return (~vector).begin();
199 template<
typename VT
203 return (~vector).begin();
215 template<
typename VT
219 return (~vector).end();
231 template<
typename VT
235 return (~vector).end();
247 template<
typename VT
251 return (~vector).end();
263 template<
typename VT
267 return (~vector).size();
279 template<
typename VT
283 return (~vector).capacity();
298 template<
typename VT
302 return (~vector).nonZeros();
321 template<
typename VT
324 resize_backend(
Vector<VT,TF>& vector,
size_t n,
bool preserve )
328 if( (~vector).
size() != n ) {
348 template<
typename VT
351 resize_backend(
Vector<VT,TF>& vector,
size_t n,
bool preserve )
353 (~vector).
resize( n, preserve );
387 template<
typename VT
391 resize_backend( vector, n, preserve );
404 template<
typename VT
423 template<
typename VT
447 template<
typename VT
451 shrinkToFit_backend( vector );
506 template<
typename VT
546 template<
typename VT1
553 reinterpret_cast<const void*>( &a ) == reinterpret_cast<const void*>( &b ) );
573 template<
typename VT1
582 (~lhs).assign( ~rhs );
603 template<
typename VT1
612 (~lhs).addAssign( ~rhs );
633 template<
typename VT1
642 (~lhs).subAssign( ~rhs );
663 template<
typename VT1
672 (~lhs).multAssign( ~rhs );
693 template<
typename VT1
702 (~lhs).divAssign( ~rhs );
723 template<
typename VT
753 template<
typename VT
783 template<
typename VT
813 template<
typename VT
844 template<
typename VT
876 template<
typename VT
907 template<
typename VT
911 tryDiv(
const Vector<VT,TF>& vec,
size_t index,
size_t size,
const ET& value )
939 template<
typename VT1
971 template<
typename VT1
1003 template<
typename VT1
1035 template<
typename VT1
1067 template<
typename VT1
1099 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:522
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:949
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:265
Header file for the IsSame and IsStrictlySame type traits.
This ResultType
Result type for expression template evaluations.
Definition: CompressedMatrix.h:3076
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:364
BLAZE_ALWAYS_INLINE void shrinkToFit(Matrix< MT, SO > &matrix)
Requesting the removal of unused capacity.
Definition: Matrix.h:775
typename DisableIf< Condition, T >::Type DisableIf_
Auxiliary type for the DisableIf class template.The DisableIf_ alias declaration provides a convenien...
Definition: DisableIf.h:224
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:560
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:140
Element * Iterator
Iterator over non-constant elements.
Definition: CompressedMatrix.h:3084
const MT::ResultType evaluate(const Matrix< MT, SO > &matrix)
Evaluates the given matrix expression.
Definition: Matrix.h:888
BLAZE_ALWAYS_INLINE VectorType & operator~() noexcept
Conversion operator for non-constant vectors.
Definition: Vector.h:89
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:474
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:408
Header file for the DisableIf class template.
Namespace of the Blaze C++ math library.
Definition: Blaze.h:58
#define BLAZE_ALWAYS_INLINE
Platform dependent setup of an enforced inline keyword.
Definition: Inline.h:85
Expression object for sparse matrix-sparse vector multiplications.The TSMatSVecMultExpr class represe...
Definition: Forward.h:167
Header file for the IsShrinkable type trait.
const Element * ConstIterator
Iterator over constant elements.
Definition: CompressedMatrix.h:3085
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:714
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:430
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:94
typename EnableIf< Condition, T >::Type EnableIf_
Auxiliary alias declaration for the EnableIf class template.The EnableIf_ alias declaration provides ...
Definition: EnableIf.h:224
Base class for N-dimensional vectors.The Vector class is a base class for all arbitrarily sized (N-di...
Definition: Forward.h:177
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:99