All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SMatTransExpr.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_EXPRESSIONS_SMATTRANSEXPR_H_
36 #define _BLAZE_MATH_EXPRESSIONS_SMATTRANSEXPR_H_
37 
38 
39 //*************************************************************************************************
40 // Includes
41 //*************************************************************************************************
42 
43 #include <iterator>
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>
67 
68 
69 namespace blaze {
70 
71 //=================================================================================================
72 //
73 // CLASS SMATTRANSEXPR
74 //
75 //=================================================================================================
76 
77 //*************************************************************************************************
84 template< typename MT // Type of the sparse matrix
85  , bool SO > // Storage order
86 class SMatTransExpr : public SparseMatrix< SMatTransExpr<MT,SO>, SO >
87  , private MatTransExpr
88  , private SelectType< IsComputation<MT>::value, Computation, EmptyType >::Type
89 {
90  private:
91  //**Type definitions****************************************************************************
92  typedef typename MT::ResultType RT;
93  typedef typename MT::CompositeType CT;
94  //**********************************************************************************************
95 
96  //**Serial evaluation strategy******************************************************************
98 
104  enum { useAssign = RequiresEvaluation<MT>::value };
105 
107  template< typename MT2 >
109  struct UseAssign {
110  enum { value = useAssign };
111  };
113  //**********************************************************************************************
114 
115  //**Parallel evaluation strategy****************************************************************
117 
122  template< typename MT2 >
123  struct UseSMPAssign {
124  enum { value = MT2::smpAssignable && useAssign };
125  };
127  //**********************************************************************************************
128 
129  public:
130  //**Type definitions****************************************************************************
132  typedef typename MT::TransposeType ResultType;
133  typedef typename MT::OppositeType OppositeType;
134  typedef typename MT::ResultType TransposeType;
135  typedef typename MT::ElementType ElementType;
136  typedef typename MT::ReturnType ReturnType;
137 
140 
142  typedef typename SelectType< IsExpression<MT>::value, const MT, const MT& >::Type Operand;
143  //**********************************************************************************************
144 
145  //**ConstIterator class definition**************************************************************
149  {
150  public:
151  //**Type definitions*************************************************************************
154 
155  typedef std::forward_iterator_tag IteratorCategory;
156  typedef typename std::iterator_traits<IteratorType>::value_type ValueType;
157  typedef typename std::iterator_traits<IteratorType>::pointer PointerType;
158  typedef typename std::iterator_traits<IteratorType>::reference ReferenceType;
159  typedef typename std::iterator_traits<IteratorType>::difference_type DifferenceType;
160 
161  // STL iterator requirements
167  //*******************************************************************************************
168 
169  //**Constructor******************************************************************************
173  : it_( it ) // Iterator over the elements of the sparse matrix expression
174  {}
175  //*******************************************************************************************
176 
177  //**Prefix increment operator****************************************************************
183  ++it_;
184  return *this;
185  }
186  //*******************************************************************************************
187 
188  //**Element access operator******************************************************************
193  inline const ValueType operator*() const {
194  return *it_;
195  }
196  //*******************************************************************************************
197 
198  //**Element access operator******************************************************************
203  inline const IteratorType operator->() const {
204  return it_;
205  }
206  //*******************************************************************************************
207 
208  //**Value function***************************************************************************
213  inline ReturnType value() const {
214  return it_->value();
215  }
216  //*******************************************************************************************
217 
218  //**Index function***************************************************************************
223  inline size_t index() const {
224  return it_->index();
225  }
226  //*******************************************************************************************
227 
228  //**Equality operator************************************************************************
234  inline bool operator==( const ConstIterator& rhs ) const {
235  return it_ == rhs.it_;
236  }
237  //*******************************************************************************************
238 
239  //**Inequality operator**********************************************************************
245  inline bool operator!=( const ConstIterator& rhs ) const {
246  return it_ != rhs.it_;
247  }
248  //*******************************************************************************************
249 
250  //**Subtraction operator*********************************************************************
256  inline DifferenceType operator-( const ConstIterator& rhs ) const {
257  return it_ - rhs.it_;
258  }
259  //*******************************************************************************************
260 
261  private:
262  //**Member variables*************************************************************************
264  //*******************************************************************************************
265  };
266  //**********************************************************************************************
267 
268  //**Compilation flags***************************************************************************
270  enum { smpAssignable = MT::smpAssignable };
271  //**********************************************************************************************
272 
273  //**Constructor*********************************************************************************
278  explicit inline SMatTransExpr( const MT& sm )
279  : sm_( sm )
280  {}
281  //**********************************************************************************************
282 
283  //**Access operator*****************************************************************************
290  inline ReturnType operator()( size_t i, size_t j ) const {
291  BLAZE_INTERNAL_ASSERT( i < sm_.columns(), "Invalid row access index" );
292  BLAZE_INTERNAL_ASSERT( j < sm_.rows() , "Invalid column access index" );
293  return sm_(j,i);
294  }
295  //**********************************************************************************************
296 
297  //**Begin function******************************************************************************
303  inline ConstIterator begin( size_t i ) const {
304  return sm_.begin(i);
305  }
306  //**********************************************************************************************
307 
308  //**End function********************************************************************************
314  inline ConstIterator end( size_t i ) const {
315  return sm_.end(i);
316  }
317  //**********************************************************************************************
318 
319  //**Rows function*******************************************************************************
324  inline size_t rows() const {
325  return sm_.columns();
326  }
327  //**********************************************************************************************
328 
329  //**Columns function****************************************************************************
334  inline size_t columns() const {
335  return sm_.rows();
336  }
337  //**********************************************************************************************
338 
339  //**NonZeros function***************************************************************************
344  inline size_t nonZeros() const {
345  return sm_.nonZeros();
346  }
347  //**********************************************************************************************
348 
349  //**Operand access******************************************************************************
354  inline Operand operand() const {
355  return sm_;
356  }
357  //**********************************************************************************************
358 
359  //**********************************************************************************************
365  template< typename T >
366  inline bool canAlias( const T* alias ) const {
367  return sm_.canAlias( alias );
368  }
369  //**********************************************************************************************
370 
371  //**********************************************************************************************
377  template< typename T >
378  inline bool isAliased( const T* alias ) const {
379  return sm_.isAliased( alias );
380  }
381  //**********************************************************************************************
382 
383  //**********************************************************************************************
388  inline bool canSMPAssign() const {
389  return sm_.canSMPAssign();
390  }
391  //**********************************************************************************************
392 
393  private:
394  //**Member variables****************************************************************************
396  //**********************************************************************************************
397 
398  //**Assignment to dense matrices****************************************************************
412  template< typename MT2 // Type of the target dense matrix
413  , bool SO2 > // Storage order of the target dense matrix
414  friend inline typename EnableIf< UseAssign<MT2> >::Type
415  assign( DenseMatrix<MT2,SO2>& lhs, const SMatTransExpr& rhs )
416  {
418 
419  BLAZE_INTERNAL_ASSERT( (~lhs).rows() == rhs.rows() , "Invalid number of rows" );
420  BLAZE_INTERNAL_ASSERT( (~lhs).columns() == rhs.columns(), "Invalid number of columns" );
421 
422  DMatTransposer<MT2,!SO2> tmp( ~lhs );
423  assign( tmp, rhs.sm_ );
424  }
426  //**********************************************************************************************
427 
428  //**Assignment to sparse matrices***************************************************************
442  template< typename MT2 // Type of the target sparse matrix
443  , bool SO2 > // Storage order of the target sparse matrix
444  friend inline typename EnableIf< UseAssign<MT2> >::Type
445  assign( SparseMatrix<MT2,SO2>& lhs, const SMatTransExpr& rhs )
446  {
448 
449  BLAZE_INTERNAL_ASSERT( (~lhs).rows() == rhs.rows() , "Invalid number of rows" );
450  BLAZE_INTERNAL_ASSERT( (~lhs).columns() == rhs.columns(), "Invalid number of columns" );
451 
452  SMatTransposer<MT2,!SO2> tmp( ~lhs );
453  assign( tmp, rhs.sm_ );
454  }
456  //**********************************************************************************************
457 
458  //**Addition assignment to dense matrices*******************************************************
472  template< typename MT2 // Type of the target dense matrix
473  , bool SO2 > // Storage order of the target dense matrix
474  friend inline typename EnableIf< UseAssign<MT2> >::Type
475  addAssign( DenseMatrix<MT2,SO2>& lhs, const SMatTransExpr& rhs )
476  {
478 
479  BLAZE_INTERNAL_ASSERT( (~lhs).rows() == rhs.rows() , "Invalid number of rows" );
480  BLAZE_INTERNAL_ASSERT( (~lhs).columns() == rhs.columns(), "Invalid number of columns" );
481 
482  DMatTransposer<MT2,!SO2> tmp( ~lhs );
483  addAssign( tmp, rhs.sm_ );
484  }
486  //**********************************************************************************************
487 
488  //**Addition assignment to sparse matrices******************************************************
489  // No special implementation for the addition assignment to sparse matrices.
490  //**********************************************************************************************
491 
492  //**Subtraction assignment to dense matrices****************************************************
506  template< typename MT2 // Type of the target dense matrix
507  , bool SO2 > // Storage order of the target dense matrix
508  friend inline typename EnableIf< UseAssign<MT2> >::Type
509  subAssign( DenseMatrix<MT2,SO2>& lhs, const SMatTransExpr& rhs )
510  {
512 
513  BLAZE_INTERNAL_ASSERT( (~lhs).rows() == rhs.rows() , "Invalid number of rows" );
514  BLAZE_INTERNAL_ASSERT( (~lhs).columns() == rhs.columns(), "Invalid number of columns" );
515 
516  DMatTransposer<MT2,!SO2> tmp( ~lhs );
517  subAssign( tmp, rhs.sm_ );
518  }
520  //**********************************************************************************************
521 
522  //**Subtraction assignment to sparse matrices***************************************************
523  // No special implementation for the subtraction assignment to sparse matrices.
524  //**********************************************************************************************
525 
526  //**Multiplication assignment to dense matrices*************************************************
527  // No special implementation for the multiplication assignment to dense matrices.
528  //**********************************************************************************************
529 
530  //**Multiplication assignment to sparse matrices************************************************
531  // No special implementation for the multiplication assignment to sparse matrices.
532  //**********************************************************************************************
533 
534  //**SMP assignment to dense matrices************************************************************
548  template< typename MT2 // Type of the target dense matrix
549  , bool SO2 > // Storage order of the target dense matrix
550  friend inline typename EnableIf< UseSMPAssign<MT2> >::Type
551  smpAssign( DenseMatrix<MT2,SO2>& lhs, const SMatTransExpr& rhs )
552  {
554 
555  BLAZE_INTERNAL_ASSERT( (~lhs).rows() == rhs.rows() , "Invalid number of rows" );
556  BLAZE_INTERNAL_ASSERT( (~lhs).columns() == rhs.columns(), "Invalid number of columns" );
557 
558  DMatTransposer<MT2,!SO2> tmp( ~lhs );
559  smpAssign( tmp, rhs.sm_ );
560  }
562  //**********************************************************************************************
563 
564  //**SMP assignment to sparse matrices***********************************************************
578  template< typename MT2 // Type of the target sparse matrix
579  , bool SO2 > // Storage order of the target sparse matrix
580  friend inline typename EnableIf< UseSMPAssign<MT2> >::Type
581  smpAssign( SparseMatrix<MT2,SO2>& lhs, const SMatTransExpr& rhs )
582  {
584 
585  BLAZE_INTERNAL_ASSERT( (~lhs).rows() == rhs.rows() , "Invalid number of rows" );
586  BLAZE_INTERNAL_ASSERT( (~lhs).columns() == rhs.columns(), "Invalid number of columns" );
587 
588  SMatTransposer<MT2,!SO2> tmp( ~lhs );
589  smpAssign( tmp, rhs.sm_ );
590  }
592  //**********************************************************************************************
593 
594  //**SMP addition assignment to dense matrices***************************************************
608  template< typename MT2 // Type of the target dense matrix
609  , bool SO2 > // Storage order of the target dense matrix
610  friend inline typename EnableIf< UseSMPAssign<MT2> >::Type
611  smpAddAssign( DenseMatrix<MT2,SO2>& lhs, const SMatTransExpr& rhs )
612  {
614 
615  BLAZE_INTERNAL_ASSERT( (~lhs).rows() == rhs.rows() , "Invalid number of rows" );
616  BLAZE_INTERNAL_ASSERT( (~lhs).columns() == rhs.columns(), "Invalid number of columns" );
617 
618  DMatTransposer<MT2,!SO2> tmp( ~lhs );
619  smpAddAssign( tmp, rhs.sm_ );
620  }
622  //**********************************************************************************************
623 
624  //**SMP addition assignment to sparse matrices**************************************************
625  // No special implementation for the SMP addition assignment to sparse matrices.
626  //**********************************************************************************************
627 
628  //**SMP subtraction assignment to dense matrices************************************************
643  template< typename MT2 // Type of the target dense matrix
644  , bool SO2 > // Storage order of the target dense matrix
645  friend inline typename EnableIf< UseSMPAssign<MT2> >::Type
646  smpSubAssign( DenseMatrix<MT2,SO2>& lhs, const SMatTransExpr& rhs )
647  {
649 
650  BLAZE_INTERNAL_ASSERT( (~lhs).rows() == rhs.rows() , "Invalid number of rows" );
651  BLAZE_INTERNAL_ASSERT( (~lhs).columns() == rhs.columns(), "Invalid number of columns" );
652 
653  DMatTransposer<MT2,!SO2> tmp( ~lhs );
654  smpSubAssign( tmp, rhs.sm_ );
655  }
657  //**********************************************************************************************
658 
659  //**SMP subtraction assignment to sparse matrices***********************************************
660  // No special implementation for the SMP subtraction assignment to sparse matrices.
661  //**********************************************************************************************
662 
663  //**SMP multiplication assignment to dense matrices*********************************************
664  // No special implementation for the SMP multiplication assignment to dense matrices.
665  //**********************************************************************************************
666 
667  //**SMP multiplication assignment to sparse matrices********************************************
668  // No special implementation for the SMP multiplication assignment to sparse matrices.
669  //**********************************************************************************************
670 
671  //**Trans function******************************************************************************
687  template< typename MT2 // Type of the sparse matrix
688  , bool SO2 > // Storage order of the sparse matrix
689  friend inline Operand trans( const SMatTransExpr<MT2,SO2>& sm )
690  {
692 
693  return sm.sm_;
694  }
696  //**********************************************************************************************
697 
698  //**Compile time checks*************************************************************************
703  //**********************************************************************************************
704 };
705 //*************************************************************************************************
706 
707 
708 
709 
710 //=================================================================================================
711 //
712 // GLOBAL OPERATORS
713 //
714 //=================================================================================================
715 
716 //*************************************************************************************************
731 template< typename MT // Type of the sparse matrix
732  , bool SO > // Storage order
734 {
736 
737  return SMatTransExpr<MT,!SO>( ~sm );
738 }
739 //*************************************************************************************************
740 
741 
742 
743 
744 //=================================================================================================
745 //
746 // EXPRESSION TRAIT SPECIALIZATIONS
747 //
748 //=================================================================================================
749 
750 //*************************************************************************************************
752 template< typename MT, bool SO, bool AF >
753 struct SubmatrixExprTrait< SMatTransExpr<MT,SO>, AF >
754 {
755  public:
756  //**********************************************************************************************
757  typedef typename TransExprTrait< typename SubmatrixExprTrait<const MT,AF>::Type >::Type Type;
758  //**********************************************************************************************
759 };
761 //*************************************************************************************************
762 
763 
764 //*************************************************************************************************
766 template< typename MT, bool SO >
767 struct RowExprTrait< SMatTransExpr<MT,SO> >
768 {
769  public:
770  //**********************************************************************************************
771  typedef typename TransExprTrait< typename ColumnExprTrait<const MT>::Type >::Type Type;
772  //**********************************************************************************************
773 };
775 //*************************************************************************************************
776 
777 
778 //*************************************************************************************************
780 template< typename MT, bool SO >
781 struct ColumnExprTrait< SMatTransExpr<MT,SO> >
782 {
783  public:
784  //**********************************************************************************************
785  typedef typename TransExprTrait< typename RowExprTrait<const MT>::Type >::Type Type;
786  //**********************************************************************************************
787 };
789 //*************************************************************************************************
790 
791 } // namespace blaze
792 
793 #endif
Header file for the sparse matrix transposer.
bool operator!=(const ConstIterator &rhs) const
Inequality comparison between two ConstIterator objects.
Definition: SMatTransExpr.h:245
RemoveReference< Operand >::Type::ConstIterator IteratorType
Iterator type of the sparse matrix expression.
Definition: SMatTransExpr.h:153
MT::OppositeType OppositeType
Result type with opposite storage order for expression template evaluations.
Definition: SMatTransExpr.h:133
ConstIterator begin(size_t i) const
Returns an iterator to the first non-zero element of row/column i.
Definition: SMatTransExpr.h:303
void smpSubAssign(DenseMatrix< MT1, SO1 > &lhs, const Matrix< MT2, SO2 > &rhs)
Default implementation of the SMP subtraction assignment of a matrix to dense matrix.
Definition: DenseMatrix.h:152
PointerType pointer
Pointer return type.
Definition: SMatTransExpr.h:164
#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
Header file for the MatTransExpr base class.
Iterator over the elements of the sparse matrix transposition expression.
Definition: SMatTransExpr.h:148
Header file for the ColumnExprTrait class template.
MT::CompositeType CT
Composite type of the sparse matrix expression.
Definition: SMatTransExpr.h:93
Operand sm_
Sparse matrix of the transposition expression.
Definition: SMatTransExpr.h:395
const This & CompositeType
Data type for composite expression templates.
Definition: CompressedMatrix.h:2408
DifferenceType operator-(const ConstIterator &rhs) const
Calculating the number of elements between two expression iterators.
Definition: SMatTransExpr.h:256
Header file for the Computation base class.
MT::ResultType RT
Result type of the sparse matrix expression.
Definition: SMatTransExpr.h:92
Header file for the RequiresEvaluation type trait.
std::iterator_traits< IteratorType >::value_type ValueType
Type of the underlying pointers.
Definition: SMatTransExpr.h:156
CompressedMatrix< Type, false > OppositeType
Result type with opposite storage order for expression template evaluations.
Definition: CompressedMatrix.h:2404
ReferenceType reference
Reference return type.
Definition: SMatTransExpr.h:165
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:107
Constraint on the data type.
Header file for the SparseMatrix base class.
Constraint on the data type.
std::iterator_traits< IteratorType >::difference_type DifferenceType
Difference between two iterators.
Definition: SMatTransExpr.h:159
void smpAddAssign(DenseMatrix< MT1, SO1 > &lhs, const Matrix< MT2, SO2 > &rhs)
Default implementation of the SMP addition assignment of a matrix to a dense matrix.
Definition: DenseMatrix.h:122
Compile time check to query the requirement to evaluate an expression.Via this type trait it is possi...
Definition: RequiresEvaluation.h:90
MT::ResultType TransposeType
Transpose type for expression template evaluations.
Definition: SMatTransExpr.h:134
MT::ReturnType ReturnType
Return type for expression template evaluations.
Definition: SMatTransExpr.h:136
MT::TransposeType ResultType
Result type for expression template evaluations.
Definition: SMatTransExpr.h:132
Compile time type selection.The SelectType class template selects one of the two given types T1 and T...
Definition: SelectType.h:59
std::iterator_traits< IteratorType >::reference ReferenceType
Reference return type.
Definition: SMatTransExpr.h:158
bool canAlias(const T *alias) const
Returns whether the expression can alias with the given address alias.
Definition: SMatTransExpr.h:366
SMatTransExpr(const MT &sm)
Constructor for the SMatTransExpr class.
Definition: SMatTransExpr.h:278
IteratorType it_
Iterator over the elements of the sparse matrix expression.
Definition: SMatTransExpr.h:263
MT::ElementType ElementType
Resulting element type.
Definition: SMatTransExpr.h:135
IteratorCategory iterator_category
The iterator category.
Definition: SMatTransExpr.h:162
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:271
size_t columns() const
Returns the current number of columns of the matrix.
Definition: SMatTransExpr.h:334
Expression object for the transposition of a dense matrix.The DMatTransposer class is a wrapper objec...
Definition: DMatTransposer.h:71
ConstIterator(IteratorType it)
Constructor for the ConstIterator class.
Definition: SMatTransExpr.h:172
CompressedMatrix< Type, false > TransposeType
Transpose type for expression template evaluations.
Definition: CompressedMatrix.h:2405
Constraints on the storage order of matrix types.
Type ElementType
Type of the sparse matrix elements.
Definition: CompressedMatrix.h:2406
Header file for the SelectType class template.
Header file for the RowExprTrait class template.
Header file for all forward declarations for expression class templates.
Header file for the EnableIf class template.
Header file for the dense matrix transposer.
void smpAssign(DenseMatrix< MT1, SO1 > &lhs, const Matrix< MT2, SO2 > &rhs)
Default implementation of the SMP assignment of a matrix to a dense matrix.
Definition: DenseMatrix.h:92
const IteratorType operator->() const
Direct access to the sparse matrix element at the current iterator position.
Definition: SMatTransExpr.h:203
Expression object for the transposition of a sparse matrix.The SMatTransposer class is a wrapper obje...
Definition: Forward.h:103
ReturnType operator()(size_t i, size_t j) const
2D-access to the matrix elements.
Definition: SMatTransExpr.h:290
Header file for the SubmatrixExprTrait class template.
const Type & ReturnType
Return type for expression template evaluations.
Definition: CompressedMatrix.h:2407
Removal of reference modifiers.The RemoveCV type trait removes any reference modifiers from the given...
Definition: RemoveReference.h:69
SelectType< IsExpression< MT >::value, const MT, const MT & >::Type Operand
Composite data type of the sparse matrix expression.
Definition: SMatTransExpr.h:142
Header file for run time assertion macros.
bool canSMPAssign() const
Returns whether the expression can be used in SMP assignments.
Definition: SMatTransExpr.h:388
SelectType< useAssign, const ResultType, const SMatTransExpr & >::Type CompositeType
Data type for composite expression templates.
Definition: SMatTransExpr.h:139
SMatTransExpr< MT, SO > This
Type of this SMatTransExpr instance.
Definition: SMatTransExpr.h:131
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:301
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:331
std::iterator_traits< IteratorType >::pointer PointerType
Pointer return type.
Definition: SMatTransExpr.h:157
Header file for the TransExprTrait class template.
Operand operand() const
Returns the sparse matrix operand.
Definition: SMatTransExpr.h:354
size_t nonZeros() const
Returns the number of non-zero elements in the sparse matrix.
Definition: SMatTransExpr.h:344
size_t rows() const
Returns the current number of rows of the matrix.
Definition: SMatTransExpr.h:324
Header file for the RemoveReference type trait.
std::forward_iterator_tag IteratorCategory
The iterator category.
Definition: SMatTransExpr.h:155
DifferenceType difference_type
Difference between two iterators.
Definition: SMatTransExpr.h:166
ReturnType value() const
Access to the current value of the sparse element.
Definition: SMatTransExpr.h:213
size_t index() const
Access to the current index of the sparse element.
Definition: SMatTransExpr.h:223
bool operator==(const ConstIterator &rhs) const
Equality comparison between two ConstIterator objects.
Definition: SMatTransExpr.h:234
const DMatTransExpr< MT,!SO > trans(const DenseMatrix< MT, SO > &dm)
Calculation of the transpose of the given dense matrix.
Definition: DMatTransExpr.h:907
Header file for the IsComputation type trait class.
#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
Expression object for sparse matrix transpositions.The SMatTransExpr class represents the compile tim...
Definition: Forward.h:102
This ResultType
Result type for expression template evaluations.
Definition: CompressedMatrix.h:2403
ConstIterator end(size_t i) const
Returns an iterator just past the last non-zero element of row/column i.
Definition: SMatTransExpr.h:314
Header file for basic type definitions.
const ValueType operator*() const
Direct access to the sparse matrix element at the current iterator position.
Definition: SMatTransExpr.h:193
ValueType value_type
Type of the underlying pointers.
Definition: SMatTransExpr.h:163
ConstIterator & operator++()
Pre-increment operator.
Definition: SMatTransExpr.h:182
bool isAliased(const T *alias) const
Returns whether the expression is aliased with the given address alias.
Definition: SMatTransExpr.h:378
Header file for the empty type.
#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
#define BLAZE_CONSTRAINT_MUST_BE_SPARSE_MATRIX_TYPE(T)
Constraint on the data type.In case the given data type T is not a sparse, N-dimensional matrix type...
Definition: SparseMatrix.h:79
Header file for the IsExpression type trait class.
Header file for the FunctionTrace class.