All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DMatTransExpr.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_EXPRESSIONS_DMATTRANSEXPR_H_
36 #define _BLAZE_MATH_EXPRESSIONS_DMATTRANSEXPR_H_
37 
38 
39 //*************************************************************************************************
40 // Includes
41 //*************************************************************************************************
42 
59 #include <blaze/util/Assert.h>
61 #include <blaze/util/EmptyType.h>
62 #include <blaze/util/EnableIf.h>
64 #include <blaze/util/SelectType.h>
65 #include <blaze/util/Types.h>
66 
67 
68 namespace blaze {
69 
70 //=================================================================================================
71 //
72 // CLASS DMATTRANSEXPR
73 //
74 //=================================================================================================
75 
76 //*************************************************************************************************
83 template< typename MT // Type of the dense matrix
84  , bool SO > // Storage order
85 class DMatTransExpr : public DenseMatrix< DMatTransExpr<MT,SO>, SO >
86  , private MatTransExpr
87  , private SelectType< IsComputation<MT>::value, Computation, EmptyType >::Type
88 {
89  private:
90  //**Type definitions****************************************************************************
91  typedef typename MT::ResultType RT;
92  typedef typename MT::CompositeType CT;
93  //**********************************************************************************************
94 
95  //**********************************************************************************************
97 
103  enum { useAssign = RequiresEvaluation<MT>::value };
104  //**********************************************************************************************
105 
106  //**********************************************************************************************
108  template< typename MT2 >
110  struct UseAssign {
111  enum { value = useAssign };
112  };
114  //**********************************************************************************************
115 
116  public:
117  //**Type definitions****************************************************************************
119  typedef typename MT::TransposeType ResultType;
121  typedef typename MT::ResultType TransposeType;
122  typedef typename MT::ElementType ElementType;
124  typedef typename MT::ReturnType ReturnType;
125 
128 
130  typedef typename SelectType< IsExpression<MT>::value, const MT, const MT& >::Type Operand;
131  //**********************************************************************************************
132 
133  //**ConstIterator class definition**************************************************************
137  {
138  public:
139  //**Type definitions*************************************************************************
140  typedef std::random_access_iterator_tag IteratorCategory;
145 
146  // STL iterator requirements
152 
154  typedef typename MT::ConstIterator IteratorType;
155  //*******************************************************************************************
156 
157  //**Constructor******************************************************************************
162  explicit inline ConstIterator( IteratorType iterator )
163  : iterator_( iterator ) // Iterator to the current element
164  {}
165  //*******************************************************************************************
166 
167  //**Addition assignment operator*************************************************************
173  inline ConstIterator& operator+=( size_t inc ) {
174  iterator_ += inc;
175  return *this;
176  }
177  //*******************************************************************************************
178 
179  //**Subtraction assignment operator**********************************************************
185  inline ConstIterator& operator-=( size_t dec ) {
186  iterator_ -= dec;
187  return *this;
188  }
189  //*******************************************************************************************
190 
191  //**Prefix increment operator****************************************************************
197  ++iterator_;
198  return *this;
199  }
200  //*******************************************************************************************
201 
202  //**Postfix increment operator***************************************************************
207  inline const ConstIterator operator++( int ) {
208  return ConstIterator( iterator_++ );
209  }
210  //*******************************************************************************************
211 
212  //**Prefix decrement operator****************************************************************
218  --iterator_;
219  return *this;
220  }
221  //*******************************************************************************************
222 
223  //**Postfix decrement operator***************************************************************
228  inline const ConstIterator operator--( int ) {
229  return ConstIterator( iterator_-- );
230  }
231  //*******************************************************************************************
232 
233  //**Element access operator******************************************************************
238  inline ReturnType operator*() const {
239  return *iterator_;
240  }
241  //*******************************************************************************************
242 
243  //**Load function****************************************************************************
248  inline IntrinsicType load() const {
249  return iterator_.load();
250  }
251  //*******************************************************************************************
252 
253  //**Equality operator************************************************************************
259  inline bool operator==( const ConstIterator& rhs ) const {
260  return iterator_ == rhs.iterator_;
261  }
262  //*******************************************************************************************
263 
264  //**Inequality operator**********************************************************************
270  inline bool operator!=( const ConstIterator& rhs ) const {
271  return iterator_ != rhs.iterator_;
272  }
273  //*******************************************************************************************
274 
275  //**Less-than operator***********************************************************************
281  inline bool operator<( const ConstIterator& rhs ) const {
282  return iterator_ < rhs.iterator_;
283  }
284  //*******************************************************************************************
285 
286  //**Greater-than operator********************************************************************
292  inline bool operator>( const ConstIterator& rhs ) const {
293  return iterator_ > rhs.iterator_;
294  }
295  //*******************************************************************************************
296 
297  //**Less-or-equal-than operator**************************************************************
303  inline bool operator<=( const ConstIterator& rhs ) const {
304  return iterator_ <= rhs.iterator_;
305  }
306  //*******************************************************************************************
307 
308  //**Greater-or-equal-than operator***********************************************************
314  inline bool operator>=( const ConstIterator& rhs ) const {
315  return iterator_ >= rhs.iterator_;
316  }
317  //*******************************************************************************************
318 
319  //**Subtraction operator*********************************************************************
325  inline DifferenceType operator-( const ConstIterator& rhs ) const {
326  return iterator_ - rhs.iterator_;
327  }
328  //*******************************************************************************************
329 
330  //**Addition operator************************************************************************
337  friend inline const ConstIterator operator+( const ConstIterator& it, size_t inc ) {
338  return ConstIterator( it.iterator_ + inc );
339  }
340  //*******************************************************************************************
341 
342  //**Addition operator************************************************************************
349  friend inline const ConstIterator operator+( size_t inc, const ConstIterator& it ) {
350  return ConstIterator( it.iterator_ + inc );
351  }
352  //*******************************************************************************************
353 
354  //**Subtraction operator*********************************************************************
361  friend inline const ConstIterator operator-( const ConstIterator& it, size_t dec ) {
362  return ConstIterator( it.iterator_ - dec );
363  }
364  //*******************************************************************************************
365 
366  private:
367  //**Member variables*************************************************************************
369  //*******************************************************************************************
370  };
371  //**********************************************************************************************
372 
373  //**Compilation flags***************************************************************************
375  enum { vectorizable = MT::vectorizable };
376 
378  enum { smpAssignable = MT::smpAssignable };
379  //**********************************************************************************************
380 
381  //**Constructor*********************************************************************************
386  explicit inline DMatTransExpr( const MT& dm )
387  : dm_( dm ) // Dense matrix of the transposition expression
388  {}
389  //**********************************************************************************************
390 
391  //**Access operator*****************************************************************************
398  inline ReturnType operator()( size_t i, size_t j ) const {
399  BLAZE_INTERNAL_ASSERT( i < dm_.columns(), "Invalid row access index" );
400  BLAZE_INTERNAL_ASSERT( j < dm_.rows() , "Invalid column access index" );
401  return dm_(j,i);
402  }
403  //**********************************************************************************************
404 
405  //**Load function*******************************************************************************
412  inline IntrinsicType load( size_t i, size_t j ) const {
413  typedef IntrinsicTrait<ElementType> IT;
414  BLAZE_INTERNAL_ASSERT( i < dm_.columns(), "Invalid row access index" );
415  BLAZE_INTERNAL_ASSERT( j < dm_.rows() , "Invalid column access index" );
416  BLAZE_INTERNAL_ASSERT( !SO || ( i % IT::size == 0UL ), "Invalid row access index" );
417  BLAZE_INTERNAL_ASSERT( SO || ( j % IT::size == 0UL ), "Invalid column access index" );
418  return dm_.load(j,i);
419  }
420  //**********************************************************************************************
421 
422  //**Low-level data access***********************************************************************
427  inline const ElementType* data() const {
428  return dm_.data();
429  }
430  //**********************************************************************************************
431 
432  //**Begin function******************************************************************************
438  inline ConstIterator begin( size_t i ) const {
439  return ConstIterator( dm_.begin(i) );
440  }
441  //**********************************************************************************************
442 
443  //**End function********************************************************************************
449  inline ConstIterator end( size_t i ) const {
450  return ConstIterator( dm_.end(i) );
451  }
452  //**********************************************************************************************
453 
454  //**Rows function*******************************************************************************
459  inline size_t rows() const {
460  return dm_.columns();
461  }
462  //**********************************************************************************************
463 
464  //**Columns function****************************************************************************
469  inline size_t columns() const {
470  return dm_.rows();
471  }
472  //**********************************************************************************************
473 
474  //**Spacing function****************************************************************************
479  inline size_t spacing() const {
480  return dm_.spacing();
481  }
482  //**********************************************************************************************
483 
484  //**Operand access******************************************************************************
489  inline Operand operand() const {
490  return dm_;
491  }
492  //**********************************************************************************************
493 
494  //**********************************************************************************************
500  template< typename T >
501  inline bool canAlias( const T* alias ) const {
502  return dm_.canAlias( alias );
503  }
504  //**********************************************************************************************
505 
506  //**********************************************************************************************
512  template< typename T >
513  inline bool isAliased( const T* alias ) const {
514  return dm_.isAliased( alias );
515  }
516  //**********************************************************************************************
517 
518  //**********************************************************************************************
523  inline bool isAligned() const {
524  return dm_.isAligned();
525  }
526  //**********************************************************************************************
527 
528  //**********************************************************************************************
533  inline bool canSMPAssign() const {
534  return dm_.canSMPAssign();
535  }
536  //**********************************************************************************************
537 
538  private:
539  //**Member variables****************************************************************************
541  //**********************************************************************************************
542 
543  //**Assignment to dense matrices****************************************************************
557  template< typename MT2 // Type of the target dense matrix
558  , bool SO2 > // Storage order of the target dense matrix
559  friend inline typename EnableIf< UseAssign<MT2> >::Type
560  assign( DenseMatrix<MT2,SO2>& lhs, const DMatTransExpr& rhs )
561  {
563 
564  BLAZE_INTERNAL_ASSERT( (~lhs).rows() == rhs.rows() , "Invalid number of rows" );
565  BLAZE_INTERNAL_ASSERT( (~lhs).columns() == rhs.columns(), "Invalid number of columns" );
566 
567  DMatTransposer<MT2,!SO2> tmp( ~lhs );
568  assign( tmp, rhs.dm_ );
569  }
571  //**********************************************************************************************
572 
573  //**Assignment to sparse matrices***************************************************************
587  template< typename MT2 // Type of the target sparse matrix
588  , bool SO2 > // Storage order of the target sparse matrix
589  friend inline typename EnableIf< UseAssign<MT2> >::Type
590  assign( SparseMatrix<MT2,SO2>& lhs, const DMatTransExpr& rhs )
591  {
593 
595 
602 
603  BLAZE_INTERNAL_ASSERT( (~lhs).rows() == rhs.rows() , "Invalid number of rows" );
604  BLAZE_INTERNAL_ASSERT( (~lhs).columns() == rhs.columns(), "Invalid number of columns" );
605 
606  const TmpType tmp( rhs );
607  assign( ~lhs, tmp );
608  }
610  //**********************************************************************************************
611 
612  //**Addition assignment to dense matrices*******************************************************
626  template< typename MT2 // Type of the target dense matrix
627  , bool SO2 > // Storage order of the target dense matrix
628  friend inline typename EnableIf< UseAssign<MT2> >::Type
629  addAssign( DenseMatrix<MT2,SO2>& lhs, const DMatTransExpr& rhs )
630  {
632 
633  BLAZE_INTERNAL_ASSERT( (~lhs).rows() == rhs.rows() , "Invalid number of rows" );
634  BLAZE_INTERNAL_ASSERT( (~lhs).columns() == rhs.columns(), "Invalid number of columns" );
635 
636  DMatTransposer<MT2,!SO2> tmp( ~lhs );
637  addAssign( tmp, rhs.dm_ );
638  }
640  //**********************************************************************************************
641 
642  //**Addition assignment to sparse matrices******************************************************
643  // No special implementation for the addition assignment to sparse matrices.
644  //**********************************************************************************************
645 
646  //**Subtraction assignment to dense matrices****************************************************
660  template< typename MT2 // Type of the target dense matrix
661  , bool SO2 > // Storage order of the target dense matrix
662  friend inline typename EnableIf< UseAssign<MT2> >::Type
663  subAssign( DenseMatrix<MT2,SO2>& lhs, const DMatTransExpr& rhs )
664  {
666 
667  BLAZE_INTERNAL_ASSERT( (~lhs).rows() == rhs.rows() , "Invalid number of rows" );
668  BLAZE_INTERNAL_ASSERT( (~lhs).columns() == rhs.columns(), "Invalid number of columns" );
669 
670  DMatTransposer<MT2,!SO2> tmp( ~lhs );
671  subAssign( tmp, rhs.dm_ );
672  }
674  //**********************************************************************************************
675 
676  //**Subtraction assignment to sparse matrices***************************************************
677  // No special implementation for the subtraction assignment to sparse matrices.
678  //**********************************************************************************************
679 
680  //**Multiplication assignment to dense matrices*************************************************
681  // No special implementation for the multiplication assignment to dense matrices.
682  //**********************************************************************************************
683 
684  //**Multiplication assignment to sparse matrices************************************************
685  // No special implementation for the multiplication assignment to sparse matrices.
686  //**********************************************************************************************
687 
688  //**Trans function******************************************************************************
704  template< typename MT2 // Type of the dense matrix
705  , bool SO2 > // Storage order of the dense matrix
706  friend inline Operand trans( const DMatTransExpr<MT2,SO2>& dm )
707  {
709 
710  return dm.dm_;
711  }
713  //**********************************************************************************************
714 
715  //**Compile time checks*************************************************************************
720  //**********************************************************************************************
721 };
722 //*************************************************************************************************
723 
724 
725 
726 
727 //=================================================================================================
728 //
729 // GLOBAL OPERATORS
730 //
731 //=================================================================================================
732 
733 //*************************************************************************************************
749 template< typename MT // Type of the dense matrix
750  , bool SO > // Storage order
752 {
754 
755  return DMatTransExpr<MT,!SO>( ~dm );
756 }
757 //*************************************************************************************************
758 
759 
760 
761 
762 //=================================================================================================
763 //
764 // EXPRESSION TRAIT SPECIALIZATIONS
765 //
766 //=================================================================================================
767 
768 //*************************************************************************************************
770 template< typename MT, bool SO, bool AF >
771 struct SubmatrixExprTrait< DMatTransExpr<MT,SO>, AF >
772 {
773  public:
774  //**********************************************************************************************
775  typedef typename TransExprTrait< typename SubmatrixExprTrait<const MT,AF>::Type >::Type Type;
776  //**********************************************************************************************
777 };
779 //*************************************************************************************************
780 
781 
782 //*************************************************************************************************
784 template< typename MT, bool SO >
785 struct RowExprTrait< DMatTransExpr<MT,SO> >
786 {
787  public:
788  //**********************************************************************************************
789  typedef typename TransExprTrait< typename ColumnExprTrait<const MT>::Type >::Type Type;
790  //**********************************************************************************************
791 };
793 //*************************************************************************************************
794 
795 
796 //*************************************************************************************************
798 template< typename MT, bool SO >
799 struct ColumnExprTrait< DMatTransExpr<MT,SO> >
800 {
801  public:
802  //**********************************************************************************************
803  typedef typename TransExprTrait< typename RowExprTrait<const MT>::Type >::Type Type;
804  //**********************************************************************************************
805 };
807 //*************************************************************************************************
808 
809 } // namespace blaze
810 
811 #endif
Pointer difference type of the Blaze library.
ConstIterator & operator-=(size_t dec)
Subtraction assignment operator.
Definition: DMatTransExpr.h:185
ConstIterator & operator++()
Pre-increment operator.
Definition: DMatTransExpr.h:196
IteratorCategory iterator_category
The iterator category.
Definition: DMatTransExpr.h:147
DMatTransExpr(const MT &dm)
Constructor for the DMatTransExpr class.
Definition: DMatTransExpr.h:386
ConstIterator & operator+=(size_t inc)
Addition assignment operator.
Definition: DMatTransExpr.h:173
SelectType< useAssign, const ResultType, const DMatTransExpr & >::Type CompositeType
Data type for composite expression templates.
Definition: DMatTransExpr.h:127
const DMatTransExpr< MT,!SO > trans(const DenseMatrix< MT, SO > &dm)
Calculation of the transpose of the given dense matrix.
Definition: DMatTransExpr.h:751
Expression object for dense matrix transpositions.The DMatTransExpr class represents the compile time...
Definition: DMatTransExpr.h:85
#define BLAZE_CONSTRAINT_MUST_BE_MATRIX_WITH_STORAGE_ORDER(T, SO)
Constraint on the data type.In case the given data type T is not a dense or sparse matrix type and in...
Definition: StorageOrder.h:242
Efficient implementation of a compressed matrix.The CompressedMatrix class template is the represent...
Definition: CompressedMatrix.h:197
Header file for the MatTransExpr base class.
#define BLAZE_CONSTRAINT_MUST_BE_DENSE_MATRIX_TYPE(T)
Constraint on the data type.In case the given data type T is not a dense, N-dimensional matrix type...
Definition: DenseMatrix.h:79
Header file for the ColumnExprTrait class template.
friend const ConstIterator operator+(size_t inc, const ConstIterator &it)
Addition between an integral value and a ConstIterator.
Definition: DMatTransExpr.h:349
ResultType::OppositeType OppositeType
Result type with opposite storage order for expression template evaluations.
Definition: DMatTransExpr.h:120
Header file for the sparse matrix SMP implementation.
const This & CompositeType
Data type for composite expression templates.
Definition: CompressedMatrix.h:2384
IntrinsicType load(size_t i, size_t j) const
Access to the intrinsic elements of the matrix.
Definition: DMatTransExpr.h:412
MT::ConstIterator IteratorType
ConstIterator type of the dense matrix expression.
Definition: DMatTransExpr.h:154
Header file for the Computation base class.
bool isAligned() const
Returns whether the operands of the expression are properly aligned in memory.
Definition: DMatTransExpr.h:523
Header file for the RequiresEvaluation type trait.
Operand dm_
Dense matrix of the transposition expression.
Definition: DMatTransExpr.h:540
Operand operand() const
Returns the dense matrix operand.
Definition: DMatTransExpr.h:489
ReferenceType reference
Reference return type.
Definition: DMatTransExpr.h:150
ConstIterator begin(size_t i) const
Returns an iterator to the first non-zero element of row/column i.
Definition: DMatTransExpr.h:438
Base class for dense matrices.The DenseMatrix class is a base class for all dense matrix classes...
Definition: DenseMatrix.h:70
Base class for sparse matrices.The SparseMatrix class is a base class for all sparse matrix classes...
Definition: Forward.h:104
MT::TransposeType ResultType
Result type for expression template evaluations.
Definition: DMatTransExpr.h:119
Constraint on the data type.
const ConstIterator operator--(int)
Post-decrement operator.
Definition: DMatTransExpr.h:228
Constraint on the data type.
MT::ElementType ElementType
Resulting element type.
Definition: DMatTransExpr.h:122
Compile time check to query the requirement to evaluate an expression.Via this type trait it is possi...
Definition: RequiresEvaluation.h:90
IntrinsicType load() const
Access to the intrinsic elements of the matrix.
Definition: DMatTransExpr.h:248
friend const ConstIterator operator+(const ConstIterator &it, size_t inc)
Addition between a ConstIterator and an integral value.
Definition: DMatTransExpr.h:337
bool isAliased(const T *alias) const
Returns whether the expression is aliased with the given address alias.
Definition: DMatTransExpr.h:513
ValueType value_type
Type of the underlying elements.
Definition: DMatTransExpr.h:148
ConstIterator(IteratorType iterator)
Constructor for the ConstIterator class.
Definition: DMatTransExpr.h:162
Compile time type selection.The SelectType class template selects one of the two given types T1 and T...
Definition: SelectType.h:59
PointerType pointer
Pointer return type.
Definition: DMatTransExpr.h:149
ptrdiff_t DifferenceType
Difference between two iterators.
Definition: DMatTransExpr.h:144
bool operator!=(const ConstIterator &rhs) const
Inequality comparison between two ConstIterator objects.
Definition: DMatTransExpr.h:270
SelectType< IsExpression< MT >::value, const MT, const MT & >::Type Operand
Composite data type of the dense matrix expression.
Definition: DMatTransExpr.h:130
const Element * ConstIterator
Iterator over constant elements.
Definition: CompressedMatrix.h:2388
Header file for the dense matrix SMP implementation.
Header file for the DenseMatrix base class.
IteratorType iterator_
Iterator to the current element.
Definition: DMatTransExpr.h:368
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
Expression object for the transposition of a dense matrix.The DMatTransposer class is a wrapper objec...
Definition: DMatTransposer.h:71
IntrinsicTrait< ElementType >::Type IntrinsicType
Resulting intrinsic element type.
Definition: DMatTransExpr.h:123
MT::ResultType RT
Result type of the dense matrix expression.
Definition: DMatTransExpr.h:91
MT::ResultType TransposeType
Transpose type for expression template evaluations.
Definition: DMatTransExpr.h:121
ConstIterator & operator--()
Pre-decrement operator.
Definition: DMatTransExpr.h:217
#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
const ElementType * data() const
Low-level data access to the matrix elements.
Definition: DMatTransExpr.h:427
DifferenceType difference_type
Difference between two iterators.
Definition: DMatTransExpr.h:151
CompressedMatrix< Type, false > TransposeType
Transpose type for expression template evaluations.
Definition: CompressedMatrix.h:2381
Constraints on the storage order of matrix types.
Type ElementType
Type of the sparse matrix elements.
Definition: CompressedMatrix.h:2382
Header file for the SelectType class template.
Header file for the RowExprTrait class template.
Header file for all forward declarations for expression class templates.
bool operator>=(const ConstIterator &rhs) const
Greater-than comparison between two ConstIterator objects.
Definition: DMatTransExpr.h:314
Header file for the EnableIf class template.
ElementType * PointerType
Pointer return type.
Definition: DMatTransExpr.h:142
DifferenceType operator-(const ConstIterator &rhs) const
Calculating the number of elements between two iterators.
Definition: DMatTransExpr.h:325
friend const ConstIterator operator-(const ConstIterator &it, size_t dec)
Subtraction between a ConstIterator and an integral value.
Definition: DMatTransExpr.h:361
Header file for the dense matrix transposer.
size_t spacing() const
Returns the spacing between the beginning of two rows/columns.
Definition: DMatTransExpr.h:479
Header file for the SubmatrixExprTrait class template.
const Type & ReturnType
Return type for expression template evaluations.
Definition: CompressedMatrix.h:2383
Intrinsic characteristics of data types.The IntrinsicTrait class template provides the intrinsic char...
Definition: IntrinsicTrait.h:748
Header file for run time assertion macros.
ElementType ValueType
Type of the underlying elements.
Definition: DMatTransExpr.h:141
size_t rows() const
Returns the current number of rows of the matrix.
Definition: DMatTransExpr.h:459
size_t columns() const
Returns the current number of columns of the matrix.
Definition: DMatTransExpr.h:469
bool operator==(const ConstIterator &rhs) const
Equality comparison between two ConstIterator objects.
Definition: DMatTransExpr.h:259
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
Substitution Failure Is Not An Error (SFINAE) class.The EnableIf class template is an auxiliary tool ...
Definition: EnableIf.h:184
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
Header file for the TransExprTrait class template.
Base class for all matrix transposition expression templates.The MatTransExpr class serves as a tag f...
Definition: MatTransExpr.h:65
ReturnType operator()(size_t i, size_t j) const
2D-access to the matrix elements.
Definition: DMatTransExpr.h:398
ConstIterator end(size_t i) const
Returns an iterator just past the last non-zero element of row/column i.
Definition: DMatTransExpr.h:449
const ConstIterator operator++(int)
Post-increment operator.
Definition: DMatTransExpr.h:207
#define BLAZE_CONSTRAINT_MATRICES_MUST_HAVE_SAME_STORAGE_ORDER(T1, T2)
Constraint on the data type.In case either of the two given data types T1 or T2 is not a matrix type ...
Definition: StorageOrder.h:283
ElementType & ReferenceType
Reference return type.
Definition: DMatTransExpr.h:143
Iterator over the elements of the dense matrix.
Definition: DMatTransExpr.h:136
ReturnType operator*() const
Direct access to the element at the current iterator position.
Definition: DMatTransExpr.h:238
Header file for the IsComputation type trait class.
std::random_access_iterator_tag IteratorCategory
The iterator category.
Definition: DMatTransExpr.h:140
bool operator<=(const ConstIterator &rhs) const
Less-than comparison between two ConstIterator objects.
Definition: DMatTransExpr.h:303
MT::CompositeType CT
Composite type of the dense matrix expression.
Definition: DMatTransExpr.h:92
#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:2379
Header file for basic type definitions.
bool canSMPAssign() const
Returns whether the expression can be used in SMP assignments.
Definition: DMatTransExpr.h:533
MT::ReturnType ReturnType
Return type for expression template evaluations.
Definition: DMatTransExpr.h:124
Header file for the empty type.
DMatTransExpr< MT, SO > This
Type of this DMatTransExpr instance.
Definition: DMatTransExpr.h:118
bool operator>(const ConstIterator &rhs) const
Greater-than comparison between two ConstIterator objects.
Definition: DMatTransExpr.h:292
#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
bool canAlias(const T *alias) const
Returns whether the expression can alias with the given address alias.
Definition: DMatTransExpr.h:501
bool operator<(const ConstIterator &rhs) const
Less-than comparison between two ConstIterator objects.
Definition: DMatTransExpr.h:281
Header file for the IsExpression type trait class.
Header file for the FunctionTrace class.