All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DVecAbsExpr.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_EXPRESSIONS_DVECABSEXPR_H_
36 #define _BLAZE_MATH_EXPRESSIONS_DVECABSEXPR_H_
37 
38 
39 //*************************************************************************************************
40 // Includes
41 //*************************************************************************************************
42 
43 #include <cmath>
50 #include <blaze/math/Intrinsics.h>
62 #include <blaze/util/Assert.h>
64 #include <blaze/util/EnableIf.h>
65 #include <blaze/util/InvalidType.h>
67 #include <blaze/util/SelectType.h>
68 #include <blaze/util/Types.h>
69 
70 
71 namespace blaze {
72 
73 //=================================================================================================
74 //
75 // CLASS DVECABSEXPR
76 //
77 //=================================================================================================
78 
79 //*************************************************************************************************
86 template< typename VT // Type of the dense vector
87  , bool TF > // Transpose flag
88 class DVecAbsExpr : public DenseVector< DVecAbsExpr<VT,TF>, TF >
89  , private VecAbsExpr
90  , private Computation
91 {
92  private:
93  //**Type definitions****************************************************************************
94  typedef typename VT::ReturnType RN;
95  typedef typename VT::ElementType ET;
96  //**********************************************************************************************
97 
98  //**Return type evaluation**********************************************************************
100 
105  enum { returnExpr = !IsTemporary<RN>::value };
106 
109  //**********************************************************************************************
110 
111  //**Evaluation strategy*************************************************************************
113 
119  enum { useAssign = RequiresEvaluation<VT>::value };
120 
122  template< typename VT2 >
124  struct UseAssign {
125  enum { value = useAssign };
126  };
128  //**********************************************************************************************
129 
130  public:
131  //**Type definitions****************************************************************************
133  typedef typename VT::ResultType ResultType;
134  typedef typename VT::TransposeType TransposeType;
135  typedef typename VT::ElementType ElementType;
137 
140 
143 
145  typedef typename SelectType< IsExpression<VT>::value, const VT, const VT& >::Type Operand;
146  //**********************************************************************************************
147 
148  //**ConstIterator class definition**************************************************************
152  {
153  public:
154  //**Type definitions*************************************************************************
155  typedef std::random_access_iterator_tag IteratorCategory;
160 
161  // STL iterator requirements
167 
169  typedef typename VT::ConstIterator IteratorType;
170  //*******************************************************************************************
171 
172  //**Constructor******************************************************************************
177  explicit inline ConstIterator( IteratorType it )
178  : it_( it ) // Iterator to the current vector element
179  {}
180  //*******************************************************************************************
181 
182  //**Addition assignment operator*************************************************************
188  inline ConstIterator& operator+=( size_t inc ) {
189  it_ += inc;
190  return *this;
191  }
192  //*******************************************************************************************
193 
194  //**Subtraction assignment operator**********************************************************
200  inline ConstIterator& operator-=( size_t dec ) {
201  it_ -= dec;
202  return *this;
203  }
204  //*******************************************************************************************
205 
206  //**Prefix increment operator****************************************************************
212  ++it_;
213  return *this;
214  }
215  //*******************************************************************************************
216 
217  //**Postfix increment operator***************************************************************
222  inline const ConstIterator operator++( int ) {
223  return ConstIterator( it_++ );
224  }
225  //*******************************************************************************************
226 
227  //**Prefix decrement operator****************************************************************
233  --it_;
234  return *this;
235  }
236  //*******************************************************************************************
237 
238  //**Postfix decrement operator***************************************************************
243  inline const ConstIterator operator--( int ) {
244  return ConstIterator( it_-- );
245  }
246  //*******************************************************************************************
247 
248  //**Element access operator******************************************************************
253  inline ReturnType operator*() const {
254  using std::abs;
255  return abs( *it_ );
256  }
257  //*******************************************************************************************
258 
259  //**Load function****************************************************************************
264  inline IntrinsicType load() const {
265  return abs( it_.load() );
266  }
267  //*******************************************************************************************
268 
269  //**Equality operator************************************************************************
275  inline bool operator==( const ConstIterator& rhs ) const {
276  return it_ == rhs.it_;
277  }
278  //*******************************************************************************************
279 
280  //**Inequality operator**********************************************************************
286  inline bool operator!=( const ConstIterator& rhs ) const {
287  return it_ != rhs.it_;
288  }
289  //*******************************************************************************************
290 
291  //**Less-than operator***********************************************************************
297  inline bool operator<( const ConstIterator& rhs ) const {
298  return it_ < rhs.it_;
299  }
300  //*******************************************************************************************
301 
302  //**Greater-than operator********************************************************************
308  inline bool operator>( const ConstIterator& rhs ) const {
309  return it_ > rhs.it_;
310  }
311  //*******************************************************************************************
312 
313  //**Less-or-equal-than operator**************************************************************
319  inline bool operator<=( const ConstIterator& rhs ) const {
320  return it_ <= rhs.it_;
321  }
322  //*******************************************************************************************
323 
324  //**Greater-or-equal-than operator***********************************************************
330  inline bool operator>=( const ConstIterator& rhs ) const {
331  return it_ >= rhs.it_;
332  }
333  //*******************************************************************************************
334 
335  //**Subtraction operator*********************************************************************
341  inline DifferenceType operator-( const ConstIterator& rhs ) const {
342  return it_ - rhs.it_;
343  }
344  //*******************************************************************************************
345 
346  //**Addition operator************************************************************************
353  friend inline const ConstIterator operator+( const ConstIterator& it, size_t inc ) {
354  return ConstIterator( it.it_ + inc );
355  }
356  //*******************************************************************************************
357 
358  //**Addition operator************************************************************************
365  friend inline const ConstIterator operator+( size_t inc, const ConstIterator& it ) {
366  return ConstIterator( it.it_ + inc );
367  }
368  //*******************************************************************************************
369 
370  //**Subtraction operator*********************************************************************
377  friend inline const ConstIterator operator-( const ConstIterator& it, size_t dec ) {
378  return ConstIterator( it.it_ - dec );
379  }
380  //*******************************************************************************************
381 
382  private:
383  //**Member variables*************************************************************************
385  //*******************************************************************************************
386  };
387  //**********************************************************************************************
388 
389  //**Compilation flags***************************************************************************
391  enum { vectorizable = VT::vectorizable &&
393 
395  enum { smpAssignable = VT::smpAssignable };
396  //**********************************************************************************************
397 
398  //**Constructor*********************************************************************************
403  explicit inline DVecAbsExpr( const VT& dv )
404  : dv_( dv ) // Dense vector of the absolute value expression
405  {}
406  //**********************************************************************************************
407 
408  //**Subscript operator**************************************************************************
414  inline ReturnType operator[]( size_t index ) const {
415  using std::abs;
416  BLAZE_INTERNAL_ASSERT( index < dv_.size(), "Invalid vector access index" );
417  return abs( dv_[index] );
418  }
419  //**********************************************************************************************
420 
421  //**Load function*******************************************************************************
427  inline IntrinsicType load( size_t index ) const {
428  typedef IntrinsicTrait<ElementType> IT;
429  BLAZE_INTERNAL_ASSERT( index < dv_.size() , "Invalid vector access index" );
430  BLAZE_INTERNAL_ASSERT( index % IT::size == 0UL, "Invalid vector access index" );
431  return abs( dv_.load( index ) );
432  }
433  //**********************************************************************************************
434 
435  //**Begin function******************************************************************************
440  inline ConstIterator begin() const {
441  return ConstIterator( dv_.begin() );
442  }
443  //**********************************************************************************************
444 
445  //**End function********************************************************************************
450  inline ConstIterator end() const {
451  return ConstIterator( dv_.end() );
452  }
453  //**********************************************************************************************
454 
455  //**Size function*******************************************************************************
460  inline size_t size() const {
461  return dv_.size();
462  }
463  //**********************************************************************************************
464 
465  //**Operand access******************************************************************************
470  inline Operand operand() const {
471  return dv_;
472  }
473  //**********************************************************************************************
474 
475  //**********************************************************************************************
481  template< typename T >
482  inline bool canAlias( const T* alias ) const {
483  return IsComputation<VT>::value && dv_.canAlias( alias );
484  }
485  //**********************************************************************************************
486 
487  //**********************************************************************************************
493  template< typename T >
494  inline bool isAliased( const T* alias ) const {
495  return dv_.isAliased( alias );
496  }
497  //**********************************************************************************************
498 
499  private:
500  //**Member variables****************************************************************************
502  //**********************************************************************************************
503 
504  //**Assignment to dense vectors*****************************************************************
518  template< typename VT2 > // Type of the target dense vector
519  friend inline typename EnableIf< UseAssign<VT2> >::Type
520  assign( DenseVector<VT2,TF>& lhs, const DVecAbsExpr& rhs )
521  {
523 
524  BLAZE_INTERNAL_ASSERT( (~lhs).size() == rhs.size(), "Invalid vector sizes" );
525 
526  assign( ~lhs, rhs.dv_ );
527  assign( ~lhs, abs( ~lhs ) );
528  }
530  //**********************************************************************************************
531 
532  //**Assignment to sparse vectors****************************************************************
546  template< typename VT2 > // Type of the target sparse vector
547  friend inline typename EnableIf< UseAssign<VT2> >::Type
548  assign( SparseVector<VT2,TF>& lhs, const DVecAbsExpr& rhs )
549  {
551 
555 
556  BLAZE_INTERNAL_ASSERT( (~lhs).size() == rhs.size(), "Invalid vector sizes" );
557 
558  const ResultType tmp( rhs );
559  assign( ~lhs, tmp );
560  }
562  //**********************************************************************************************
563 
564  //**Addition assignment to dense vectors********************************************************
578  template< typename VT2 > // Type of the target dense vector
579  friend inline typename EnableIf< UseAssign<VT2> >::Type
580  addAssign( DenseVector<VT2,TF>& lhs, const DVecAbsExpr& rhs )
581  {
583 
587 
588  BLAZE_INTERNAL_ASSERT( (~lhs).size() == rhs.size(), "Invalid vector sizes" );
589 
590  const ResultType tmp( rhs );
591  addAssign( ~lhs, tmp );
592  }
594  //**********************************************************************************************
595 
596  //**Addition assignment to sparse vectors*******************************************************
597  // No special implementation for the addition assignment to sparse vectors.
598  //**********************************************************************************************
599 
600  //**Subtraction assignment to dense vectors*****************************************************
614  template< typename VT2 > // Type of the target dense vector
615  friend inline typename EnableIf< UseAssign<VT2> >::Type
616  subAssign( DenseVector<VT2,TF>& lhs, const DVecAbsExpr& rhs )
617  {
619 
623 
624  BLAZE_INTERNAL_ASSERT( (~lhs).size() == rhs.size(), "Invalid vector sizes" );
625 
626  const ResultType tmp( rhs );
627  subAssign( ~lhs, tmp );
628  }
630  //**********************************************************************************************
631 
632  //**Subtraction assignment to sparse vectors****************************************************
633  // No special implementation for the subtraction assignment to sparse vectors.
634  //**********************************************************************************************
635 
636  //**Multiplication assignment to dense vectors**************************************************
650  template< typename VT2 > // Type of the target dense vector
651  friend inline typename EnableIf< UseAssign<VT2> >::Type
652  multAssign( DenseVector<VT2,TF>& lhs, const DVecAbsExpr& rhs )
653  {
655 
659 
660  BLAZE_INTERNAL_ASSERT( (~lhs).size() == rhs.size(), "Invalid vector sizes" );
661 
662  const ResultType tmp( rhs );
663  multAssign( ~lhs, tmp );
664  }
666  //**********************************************************************************************
667 
668  //**Multiplication assignment to sparse vectors*************************************************
669  // No special implementation for the multiplication assignment to sparse vectors.
670  //**********************************************************************************************
671 
672  //**Compile time checks*************************************************************************
677  //**********************************************************************************************
678 };
679 //*************************************************************************************************
680 
681 
682 
683 
684 //=================================================================================================
685 //
686 // GLOBAL FUNCTIONS
687 //
688 //=================================================================================================
689 
690 //*************************************************************************************************
707 template< typename VT // Type of the dense vector
708  , bool TF > // Transpose flag
709 inline const DVecAbsExpr<VT,TF> abs( const DenseVector<VT,TF>& dv )
710 {
712 
713  return DVecAbsExpr<VT,TF>( ~dv );
714 }
715 //*************************************************************************************************
716 
717 
718 
719 
720 //=================================================================================================
721 //
722 // GLOBAL RESTRUCTURING FUNCTIONS
723 //
724 //=================================================================================================
725 
726 //*************************************************************************************************
737 template< typename VT // Type of the dense vector
738  , bool TF > // Transpose flag
739 inline const DVecAbsExpr<VT,TF>& abs( const DVecAbsExpr<VT,TF>& dv )
740 {
742 
743  return dv;
744 }
746 //*************************************************************************************************
747 
748 
749 
750 
751 //=================================================================================================
752 //
753 // EXPRESSION TRAIT SPECIALIZATIONS
754 //
755 //=================================================================================================
756 
757 //*************************************************************************************************
759 template< typename VT >
760 struct DVecAbsExprTrait< DVecAbsExpr<VT,false> >
761 {
762  public:
763  //**********************************************************************************************
764  typedef typename SelectType< IsDenseVector<VT>::value && IsColumnVector<VT>::value
765  , DVecAbsExpr<VT,false>
766  , INVALID_TYPE >::Type Type;
767  //**********************************************************************************************
768 };
770 //*************************************************************************************************
771 
772 
773 //*************************************************************************************************
775 template< typename VT >
776 struct TDVecAbsExprTrait< DVecAbsExpr<VT,true> >
777 {
778  public:
779  //**********************************************************************************************
780  typedef typename SelectType< IsDenseVector<VT>::value && IsRowVector<VT>::value
781  , DVecAbsExpr<VT,true>
782  , INVALID_TYPE >::Type Type;
783  //**********************************************************************************************
784 };
786 //*************************************************************************************************
787 
788 
789 //*************************************************************************************************
791 template< typename VT, bool TF >
792 struct SubvectorExprTrait< DVecAbsExpr<VT,TF> >
793 {
794  public:
795  //**********************************************************************************************
796  typedef typename AbsExprTrait< typename SubvectorExprTrait<const VT>::Type >::Type Type;
797  //**********************************************************************************************
798 };
800 //*************************************************************************************************
801 
802 } // namespace blaze
803 
804 #endif
ConstIterator begin() const
Returns an iterator to the first non-zero element of the dense vector.
Definition: DVecAbsExpr.h:440
Pointer difference type of the Blaze library.
Compile time check whether the given type is a computational expression template.This type trait clas...
Definition: IsComputation.h:89
DVecAbsExpr(const VT &dv)
Constructor for the DVecAbsExpr class.
Definition: DVecAbsExpr.h:403
VT::ResultType ResultType
Result type for expression template evaluations.
Definition: DVecAbsExpr.h:133
Compile time check whether the given type is a temporary vector or matrix type.This type trait class ...
Definition: IsTemporary.h:87
Efficient implementation of a compressed matrix.The CompressedMatrix class template is the represent...
Definition: CompressedMatrix.h:196
Header file for the IsRowVector type trait.
friend const ConstIterator operator+(size_t inc, const ConstIterator &it)
Addition between an integral value and a ConstIterator.
Definition: DVecAbsExpr.h:365
Header file for the DenseVector base class.
const DMatAbsExpr< MT, SO > abs(const DenseMatrix< MT, SO > &dm)
Returns a matrix containing the absolute values of each single element of dm.
Definition: DMatAbsExpr.h:739
friend const ConstIterator operator+(const ConstIterator &it, size_t inc)
Addition between a ConstIterator and an integral value.
Definition: DVecAbsExpr.h:353
ReturnType operator[](size_t index) const
Subscript operator for the direct access to the vector elements.
Definition: DVecAbsExpr.h:414
std::random_access_iterator_tag IteratorCategory
The iterator category.
Definition: DVecAbsExpr.h:155
bool canAlias(const T *alias) const
Returns whether the expression can alias with the given address alias.
Definition: DVecAbsExpr.h:482
Header file for the Computation base class.
const ConstIterator operator--(int)
Post-decrement operator.
Definition: DVecAbsExpr.h:243
Expression object for the dense vector abs() function.The DVecAbsExpr class represents the compile ti...
Definition: DVecAbsExpr.h:88
Header file for the RequiresEvaluation type trait.
ConstIterator end() const
Returns an iterator just past the last non-zero element of the dense vector.
Definition: DVecAbsExpr.h:450
Header file for the TDVecAbsExprTrait class template.
Constraint on the data type.
bool operator==(const ConstIterator &rhs) const
Equality comparison between two ConstIterator objects.
Definition: DVecAbsExpr.h:275
Compile time check to query the requirement to evaluate an expression.Via this type trait it is possi...
Definition: RequiresEvaluation.h:90
const This & CompositeType
Data type for composite expression templates.
Definition: CompressedMatrix.h:250
DifferenceType difference_type
Difference between two iterators.
Definition: DVecAbsExpr.h:166
size_t size() const
Returns the current size/dimension of the vector.
Definition: DVecAbsExpr.h:460
Compile time type selection.The SelectType class template selects one of the two given types T1 and T...
Definition: SelectType.h:59
Header file for the IsTemporary type trait class.
friend const ConstIterator operator-(const ConstIterator &it, size_t dec)
Subtraction between a ConstIterator and an integral value.
Definition: DVecAbsExpr.h:377
IteratorType it_
Iterator to the current vector element.
Definition: DVecAbsExpr.h:384
const Element * ConstIterator
Iterator over constant elements.
Definition: CompressedMatrix.h:2379
bool operator<(const ConstIterator &rhs) const
Less-than comparison between two ConstIterator objects.
Definition: DVecAbsExpr.h:297
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:179
Header file for the DVecAbsExprTrait class template.
SelectType< useAssign, const ResultType, const DVecAbsExpr & >::Type CompositeType
Data type for composite expression templates.
Definition: DVecAbsExpr.h:142
Base class for N-dimensional dense vectors.The DenseVector class is a base class for all arbitrarily ...
Definition: DenseVector.h:70
Header file for the VecAbsExpr base class.
Constraint on the data type.
#define BLAZE_CONSTRAINT_MUST_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:78
IntrinsicType load() const
Access to the intrinsic elements of the vector.
Definition: DVecAbsExpr.h:264
CompressedMatrix< Type, false > TransposeType
Transpose type for expression template evaluations.
Definition: CompressedMatrix.h:2372
Constraint on the data type.
SelectType< IsExpression< VT >::value, const VT, const VT & >::Type Operand
Composite data type of the dense vector expression.
Definition: DVecAbsExpr.h:145
Base class for all vector absolute value expression templates.The VecAbsExpr class serves as a tag fo...
Definition: VecAbsExpr.h:65
IteratorCategory iterator_category
The iterator category.
Definition: DVecAbsExpr.h:162
Type ElementType
Type of the sparse matrix elements.
Definition: CompressedMatrix.h:2373
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:269
Header file for the SelectType class template.
Header file for all forward declarations for expression class templates.
Header file for the EnableIf class template.
Operand dv_
Dense vector of the absolute value expression.
Definition: DVecAbsExpr.h:501
bool operator>=(const ConstIterator &rhs) const
Greater-than comparison between two ConstIterator objects.
Definition: DVecAbsExpr.h:330
ReferenceType reference
Reference return type.
Definition: DVecAbsExpr.h:165
ElementType * PointerType
Pointer return type.
Definition: DVecAbsExpr.h:157
const Type & ReturnType
Return type for expression template evaluations.
Definition: CompressedMatrix.h:2374
Intrinsic characteristics of data types.The IntrinsicTrait class template provides the intrinsic char...
Definition: IntrinsicTrait.h:648
IntrinsicTrait< ET >::Type IntrinsicType
Resulting intrinsic element type.
Definition: DVecAbsExpr.h:136
Header file for run time assertion macros.
ConstIterator & operator-=(size_t dec)
Subtraction assignment operator.
Definition: DVecAbsExpr.h:200
ConstIterator & operator+=(size_t inc)
Addition assignment operator.
Definition: DVecAbsExpr.h:188
Utility type for generic codes.
DVecAbsExpr< VT, TF > This
Type of this DVecAbsExpr instance.
Definition: DVecAbsExpr.h:132
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:209
VT::ElementType ElementType
Resulting element type.
Definition: DVecAbsExpr.h:135
bool isAliased(const T *alias) const
Returns whether the expression is aliased with the given address alias.
Definition: DVecAbsExpr.h:494
Substitution Failure Is Not An Error (SFINAE) class.The EnableIf class template is an auxiliary tool ...
Definition: EnableIf.h:184
bool operator>(const ConstIterator &rhs) const
Greater-than comparison between two ConstIterator objects.
Definition: DVecAbsExpr.h:308
ValueType value_type
Type of the underlying elements.
Definition: DVecAbsExpr.h:163
bool operator!=(const ConstIterator &rhs) const
Inequality comparison between two ConstIterator objects.
Definition: DVecAbsExpr.h:286
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:239
ElementType ValueType
Type of the underlying elements.
Definition: DVecAbsExpr.h:156
ConstIterator & operator++()
Pre-increment operator.
Definition: DVecAbsExpr.h:211
IntrinsicType load(size_t index) const
Access to the intrinsic elements of the vector.
Definition: DVecAbsExpr.h:427
VT::TransposeType TransposeType
Transpose type for expression template evaluations.
Definition: DVecAbsExpr.h:134
ConstIterator(IteratorType it)
Constructor for the ConstIterator class.
Definition: DVecAbsExpr.h:177
ReturnType operator*() const
Direct access to the element at the current iterator position.
Definition: DVecAbsExpr.h:253
ptrdiff_t DifferenceType
Difference between two iterators.
Definition: DVecAbsExpr.h:159
Header file for the IsDenseVector type trait.
Header file for all intrinsic functionality.
#define BLAZE_CONSTRAINT_MUST_BE_DENSE_VECTOR_TYPE(T)
Constraint on the data type.In case the given data type T is not a dense, N-dimensional vector type...
Definition: DenseVector.h:79
PointerType pointer
Pointer return type.
Definition: DVecAbsExpr.h:164
Iterator over the elements of the dense vector.
Definition: DVecAbsExpr.h:151
Header file for the IsComputation type trait class.
Operand operand() const
Returns the dense vector operand.
Definition: DVecAbsExpr.h:470
AbsExprTrait< RN >::Type ExprReturnType
Expression return type for the subscript operator.
Definition: DVecAbsExpr.h:108
Base class for all compute expression templates.The Computation class serves as a tag for all computa...
Definition: Computation.h:59
DifferenceType operator-(const ConstIterator &rhs) const
Calculating the number of elements between two iterators.
Definition: DVecAbsExpr.h:341
const ConstIterator operator++(int)
Post-increment operator.
Definition: DVecAbsExpr.h:222
Base class for sparse vectors.The SparseVector class is a base class for all arbitrarily sized (N-dim...
Definition: Forward.h:105
#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
This ResultType
Result type for expression template evaluations.
Definition: CompressedMatrix.h:2370
Header file for basic type definitions.
const SelectType< returnExpr, ExprReturnType, ElementType >::Type ReturnType
Return type for expression template evaluations.
Definition: DVecAbsExpr.h:139
Header file for the SubvectorExprTrait class template.
ElementType & ReferenceType
Reference return type.
Definition: DVecAbsExpr.h:158
ConstIterator & operator--()
Pre-decrement operator.
Definition: DVecAbsExpr.h:232
Header file for the AbsExprTrait class template.
Header file for the IsColumnVector type trait.
Evaluation of the return type of an absolute value expression.Via this type trait it is possible to e...
Definition: AbsExprTrait.h:86
VT::ConstIterator IteratorType
ConstIterator type of the left-hand side dense vector expression.
Definition: DVecAbsExpr.h:169
bool operator<=(const ConstIterator &rhs) const
Less-than comparison between two ConstIterator objects.
Definition: DVecAbsExpr.h:319
VT::ReturnType RN
Return type of the dense vector expression.
Definition: DVecAbsExpr.h:94
#define BLAZE_CONSTRAINT_MUST_BE_VECTOR_WITH_TRANSPOSE_FLAG(T, TF)
Constraint on the data type.In case the given data type T is not a dense or sparse vector type and in...
Definition: TransposeFlag.h:238
#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
VT::ElementType ET
Element type of the dense vector expression.
Definition: DVecAbsExpr.h:95
Header file for the IsExpression type trait class.
Header file for the FunctionTrace class.