35 #ifndef _BLAZE_MATH_DENSE_STATICVECTOR_H_
36 #define _BLAZE_MATH_DENSE_STATICVECTOR_H_
157 template<
typename Type
160 class StaticVector :
public DenseVector< StaticVector<Type,N,TF>, TF >
192 template<
typename ET >
210 enum { smpAssignable = 0 };
218 template<
typename Other >
explicit inline StaticVector(
size_t n,
const Other* array );
220 template<
typename Other >
221 explicit inline StaticVector(
const Other (&array)[N] );
224 template<
typename Other >
inline StaticVector(
const StaticVector<Other,N,TF>& v );
225 template<
typename VT >
inline StaticVector(
const Vector<VT,TF>& v );
228 inline StaticVector(
const Type& v1,
const Type& v2,
const Type& v3 );
229 inline StaticVector(
const Type& v1,
const Type& v2,
const Type& v3,
const Type& v4 );
230 inline StaticVector(
const Type& v1,
const Type& v2,
const Type& v3,
231 const Type& v4,
const Type& v5 );
232 inline StaticVector(
const Type& v1,
const Type& v2,
const Type& v3,
233 const Type& v4,
const Type& v5,
const Type& v6 );
260 template<
typename Other >
261 inline StaticVector& operator=(
const Other (&array)[N] );
265 template<
typename Other >
inline StaticVector& operator= (
const StaticVector<Other,N,TF>& rhs );
266 template<
typename VT >
inline StaticVector& operator= (
const Vector<VT,TF>& rhs );
267 template<
typename VT >
inline StaticVector& operator+=(
const Vector<VT,TF>& rhs );
268 template<
typename VT >
inline StaticVector& operator-=(
const Vector<VT,TF>& rhs );
269 template<
typename VT >
inline StaticVector& operator*=(
const Vector<VT,TF>& rhs );
271 template<
typename Other >
272 inline typename EnableIf< IsNumeric<Other>,
StaticVector >::Type&
273 operator*=( Other rhs );
275 template<
typename Other >
276 inline typename EnableIf< IsNumeric<Other>,
StaticVector >::Type&
277 operator/=( Other rhs );
284 inline size_t size()
const;
288 template<
typename Other >
inline StaticVector& scale(
const Other& scalar );
296 static inline void*
operator new ( std::size_t
size );
297 static inline void*
operator new[]( std::size_t
size );
298 static inline void*
operator new ( std::size_t
size,
const std::nothrow_t& );
299 static inline void*
operator new[]( std::size_t
size,
const std::nothrow_t& );
301 static inline void operator delete (
void* ptr );
302 static inline void operator delete[](
void* ptr );
303 static inline void operator delete (
void* ptr,
const std::nothrow_t& );
304 static inline void operator delete[](
void* ptr,
const std::nothrow_t& );
311 template<
typename VT >
313 struct VectorizedAssign {
314 enum { value = vectorizable && VT::vectorizable &&
315 IsSame<Type,typename VT::ElementType>::value };
322 template<
typename VT >
324 struct VectorizedAddAssign {
325 enum { value = vectorizable && VT::vectorizable &&
326 IsSame<Type,typename VT::ElementType>::value &&
327 IntrinsicTrait<Type>::addition };
334 template<
typename VT >
336 struct VectorizedSubAssign {
337 enum { value = vectorizable && VT::vectorizable &&
338 IsSame<Type,typename VT::ElementType>::value &&
339 IntrinsicTrait<Type>::subtraction };
346 template<
typename VT >
348 struct VectorizedMultAssign {
349 enum { value = vectorizable && VT::vectorizable &&
350 IsSame<Type,typename VT::ElementType>::value &&
351 IntrinsicTrait<Type>::multiplication };
360 template<
typename Other >
inline bool canAlias (
const Other* alias )
const;
361 template<
typename Other >
inline bool isAliased(
const Other* alias )
const;
371 template<
typename VT >
372 inline typename DisableIf< VectorizedAssign<VT> >::Type
373 assign(
const DenseVector<VT,TF>& rhs );
375 template<
typename VT >
376 inline typename EnableIf< VectorizedAssign<VT> >::Type
377 assign(
const DenseVector<VT,TF>& rhs );
379 template<
typename VT >
inline void assign(
const SparseVector<VT,TF>& rhs );
381 template<
typename VT >
382 inline typename DisableIf< VectorizedAddAssign<VT> >::Type
383 addAssign(
const DenseVector<VT,TF>& rhs );
385 template<
typename VT >
386 inline typename EnableIf< VectorizedAddAssign<VT> >::Type
387 addAssign(
const DenseVector<VT,TF>& rhs );
389 template<
typename VT >
inline void addAssign(
const SparseVector<VT,TF>& rhs );
391 template<
typename VT >
392 inline typename DisableIf< VectorizedSubAssign<VT> >::Type
393 subAssign(
const DenseVector<VT,TF>& rhs );
395 template<
typename VT >
396 inline typename EnableIf< VectorizedSubAssign<VT> >::Type
397 subAssign(
const DenseVector<VT,TF>& rhs );
399 template<
typename VT >
inline void subAssign(
const SparseVector<VT,TF>& rhs );
401 template<
typename VT >
402 inline typename DisableIf< VectorizedMultAssign<VT> >::Type
403 multAssign(
const DenseVector<VT,TF>& rhs );
405 template<
typename VT >
406 inline typename EnableIf< VectorizedMultAssign<VT> >::Type
407 multAssign(
const DenseVector<VT,TF>& rhs );
409 template<
typename VT >
inline void multAssign(
const SparseVector<VT,TF>& rhs );
453 template<
typename Type
462 for(
size_t i=0UL; i<NN; ++i )
474 template<
typename Type
482 for(
size_t i=0UL; i<N; ++i )
485 for(
size_t i=N; i<NN; ++i )
513 template<
typename Type
516 template<
typename Other >
523 throw std::invalid_argument(
"Invalid setup of static vector" );
525 for(
size_t i=0UL; i<n; ++i )
529 for(
size_t i=n; i<NN; ++i )
552 template<
typename Type
555 template<
typename Other >
561 for(
size_t i=0UL; i<N; ++i )
564 for(
size_t i=N; i<NN; ++i )
577 template<
typename Type
585 for(
size_t i=0UL; i<NN; ++i )
596 template<
typename Type
599 template<
typename Other >
605 for(
size_t i=0UL; i<N; ++i )
608 for(
size_t i=N; i<NN; ++i )
624 template<
typename Type
627 template<
typename VT >
635 if( (~v).
size() != N )
636 throw std::invalid_argument(
"Invalid setup of static vector" );
659 template<
typename Type
671 for(
size_t i=N; i<NN; ++i )
690 template<
typename Type
703 for(
size_t i=N; i<NN; ++i )
723 template<
typename Type
727 const Type& v3,
const Type& v4 )
738 for(
size_t i=N; i<NN; ++i )
759 template<
typename Type
763 const Type& v4,
const Type& v5 )
775 for(
size_t i=N; i<NN; ++i )
797 template<
typename Type
801 const Type& v4,
const Type& v5,
const Type& v6 )
814 for(
size_t i=N; i<NN; ++i )
836 template<
typename Type
856 template<
typename Type
875 template<
typename Type
892 template<
typename Type
907 template<
typename Type
922 template<
typename Type
937 template<
typename Type
952 template<
typename Type
967 template<
typename Type
982 template<
typename Type
1017 template<
typename Type
1020 template<
typename Other >
1023 for(
size_t i=0UL; i<N; ++i )
1036 template<
typename Type
1041 for(
size_t i=0UL; i<N; ++i )
1056 template<
typename Type
1075 template<
typename Type
1078 template<
typename Other >
1099 template<
typename Type
1102 template<
typename VT >
1107 if( (~rhs).
size() != N )
1108 throw std::invalid_argument(
"Invalid assignment to static vector" );
1110 if( (~rhs).canAlias(
this ) ) {
1135 template<
typename Type
1138 template<
typename VT >
1143 if( (~rhs).
size() != N )
1144 throw std::invalid_argument(
"Vector sizes do not match" );
1146 if( (~rhs).canAlias(
this ) ) {
1169 template<
typename Type
1172 template<
typename VT >
1177 if( (~rhs).
size() != N )
1178 throw std::invalid_argument(
"Vector sizes do not match" );
1180 if( (~rhs).canAlias(
this ) ) {
1204 template<
typename Type
1207 template<
typename VT >
1212 if( (~rhs).
size() != N )
1213 throw std::invalid_argument(
"Vector sizes do not match" );
1217 this->operator=( tmp );
1235 template<
typename Type
1238 template<
typename Other >
1244 assign( *
this, (*
this) * rhs );
1259 template<
typename Type
1262 template<
typename Other >
1270 assign( *
this, (*
this) / rhs );
1289 template<
typename Type
1304 template<
typename Type
1322 template<
typename Type
1327 size_t nonzeros( 0 );
1329 for(
size_t i=0UL; i<N; ++i ) {
1344 template<
typename Type
1350 for(
size_t i=0UL; i<N; ++i )
1362 template<
typename Type
1365 template<
typename Other >
1368 for(
size_t i=0; i<N; ++i )
1382 template<
typename Type
1389 for(
size_t i=0UL; i<N; ++i )
1390 swap( v_[i], v.v_[i] );
1413 template<
typename Type
1422 return allocate<StaticVector>( 1UL );
1437 template<
typename Type
1460 template<
typename Type
1469 return allocate<StaticVector>( 1UL );
1484 template<
typename Type
1503 template<
typename Type
1508 deallocate( static_cast<StaticVector*>( ptr ) );
1519 template<
typename Type
1524 deallocate( static_cast<StaticVector*>( ptr ) );
1535 template<
typename Type
1540 deallocate( static_cast<StaticVector*>( ptr ) );
1551 template<
typename Type
1556 deallocate( static_cast<StaticVector*>( ptr ) );
1579 template<
typename Type
1582 template<
typename Other >
1585 return static_cast<const void*
>( this ) == static_cast<const void*>( alias );
1600 template<
typename Type
1603 template<
typename Other >
1606 return static_cast<const void*
>( this ) == static_cast<const void*>( alias );
1620 template<
typename Type
1643 template<
typename Type
1657 return load( &v_[index] );
1675 template<
typename Type
1688 return loadu( &v_[index] );
1707 template<
typename Type
1720 store( &v_[index], value );
1739 template<
typename Type
1751 storeu( &v_[index], value );
1770 template<
typename Type
1783 stream( &v_[index], value );
1799 template<
typename Type
1802 template<
typename VT >
1808 for(
size_t i=0UL; i<N; ++i )
1825 template<
typename Type
1828 template<
typename VT >
1838 for(
size_t i=0UL; i<N; i+=
IT::size ) {
1856 template<
typename Type
1859 template<
typename VT >
1865 v_[element->index()] = element->value();
1881 template<
typename Type
1884 template<
typename VT >
1890 for(
size_t i=0UL; i<N; ++i )
1907 template<
typename Type
1910 template<
typename VT >
1921 for(
size_t i=0UL; i<N; i+=
IT::size ) {
1939 template<
typename Type
1942 template<
typename VT >
1948 v_[element->index()] += element->value();
1964 template<
typename Type
1967 template<
typename VT >
1973 for(
size_t i=0UL; i<N; ++i )
1990 template<
typename Type
1993 template<
typename VT >
2004 for(
size_t i=0UL; i<N; i+=
IT::size ) {
2022 template<
typename Type
2025 template<
typename VT >
2031 v_[element->index()] -= element->value();
2047 template<
typename Type
2050 template<
typename VT >
2056 for(
size_t i=0UL; i<N; ++i )
2073 template<
typename Type
2076 template<
typename VT >
2087 for(
size_t i=0UL; i<N; i+=
IT::size ) {
2105 template<
typename Type
2108 template<
typename VT >
2118 v_[element->index()] = tmp[element->index()] * element->value();
2143 template<
typename Type
2165 template<
typename Type,
size_t N,
bool TF >
2168 template<
typename Type,
size_t N,
bool TF >
2171 template<
typename Type,
size_t N,
bool TF >
2174 template<
typename Type,
bool TF >
2177 template<
typename Type,
bool TF >
2180 template<
typename Type,
size_t N,
bool TF >
2183 template<
typename Type,
size_t N,
bool TF >
2196 template<
typename Type
2215 template<
typename Type
2243 template<
typename Type
2248 for(
size_t i=0UL; i<N; ++i )
2266 template<
typename Type
2283 template<
typename Type
2287 if( v[0] != Type() || v[1] != Type() )
2304 template<
typename Type
2323 template<
typename Type
2343 template<
typename T,
size_t N,
bool TF >
2344 struct Size< StaticVector<T,N,TF> >
2346 static const size_t value = N;
2362 template<
typename T1,
size_t N,
bool TF,
typename T2 >
2363 struct AddTrait< StaticVector<T1,N,TF>, StaticVector<T2,N,TF> >
2365 typedef StaticVector< typename AddTrait<T1,T2>::Type, N, TF > Type;
2381 template<
typename T1,
size_t N,
bool TF,
typename T2 >
2382 struct SubTrait< StaticVector<T1,N,TF>, StaticVector<T2,N,TF> >
2384 typedef StaticVector< typename SubTrait<T1,T2>::Type, N, TF > Type;
2400 template<
typename T1,
size_t N,
bool TF,
typename T2 >
2401 struct MultTrait< StaticVector<T1,N,TF>, T2 >
2403 typedef StaticVector< typename MultTrait<T1,T2>::Type, N, TF > Type;
2407 template<
typename T1,
typename T2,
size_t N,
bool TF >
2408 struct MultTrait< T1, StaticVector<T2,N,TF> >
2410 typedef StaticVector< typename MultTrait<T1,T2>::Type, N, TF > Type;
2414 template<
typename T1,
size_t N,
bool TF,
typename T2 >
2415 struct MultTrait< StaticVector<T1,N,TF>, StaticVector<T2,N,TF> >
2417 typedef StaticVector< typename MultTrait<T1,T2>::Type, N, TF > Type;
2420 template<
typename T1,
size_t M,
typename T2,
size_t N >
2421 struct MultTrait< StaticVector<T1,M,false>, StaticVector<T2,N,true> >
2423 typedef StaticMatrix< typename MultTrait<T1,T2>::Type, M, N,
false > Type;
2426 template<
typename T1,
size_t N,
typename T2 >
2427 struct MultTrait< StaticVector<T1,N,true>, StaticVector<T2,N,false> >
2429 typedef typename MultTrait<T1,T2>::Type Type;
2445 template<
typename T1,
typename T2 >
2446 struct CrossTrait< StaticVector<T1,3UL,false>, StaticVector<T2,3UL,false> >
2449 typedef typename MultTrait<T1,T2>::Type T;
2452 typedef StaticVector< typename SubTrait<T,T>::Type, 3UL,
false > Type;
2468 template<
typename T1,
size_t N,
bool TF,
typename T2 >
2469 struct DivTrait< StaticVector<T1,N,TF>, T2 >
2471 typedef StaticVector< typename DivTrait<T1,T2>::Type, N, TF > Type;
2488 template<
typename T1,
size_t N,
bool TF,
typename T2 >
2489 struct MathTrait< StaticVector<T1,N,TF>, StaticVector<T2,N,TF> >
2491 typedef StaticVector< typename MathTrait<T1,T2>::HighType, N, TF > HighType;
2492 typedef StaticVector< typename MathTrait<T1,T2>::LowType , N, TF > LowType;
2508 template<
typename T1,
size_t N,
bool TF >
2509 struct SubvectorTrait< StaticVector<T1,N,TF> >
2511 typedef HybridVector<T1,N,TF> Type;
Compile time check for vectorizable types.Depending on the available instruction set (SSE...
Definition: IsVectorizable.h:108
Constraint on the data type.
#define BLAZE_CONSTRAINT_MUST_NOT_BE_CONST(T)
Constraint on the data type.In case the given data type is a const-qualified type, a compilation error is created.
Definition: Const.h:116
IntrinsicType load(size_t index) const
Aligned load of an intrinsic element of the vector.
Definition: StaticVector.h:1647
const bool defaultTransposeFlag
The default transpose flag for all vectors of the Blaze library.This value specifies the default tran...
Definition: TransposeFlag.h:56
Compile time check for numeric types.This type trait tests whether or not the given template paramete...
Definition: IsNumeric.h:98
Constraint on the data type.
void swap(SymmetricMatrix< MT, SO, DF, NF > &a, SymmetricMatrix< MT, SO, DF, NF > &b)
Swapping the contents of two matrices.
Definition: SymmetricMatrix.h:195
BLAZE_ALWAYS_INLINE 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:879
#define BLAZE_USER_ASSERT(expr, msg)
Run time assertion macro for user checks.In case of an invalid run time expression, the program execution is terminated. The BLAZE_USER_ASSERT macro can be disabled by setting the BLAZE_USER_ASSERT flag to zero or by defining NDEBUG during the compilation.
Definition: Assert.h:117
Header file for the UNUSED_PARAMETER function template.
Header file for the subtraction trait.
Header file for the SparseVector base class.
Type * Pointer
Pointer to a non-constant vector value.
Definition: StaticVector.h:183
Iterator end()
Returns an iterator just past the last element of the static vector.
Definition: StaticVector.h:955
BLAZE_ALWAYS_INLINE size_t size(const Vector< VT, TF > &vector)
Returns the current size/dimension of the vector.
Definition: Vector.h:258
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:258
AlignedArray< Type, NN > v_
The statically allocated vector elements.
Definition: StaticVector.h:417
BLAZE_ALWAYS_INLINE EnableIf< IsIntegral< T > >::Type stream(T *address, const typename Stream< T, sizeof(T)>::Type &value)
Aligned, non-temporal store of a vector of integral values.
Definition: Stream.h:220
Header file for the IsSame and IsStrictlySame type traits.
BLAZE_ALWAYS_INLINE EnableIf< IsIntegral< T >, Load< T, sizeof(T)> >::Type::Type load(const T *address)
Loads a vector of integral values.
Definition: Load.h:224
void UNUSED_PARAMETER(const T1 &)
Suppression of unused parameter warnings.
Definition: Unused.h:81
Header file for the DenseVector base class.
StaticVector< Type, N,!TF > TransposeType
Transpose type for expression template evaluations.
Definition: StaticVector.h:176
#define BLAZE_CONSTRAINT_MUST_NOT_BE_VOLATILE(T)
Constraint on the data type.In case the given data type is a volatile-qualified type, a compilation error is created.
Definition: Volatile.h:116
const DMatSerialExpr< MT, SO > serial(const DenseMatrix< MT, SO > &dm)
Forces the serial evaluation of the given dense matrix expression dm.
Definition: DMatSerialExpr.h:695
Type & Reference
Reference to a non-constant vector value.
Definition: StaticVector.h:181
size_t nonZeros() const
Returns the number of non-zero elements in the vector.
Definition: StaticVector.h:1325
Header file for memory allocation and deallocation functionality.
Constraint on the data type.
Efficient implementation of a fixed-sized vector.The StaticVector class template is the representatio...
Definition: Forward.h:59
bool isAligned() const
Returns whether the vector is properly aligned in memory.
Definition: StaticVector.h:1623
Header file for the DisableIf class template.
size_t capacity() const
Returns the maximum capacity of the vector.
Definition: StaticVector.h:1307
bool canAlias(const Other *alias) const
Returns whether the vector can alias with the given address alias.
Definition: StaticVector.h:1583
void swap(StaticVector &v)
Swapping the contents of two static vectors.
Definition: StaticVector.h:1385
Header file for the multiplication trait.
Header file for the clear shim.
Header file for nested template disabiguation.
void swap(CompressedMatrix< Type, SO > &a, CompressedMatrix< Type, SO > &b)
Swapping the contents of two compressed matrices.
Definition: CompressedMatrix.h:4754
Header file for all forward declarations of the math module.
const Element * ConstIterator
Iterator over constant elements.
Definition: CompressedMatrix.h:2482
#define BLAZE_CONSTRAINT_MUST_NOT_BE_POINTER_TYPE(T)
Constraint on the data type.In case the given data type T is not a pointer type, a compilation error ...
Definition: Pointer.h:116
BLAZE_ALWAYS_INLINE 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:635
EnableIf< IsBuiltin< T > >::Type deallocate(T *address)
Deallocation of memory for built-in data types.
Definition: Memory.h:226
Header file for the DenseIterator class template.
BLAZE_ALWAYS_INLINE void clear(const NonNumericProxy< MT > &proxy)
Clearing the represented element.
Definition: NonNumericProxy.h:854
Header file for the subvector trait.
Constraint on the data type.
Base class for N-dimensional dense vectors.The DenseVector class is a base class for all arbitrarily ...
Definition: DenseVector.h:70
Compile time check for sparse vector types.This type trait tests whether or not the given template pa...
Definition: IsSparseVector.h:103
BLAZE_ALWAYS_INLINE EnableIf< IsIntegral< T >, Loadu< T, sizeof(T)> >::Type::Type loadu(const T *address)
Loads a vector of integral values.
Definition: Loadu.h:221
This ResultType
Result type for expression template evaluations.
Definition: StaticVector.h:175
void reset()
Reset to the default initial values.
Definition: StaticVector.h:1347
#define BLAZE_CONSTRAINT_MUST_BE_VECTORIZABLE_TYPE(T)
Constraint on the data type.In case the given data type T is not a vectorizable data type...
Definition: Vectorizable.h:79
ConstIterator cbegin() const
Returns an iterator to the first element of the static vector.
Definition: StaticVector.h:940
Reference operator[](size_t index)
Subscript operator for the direct access to the vector elements.
Definition: StaticVector.h:840
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:195
IT::Type IntrinsicType
Intrinsic type of the vector elements.
Definition: StaticVector.h:178
const StaticVector< Type, 2UL, TF > perp(const StaticVector< Type, 2UL, TF > &v)
Unary perp dot product operator for the calculation of a perpendicular vector ( ).
Definition: StaticVector.h:2268
void store(size_t index, const IntrinsicType &value)
Aligned store of an intrinsic element of the vector.
Definition: StaticVector.h:1710
Header file for the EnableIf class template.
Header file for the serial shim.
Header file for the IsVectorizable type trait.
Header file for the IsNumeric type trait.
DenseIterator< Type > Iterator
Iterator over non-constant elements.
Definition: StaticVector.h:185
Header file for the IsSparseVector type trait.
Intrinsic characteristics of data types.The IntrinsicTrait class template provides the intrinsic char...
Definition: IntrinsicTrait.h:749
StaticVector()
The default constructor for StaticVector.
Definition: StaticVector.h:456
Header file for run time assertion macros.
Header file for the addition trait.
Header file for the cross product trait.
BLAZE_ALWAYS_INLINE 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:742
StaticVector< ET, N, TF > Other
The type of the other StaticVector.
Definition: StaticVector.h:194
Header file for the division trait.
const Type & ReturnType
Return type for expression template evaluations.
Definition: StaticVector.h:179
Constraint on the data type.
Substitution Failure Is Not An Error (SFINAE) class.The EnableIf class template is an auxiliary tool ...
Definition: EnableIf.h:184
const Type & ConstReference
Reference to a constant vector value.
Definition: StaticVector.h:182
#define BLAZE_CONSTRAINT_MUST_BE_NUMERIC_TYPE(T)
Constraint on the data type.In case the given data type T is not a numeric (integral or floating poin...
Definition: Numeric.h:79
Iterator begin()
Returns an iterator to the first element of the static vector.
Definition: StaticVector.h:910
void move(DynamicMatrix< Type, SO > &dst, DynamicMatrix< Type, SO > &src)
Moving the contents of one dynamic matrix to another.
Definition: DynamicMatrix.h:4769
Header file for the AlignedArray implementation.
#define BLAZE_CONSTRAINT_MUST_NOT_BE_REFERENCE_TYPE(T)
Constraint on the data type.In case the given data type T is not a reference type, a compilation error is created.
Definition: Reference.h:116
Element * Iterator
Iterator over non-constant elements.
Definition: CompressedMatrix.h:2481
Header file for the isDefault shim.
BLAZE_ALWAYS_INLINE bool isDefault(const NonNumericProxy< MT > &proxy)
Returns whether the represented element is in default state.
Definition: NonNumericProxy.h:874
Constraint on the data type.
bool isAliased(const Other *alias) const
Returns whether the vector is aliased with the given address alias.
Definition: StaticVector.h:1604
BLAZE_ALWAYS_INLINE void reset(const NonNumericProxy< MT > &proxy)
Resetting the represented element to the default initial values.
Definition: NonNumericProxy.h:833
const StaticVector & CompositeType
Data type for composite expression templates.
Definition: StaticVector.h:180
StaticVector< Type, N, TF > This
Type of this StaticVector instance.
Definition: StaticVector.h:174
Substitution Failure Is Not An Error (SFINAE) class.The DisableIf class template is an auxiliary tool...
Definition: DisableIf.h:184
void stream(size_t index, const IntrinsicType &value)
Aligned, non-temporal store of an intrinsic element of the vector.
Definition: StaticVector.h:1773
Implementation of a generic iterator for dense vectors and matrices.The DenseIterator represents a ge...
Definition: DenseIterator.h:58
Header file for all intrinsic functionality.
Header file for the mathematical trait.
DenseIterator< const Type > ConstIterator
Iterator over constant elements.
Definition: StaticVector.h:186
const Type * ConstPointer
Pointer to a constant vector value.
Definition: StaticVector.h:184
Header file for the default transpose flag for all vectors of the Blaze library.
size_t size() const
Returns the current size/dimension of the vector.
Definition: StaticVector.h:1292
IntrinsicTrait< Type > IT
Intrinsic trait for the vector element type.
Definition: StaticVector.h:164
Base class for sparse vectors.The SparseVector class is a base class for all arbitrarily sized (N-dim...
Definition: Forward.h:108
Header file for basic type definitions.
BLAZE_ALWAYS_INLINE EnableIf< IsIntegral< T > >::Type storeu(T *address, const typename Storeu< T, sizeof(T)>::Type &value)
Unaligned store of a vector of integral values.
Definition: Storeu.h:218
ConstIterator cend() const
Returns an iterator just past the last element of the static vector.
Definition: StaticVector.h:985
IntrinsicType loadu(size_t index) const
Unaligned load of an intrinsic element of the vector.
Definition: StaticVector.h:1679
#define BLAZE_STATIC_ASSERT(expr)
Compile time assertion macro.In case of an invalid compile time expression, a compilation error is cr...
Definition: StaticAssert.h:143
Type ElementType
Type of the vector elements.
Definition: StaticVector.h:177
BLAZE_ALWAYS_INLINE EnableIf< IsIntegral< T > >::Type store(T *address, const typename Store< T, sizeof(T)>::Type &value)
Aligned store of a vector of integral values.
Definition: Store.h:225
Pointer data()
Low-level data access to the vector elements.
Definition: StaticVector.h:878
Header file for the Size type trait.
#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
Rebind mechanism to obtain a StaticVector with different data/element type.
Definition: StaticVector.h:193
void storeu(size_t index, const IntrinsicType &value)
Unaligned store of an intrinsic element of the vector.
Definition: StaticVector.h:1742
BLAZE_ALWAYS_INLINE 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:849