DMatDMatSchurExpr.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_EXPRESSIONS_DMATDMATSCHUREXPR_H_
36 #define _BLAZE_MATH_EXPRESSIONS_DMATDMATSCHUREXPR_H_
37 
38 
39 //*************************************************************************************************
40 // Includes
41 //*************************************************************************************************
42 
43 #include <iterator>
44 #include <blaze/math/Aliases.h>
49 #include <blaze/math/Exception.h>
55 #include <blaze/math/SIMD.h>
76 #include <blaze/system/Inline.h>
78 #include <blaze/util/Assert.h>
79 #include <blaze/util/DisableIf.h>
80 #include <blaze/util/EnableIf.h>
83 #include <blaze/util/mpl/And.h>
84 #include <blaze/util/mpl/If.h>
85 #include <blaze/util/mpl/Maximum.h>
86 #include <blaze/util/mpl/Or.h>
87 #include <blaze/util/Types.h>
88 #include <blaze/util/Unused.h>
89 
90 
91 namespace blaze {
92 
93 //=================================================================================================
94 //
95 // CLASS DMATDMATSCHUREXPR
96 //
97 //=================================================================================================
98 
99 //*************************************************************************************************
106 template< typename MT1 // Type of the left-hand side dense matrix
107  , typename MT2 // Type of the right-hand side dense matrix
108  , bool SO > // Storage order
110  : public SchurExpr< DenseMatrix< DMatDMatSchurExpr<MT1,MT2,SO>, SO > >
111  , private Computation
112 {
113  private:
114  //**Type definitions****************************************************************************
123  //**********************************************************************************************
124 
125  //**Return type evaluation**********************************************************************
127 
132  enum : bool { returnExpr = !IsTemporary<RN1>::value && !IsTemporary<RN2>::value };
133 
136  //**********************************************************************************************
137 
138  //**Serial evaluation strategy******************************************************************
140 
146  enum : bool { useAssign = RequiresEvaluation<MT1>::value || RequiresEvaluation<MT2>::value || !returnExpr };
147 
149  template< typename MT >
151  struct UseAssign {
152  enum : bool { value = useAssign };
153  };
155  //**********************************************************************************************
156 
157  //**Parallel evaluation strategy****************************************************************
159 
165  template< typename MT >
166  struct UseSMPAssign {
167  enum : bool { value = ( !MT1::smpAssignable || !MT2::smpAssignable ) && useAssign };
168  };
170  //**********************************************************************************************
171 
172  public:
173  //**Type definitions****************************************************************************
179 
182 
185 
187  using LeftOperand = If_< IsExpression<MT1>, const MT1, const MT1& >;
188 
190  using RightOperand = If_< IsExpression<MT2>, const MT2, const MT2& >;
191  //**********************************************************************************************
192 
193  //**ConstIterator class definition**************************************************************
197  {
198  public:
199  //**Type definitions*************************************************************************
200  using IteratorCategory = std::random_access_iterator_tag;
205 
206  // STL iterator requirements
212 
215 
218  //*******************************************************************************************
219 
220  //**Constructor******************************************************************************
226  explicit inline ConstIterator( LeftIteratorType left, RightIteratorType right )
227  : left_ ( left ) // Iterator to the current left-hand side element
228  , right_( right ) // Iterator to the current right-hand side element
229  {}
230  //*******************************************************************************************
231 
232  //**Addition assignment operator*************************************************************
238  inline ConstIterator& operator+=( size_t inc ) {
239  left_ += inc;
240  right_ += inc;
241  return *this;
242  }
243  //*******************************************************************************************
244 
245  //**Subtraction assignment operator**********************************************************
251  inline ConstIterator& operator-=( size_t dec ) {
252  left_ -= dec;
253  right_ -= dec;
254  return *this;
255  }
256  //*******************************************************************************************
257 
258  //**Prefix increment operator****************************************************************
264  ++left_;
265  ++right_;
266  return *this;
267  }
268  //*******************************************************************************************
269 
270  //**Postfix increment operator***************************************************************
275  inline const ConstIterator operator++( int ) {
276  return ConstIterator( left_++, right_++ );
277  }
278  //*******************************************************************************************
279 
280  //**Prefix decrement operator****************************************************************
286  --left_;
287  --right_;
288  return *this;
289  }
290  //*******************************************************************************************
291 
292  //**Postfix decrement operator***************************************************************
297  inline const ConstIterator operator--( int ) {
298  return ConstIterator( left_--, right_-- );
299  }
300  //*******************************************************************************************
301 
302  //**Element access operator******************************************************************
307  inline ReturnType operator*() const {
308  return (*left_) * (*right_);
309  }
310  //*******************************************************************************************
311 
312  //**Load function****************************************************************************
317  inline auto load() const noexcept {
318  return left_.load() * right_.load();
319  }
320  //*******************************************************************************************
321 
322  //**Equality operator************************************************************************
328  inline bool operator==( const ConstIterator& rhs ) const {
329  return left_ == rhs.left_;
330  }
331  //*******************************************************************************************
332 
333  //**Inequality operator**********************************************************************
339  inline bool operator!=( const ConstIterator& rhs ) const {
340  return left_ != rhs.left_;
341  }
342  //*******************************************************************************************
343 
344  //**Less-than operator***********************************************************************
350  inline bool operator<( const ConstIterator& rhs ) const {
351  return left_ < rhs.left_;
352  }
353  //*******************************************************************************************
354 
355  //**Greater-than operator********************************************************************
361  inline bool operator>( const ConstIterator& rhs ) const {
362  return left_ > rhs.left_;
363  }
364  //*******************************************************************************************
365 
366  //**Less-or-equal-than operator**************************************************************
372  inline bool operator<=( const ConstIterator& rhs ) const {
373  return left_ <= rhs.left_;
374  }
375  //*******************************************************************************************
376 
377  //**Greater-or-equal-than operator***********************************************************
383  inline bool operator>=( const ConstIterator& rhs ) const {
384  return left_ >= rhs.left_;
385  }
386  //*******************************************************************************************
387 
388  //**Subtraction operator*********************************************************************
394  inline DifferenceType operator-( const ConstIterator& rhs ) const {
395  return left_ - rhs.left_;
396  }
397  //*******************************************************************************************
398 
399  //**Addition operator************************************************************************
406  friend inline const ConstIterator operator+( const ConstIterator& it, size_t inc ) {
407  return ConstIterator( it.left_ + inc, it.right_ + inc );
408  }
409  //*******************************************************************************************
410 
411  //**Addition operator************************************************************************
418  friend inline const ConstIterator operator+( size_t inc, const ConstIterator& it ) {
419  return ConstIterator( it.left_ + inc, it.right_ + inc );
420  }
421  //*******************************************************************************************
422 
423  //**Subtraction operator*********************************************************************
430  friend inline const ConstIterator operator-( const ConstIterator& it, size_t dec ) {
431  return ConstIterator( it.left_ - dec, it.right_ - dec );
432  }
433  //*******************************************************************************************
434 
435  private:
436  //**Member variables*************************************************************************
439  //*******************************************************************************************
440  };
441  //**********************************************************************************************
442 
443  //**Compilation flags***************************************************************************
445  enum : bool { simdEnabled = MT1::simdEnabled && MT2::simdEnabled &&
447 
449  enum : bool { smpAssignable = MT1::smpAssignable && MT2::smpAssignable };
450  //**********************************************************************************************
451 
452  //**SIMD properties*****************************************************************************
454  enum : size_t { SIMDSIZE = SIMDTrait<ElementType>::size };
455  //**********************************************************************************************
456 
457  //**Constructor*********************************************************************************
463  explicit inline DMatDMatSchurExpr( const MT1& lhs, const MT2& rhs ) noexcept
464  : lhs_( lhs ) // Left-hand side dense matrix of the Schur product expression
465  , rhs_( rhs ) // Right-hand side dense matrix of the Schur product expression
466  {
467  BLAZE_INTERNAL_ASSERT( lhs.rows() == rhs.rows() , "Invalid number of rows" );
468  BLAZE_INTERNAL_ASSERT( lhs.columns() == rhs.columns(), "Invalid number of columns" );
469  }
470  //**********************************************************************************************
471 
472  //**Access operator*****************************************************************************
479  inline ReturnType operator()( size_t i, size_t j ) const {
480  BLAZE_INTERNAL_ASSERT( i < lhs_.rows() , "Invalid row access index" );
481  BLAZE_INTERNAL_ASSERT( j < lhs_.columns(), "Invalid column access index" );
482  return lhs_(i,j) * rhs_(i,j);
483  }
484  //**********************************************************************************************
485 
486  //**At function*********************************************************************************
494  inline ReturnType at( size_t i, size_t j ) const {
495  if( i >= lhs_.rows() ) {
496  BLAZE_THROW_OUT_OF_RANGE( "Invalid row access index" );
497  }
498  if( j >= lhs_.columns() ) {
499  BLAZE_THROW_OUT_OF_RANGE( "Invalid column access index" );
500  }
501  return (*this)(i,j);
502  }
503  //**********************************************************************************************
504 
505  //**Load function*******************************************************************************
512  BLAZE_ALWAYS_INLINE auto load( size_t i, size_t j ) const noexcept {
513  BLAZE_INTERNAL_ASSERT( i < lhs_.rows() , "Invalid row access index" );
514  BLAZE_INTERNAL_ASSERT( j < lhs_.columns(), "Invalid column access index" );
515  BLAZE_INTERNAL_ASSERT( !SO || ( i % SIMDSIZE == 0UL ), "Invalid row access index" );
516  BLAZE_INTERNAL_ASSERT( SO || ( j % SIMDSIZE == 0UL ), "Invalid column access index" );
517  return lhs_.load(i,j) * rhs_.load(i,j);
518  }
519  //**********************************************************************************************
520 
521  //**Begin function******************************************************************************
527  inline ConstIterator begin( size_t i ) const {
528  return ConstIterator( lhs_.begin(i), rhs_.begin(i) );
529  }
530  //**********************************************************************************************
531 
532  //**End function********************************************************************************
538  inline ConstIterator end( size_t i ) const {
539  return ConstIterator( lhs_.end(i), rhs_.end(i) );
540  }
541  //**********************************************************************************************
542 
543  //**Rows function*******************************************************************************
548  inline size_t rows() const noexcept {
549  return lhs_.rows();
550  }
551  //**********************************************************************************************
552 
553  //**Columns function****************************************************************************
558  inline size_t columns() const noexcept {
559  return lhs_.columns();
560  }
561  //**********************************************************************************************
562 
563  //**Left operand access*************************************************************************
568  inline LeftOperand leftOperand() const noexcept {
569  return lhs_;
570  }
571  //**********************************************************************************************
572 
573  //**Right operand access************************************************************************
578  inline RightOperand rightOperand() const noexcept {
579  return rhs_;
580  }
581  //**********************************************************************************************
582 
583  //**********************************************************************************************
589  template< typename T >
590  inline bool canAlias( const T* alias ) const noexcept {
591  return ( IsExpression<MT1>::value && ( RequiresEvaluation<MT1>::value ? lhs_.isAliased( alias ) : lhs_.canAlias( alias ) ) ) ||
592  ( IsExpression<MT2>::value && ( RequiresEvaluation<MT2>::value ? rhs_.isAliased( alias ) : rhs_.canAlias( alias ) ) );
593  }
594  //**********************************************************************************************
595 
596  //**********************************************************************************************
602  template< typename T >
603  inline bool isAliased( const T* alias ) const noexcept {
604  return ( lhs_.isAliased( alias ) || rhs_.isAliased( alias ) );
605  }
606  //**********************************************************************************************
607 
608  //**********************************************************************************************
613  inline bool isAligned() const noexcept {
614  return lhs_.isAligned() && rhs_.isAligned();
615  }
616  //**********************************************************************************************
617 
618  //**********************************************************************************************
623  inline bool canSMPAssign() const noexcept {
624  return lhs_.canSMPAssign() || rhs_.canSMPAssign() ||
625  ( rows() * columns() >= SMP_DMATDMATSCHUR_THRESHOLD );
626  }
627  //**********************************************************************************************
628 
629  private:
630  //**Member variables****************************************************************************
633  //**********************************************************************************************
634 
635  //**Assignment to dense matrices****************************************************************
649  template< typename MT // Type of the target dense matrix
650  , bool SO2 > // Storage order of the target dense matrix
651  friend inline EnableIf_< UseAssign<MT> >
652  assign( DenseMatrix<MT,SO2>& lhs, const DMatDMatSchurExpr& rhs )
653  {
655 
656  BLAZE_INTERNAL_ASSERT( (~lhs).rows() == rhs.rows() , "Invalid number of rows" );
657  BLAZE_INTERNAL_ASSERT( (~lhs).columns() == rhs.columns(), "Invalid number of columns" );
658 
659  if( !IsOperation<MT1>::value && isSame( ~lhs, rhs.lhs_ ) ) {
660  schurAssign( ~lhs, rhs.rhs_ );
661  }
662  else {
663  assign ( ~lhs, rhs.lhs_ );
664  schurAssign( ~lhs, rhs.rhs_ );
665  }
666  }
668  //**********************************************************************************************
669 
670  //**Assignment to sparse matrices***************************************************************
684  template< typename MT // Type of the target sparse matrix
685  , bool SO2 > // Storage order of the target sparse matrix
686  friend inline EnableIf_< UseAssign<MT> >
687  assign( SparseMatrix<MT,SO2>& lhs, const DMatDMatSchurExpr& rhs )
688  {
690 
692 
699 
700  BLAZE_INTERNAL_ASSERT( (~lhs).rows() == rhs.rows() , "Invalid number of rows" );
701  BLAZE_INTERNAL_ASSERT( (~lhs).columns() == rhs.columns(), "Invalid number of columns" );
702 
703  const TmpType tmp( serial( rhs ) );
704  assign( ~lhs, tmp );
705  }
707  //**********************************************************************************************
708 
709  //**Addition assignment to dense matrices*******************************************************
723  template< typename MT // Type of the target dense matrix
724  , bool SO2 > // Storage order of the target dense matrix
725  friend inline EnableIf_< UseAssign<MT> >
726  addAssign( DenseMatrix<MT,SO2>& lhs, const DMatDMatSchurExpr& rhs )
727  {
729 
733 
734  BLAZE_INTERNAL_ASSERT( (~lhs).rows() == rhs.rows() , "Invalid number of rows" );
735  BLAZE_INTERNAL_ASSERT( (~lhs).columns() == rhs.columns(), "Invalid number of columns" );
736 
737  const ResultType tmp( serial( rhs ) );
738  addAssign( ~lhs, tmp );
739  }
741  //**********************************************************************************************
742 
743  //**Addition assignment to sparse matrices******************************************************
744  // No special implementation for the addition assignment to sparse matrices.
745  //**********************************************************************************************
746 
747  //**Subtraction assignment to dense matrices****************************************************
761  template< typename MT // Type of the target dense matrix
762  , bool SO2 > // Storage order of the target dense matrix
763  friend inline EnableIf_< UseAssign<MT> >
764  subAssign( DenseMatrix<MT,SO2>& lhs, const DMatDMatSchurExpr& rhs )
765  {
767 
771 
772  BLAZE_INTERNAL_ASSERT( (~lhs).rows() == rhs.rows() , "Invalid number of rows" );
773  BLAZE_INTERNAL_ASSERT( (~lhs).columns() == rhs.columns(), "Invalid number of columns" );
774 
775  const ResultType tmp( serial( rhs ) );
776  subAssign( ~lhs, tmp );
777  }
779  //**********************************************************************************************
780 
781  //**Subtraction assignment to sparse matrices***************************************************
782  // No special implementation for the subtraction assignment to sparse matrices.
783  //**********************************************************************************************
784 
785  //**Schur product assignment to dense matrices**************************************************
799  template< typename MT // Type of the target dense matrix
800  , bool SO2 > // Storage order of the target dense matrix
801  friend inline EnableIf_< UseAssign<MT> >
802  schurAssign( DenseMatrix<MT,SO2>& lhs, const DMatDMatSchurExpr& rhs )
803  {
805 
806  BLAZE_INTERNAL_ASSERT( (~lhs).rows() == rhs.rows() , "Invalid number of rows" );
807  BLAZE_INTERNAL_ASSERT( (~lhs).columns() == rhs.columns(), "Invalid number of columns" );
808 
809  schurAssign( ~lhs, rhs.lhs_ );
810  schurAssign( ~lhs, rhs.rhs_ );
811  }
813  //**********************************************************************************************
814 
815  //**Schur product assignment to sparse matrices*************************************************
816  // No special implementation for the Schur product assignment to sparse matrices.
817  //**********************************************************************************************
818 
819  //**Multiplication assignment to dense matrices*************************************************
820  // No special implementation for the multiplication assignment to dense matrices.
821  //**********************************************************************************************
822 
823  //**Multiplication assignment to sparse matrices************************************************
824  // No special implementation for the multiplication assignment to sparse matrices.
825  //**********************************************************************************************
826 
827  //**SMP assignment to dense matrices************************************************************
841  template< typename MT // Type of the target dense matrix
842  , bool SO2 > // Storage order of the target dense matrix
843  friend inline EnableIf_< UseSMPAssign<MT> >
845  {
847 
848  BLAZE_INTERNAL_ASSERT( (~lhs).rows() == rhs.rows() , "Invalid number of rows" );
849  BLAZE_INTERNAL_ASSERT( (~lhs).columns() == rhs.columns(), "Invalid number of columns" );
850 
851  if( !IsOperation<MT1>::value && isSame( ~lhs, rhs.lhs_ ) ) {
852  smpSchurAssign( ~lhs, rhs.rhs_ );
853  }
854  else {
855  smpAssign ( ~lhs, rhs.lhs_ );
856  smpSchurAssign( ~lhs, rhs.rhs_ );
857  }
858  }
860  //**********************************************************************************************
861 
862  //**SMP assignment to sparse matrices***********************************************************
876  template< typename MT // Type of the target sparse matrix
877  , bool SO2 > // Storage order of the target sparse matrix
878  friend inline EnableIf_< UseSMPAssign<MT> >
880  {
882 
884 
891 
892  BLAZE_INTERNAL_ASSERT( (~lhs).rows() == rhs.rows() , "Invalid number of rows" );
893  BLAZE_INTERNAL_ASSERT( (~lhs).columns() == rhs.columns(), "Invalid number of columns" );
894 
895  const TmpType tmp( rhs );
896  smpAssign( ~lhs, tmp );
897  }
899  //**********************************************************************************************
900 
901  //**SMP addition assignment to dense matrices***************************************************
915  template< typename MT // Type of the target dense matrix
916  , bool SO2 > // Storage order of the target dense matrix
917  friend inline EnableIf_< UseAssign<MT> >
919  {
921 
925 
926  BLAZE_INTERNAL_ASSERT( (~lhs).rows() == rhs.rows() , "Invalid number of rows" );
927  BLAZE_INTERNAL_ASSERT( (~lhs).columns() == rhs.columns(), "Invalid number of columns" );
928 
929  const ResultType tmp( rhs );
930  smpAddAssign( ~lhs, tmp );
931  }
933  //**********************************************************************************************
934 
935  //**SMP addition assignment to sparse matrices**************************************************
936  // No special implementation for the SMP addition assignment to sparse matrices.
937  //**********************************************************************************************
938 
939  //**SMP subtraction assignment to dense matrices************************************************
954  template< typename MT // Type of the target dense matrix
955  , bool SO2 > // Storage order of the target dense matrix
956  friend inline EnableIf_< UseSMPAssign<MT> >
958  {
960 
964 
965  BLAZE_INTERNAL_ASSERT( (~lhs).rows() == rhs.rows() , "Invalid number of rows" );
966  BLAZE_INTERNAL_ASSERT( (~lhs).columns() == rhs.columns(), "Invalid number of columns" );
967 
968  const ResultType tmp( rhs );
969  smpSubAssign( ~lhs, tmp );
970  }
972  //**********************************************************************************************
973 
974  //**SMP subtraction assignment to sparse matrices***********************************************
975  // No special implementation for the SMP subtraction assignment to sparse matrices.
976  //**********************************************************************************************
977 
978  //**SMP Schur product assignment to dense matrices**********************************************
993  template< typename MT // Type of the target dense matrix
994  , bool SO2 > // Storage order of the target dense matrix
995  friend inline EnableIf_< UseSMPAssign<MT> >
997  {
999 
1000  BLAZE_INTERNAL_ASSERT( (~lhs).rows() == rhs.rows() , "Invalid number of rows" );
1001  BLAZE_INTERNAL_ASSERT( (~lhs).columns() == rhs.columns(), "Invalid number of columns" );
1002 
1003  smpSchurAssign( ~lhs, rhs.lhs_ );
1004  smpSchurAssign( ~lhs, rhs.rhs_ );
1005  }
1007  //**********************************************************************************************
1008 
1009  //**SMP Schur product assignment to sparse matrices*********************************************
1010  // No special implementation for the SMP Schur product assignment to sparse matrices.
1011  //**********************************************************************************************
1012 
1013  //**SMP multiplication assignment to dense matrices*********************************************
1014  // No special implementation for the SMP multiplication assignment to dense matrices.
1015  //**********************************************************************************************
1016 
1017  //**SMP multiplication assignment to sparse matrices********************************************
1018  // No special implementation for the SMP multiplication assignment to sparse matrices.
1019  //**********************************************************************************************
1020 
1021  //**Compile time checks*************************************************************************
1027  //**********************************************************************************************
1028 };
1029 //*************************************************************************************************
1030 
1031 
1032 
1033 
1034 //=================================================================================================
1035 //
1036 // GLOBAL BINARY ARITHMETIC OPERATORS
1037 //
1038 //=================================================================================================
1039 
1040 //*************************************************************************************************
1053 template< typename MT1 // Type of the left-hand side dense matrix
1054  , typename MT2 // Type of the right-hand side dense matrix
1055  , bool SO // Storage order
1058 inline const DMatDMatSchurExpr<MT1,MT2,SO>
1059  dmatdmatschur( const DenseMatrix<MT1,SO>& lhs, const DenseMatrix<MT2,SO>& rhs )
1060 {
1062 
1063  BLAZE_INTERNAL_ASSERT( (~lhs).rows() == (~rhs).rows() , "Invalid number of rows" );
1064  BLAZE_INTERNAL_ASSERT( (~lhs).columns() == (~rhs).columns(), "Invalid number of columns" );
1065 
1066  return DMatDMatSchurExpr<MT1,MT2,SO>( ~lhs, ~rhs );
1067 }
1069 //*************************************************************************************************
1070 
1071 
1072 //*************************************************************************************************
1085 template< typename MT1 // Type of the left-hand side dense matrix
1086  , typename MT2 // Type of the right-hand side dense matrix
1087  , bool SO // Storage order
1088  , typename = EnableIf_< Or< And< IsUniLower<MT1>, IsUniUpper<MT2> >
1089  , And< IsUniUpper<MT1>, IsUniLower<MT2> > > > >
1091  dmatdmatschur( const DenseMatrix<MT1,SO>& lhs, const DenseMatrix<MT2,SO>& rhs )
1092 {
1094 
1095  UNUSED_PARAMETER( rhs );
1096 
1097  BLAZE_INTERNAL_ASSERT( (~lhs).rows() == (~rhs).rows() , "Invalid number of rows" );
1098  BLAZE_INTERNAL_ASSERT( (~lhs).columns() == (~rhs).columns(), "Invalid number of columns" );
1099 
1100  return IdentityMatrix< MultTrait_< ElementType_<MT1>, ElementType_<MT2> >, SO >( (~lhs).rows() );
1101 }
1103 //*************************************************************************************************
1104 
1105 
1106 //*************************************************************************************************
1131 template< typename MT1 // Type of the left-hand side dense matrix
1132  , typename MT2 // Type of the right-hand side dense matrix
1133  , bool SO > // Storage order
1134 inline decltype(auto)
1135  operator%( const DenseMatrix<MT1,SO>& lhs, const DenseMatrix<MT2,SO>& rhs )
1136 {
1138 
1139  if( (~lhs).rows() != (~rhs).rows() || (~lhs).columns() != (~rhs).columns() ) {
1140  BLAZE_THROW_INVALID_ARGUMENT( "Matrix sizes do not match" );
1141  }
1142 
1143  return dmatdmatschur( ~lhs, ~rhs );
1144 }
1145 //*************************************************************************************************
1146 
1147 
1148 
1149 
1150 //=================================================================================================
1151 //
1152 // ROWS SPECIALIZATIONS
1153 //
1154 //=================================================================================================
1155 
1156 //*************************************************************************************************
1158 template< typename MT1, typename MT2, bool SO >
1159 struct Rows< DMatDMatSchurExpr<MT1,MT2,SO> >
1160  : public Maximum< Rows<MT1>, Rows<MT2> >
1161 {};
1163 //*************************************************************************************************
1164 
1165 
1166 
1167 
1168 //=================================================================================================
1169 //
1170 // COLUMNS SPECIALIZATIONS
1171 //
1172 //=================================================================================================
1173 
1174 //*************************************************************************************************
1176 template< typename MT1, typename MT2, bool SO >
1177 struct Columns< DMatDMatSchurExpr<MT1,MT2,SO> >
1178  : public Maximum< Columns<MT1>, Columns<MT2> >
1179 {};
1181 //*************************************************************************************************
1182 
1183 
1184 
1185 
1186 //=================================================================================================
1187 //
1188 // ISALIGNED SPECIALIZATIONS
1189 //
1190 //=================================================================================================
1191 
1192 //*************************************************************************************************
1194 template< typename MT1, typename MT2, bool SO >
1195 struct IsAligned< DMatDMatSchurExpr<MT1,MT2,SO> >
1196  : public BoolConstant< And< IsAligned<MT1>, IsAligned<MT2> >::value >
1197 {};
1199 //*************************************************************************************************
1200 
1201 
1202 
1203 
1204 //=================================================================================================
1205 //
1206 // ISPADDED SPECIALIZATIONS
1207 //
1208 //=================================================================================================
1209 
1210 //*************************************************************************************************
1212 template< typename MT1, typename MT2, bool SO >
1213 struct IsPadded< DMatDMatSchurExpr<MT1,MT2,SO> >
1214  : public BoolConstant< And< IsPadded<MT1>, IsPadded<MT2> >::value >
1215 {};
1217 //*************************************************************************************************
1218 
1219 
1220 
1221 
1222 //=================================================================================================
1223 //
1224 // ISSYMMETRIC SPECIALIZATIONS
1225 //
1226 //=================================================================================================
1227 
1228 //*************************************************************************************************
1230 template< typename MT1, typename MT2, bool SO >
1231 struct IsSymmetric< DMatDMatSchurExpr<MT1,MT2,SO> >
1232  : public BoolConstant< IsSymmetric<MT1>::value && IsSymmetric<MT2>::value >
1233 {};
1235 //*************************************************************************************************
1236 
1237 
1238 
1239 
1240 //=================================================================================================
1241 //
1242 // ISHERMITIAN SPECIALIZATIONS
1243 //
1244 //=================================================================================================
1245 
1246 //*************************************************************************************************
1248 template< typename MT1, typename MT2, bool SO >
1249 struct IsHermitian< DMatDMatSchurExpr<MT1,MT2,SO> >
1250  : public BoolConstant< IsHermitian<MT1>::value && IsHermitian<MT2>::value >
1251 {};
1253 //*************************************************************************************************
1254 
1255 
1256 
1257 
1258 //=================================================================================================
1259 //
1260 // ISLOWER SPECIALIZATIONS
1261 //
1262 //=================================================================================================
1263 
1264 //*************************************************************************************************
1266 template< typename MT1, typename MT2, bool SO >
1267 struct IsLower< DMatDMatSchurExpr<MT1,MT2,SO> >
1268  : public BoolConstant< Or< IsLower<MT1>, IsLower<MT2> >::value >
1269 {};
1271 //*************************************************************************************************
1272 
1273 
1274 
1275 
1276 //=================================================================================================
1277 //
1278 // ISUNILOWER SPECIALIZATIONS
1279 //
1280 //=================================================================================================
1281 
1282 //*************************************************************************************************
1284 template< typename MT1, typename MT2, bool SO >
1285 struct IsUniLower< DMatDMatSchurExpr<MT1,MT2,SO> >
1286  : public BoolConstant< And< IsUniLower<MT1>, IsUniLower<MT2> >::value >
1287 {};
1289 //*************************************************************************************************
1290 
1291 
1292 
1293 
1294 //=================================================================================================
1295 //
1296 // ISSTRICTLYLOWER SPECIALIZATIONS
1297 //
1298 //=================================================================================================
1299 
1300 //*************************************************************************************************
1302 template< typename MT1, typename MT2, bool SO >
1303 struct IsStrictlyLower< DMatDMatSchurExpr<MT1,MT2,SO> >
1304  : public BoolConstant< Or< IsStrictlyLower<MT1>, IsStrictlyLower<MT2> >::value >
1305 {};
1307 //*************************************************************************************************
1308 
1309 
1310 
1311 
1312 //=================================================================================================
1313 //
1314 // ISUPPER SPECIALIZATIONS
1315 //
1316 //=================================================================================================
1317 
1318 //*************************************************************************************************
1320 template< typename MT1, typename MT2, bool SO >
1321 struct IsUpper< DMatDMatSchurExpr<MT1,MT2,SO> >
1322  : public BoolConstant< Or< IsUpper<MT1>, IsUpper<MT2> >::value >
1323 {};
1325 //*************************************************************************************************
1326 
1327 
1328 
1329 
1330 //=================================================================================================
1331 //
1332 // ISUNIUPPER SPECIALIZATIONS
1333 //
1334 //=================================================================================================
1335 
1336 //*************************************************************************************************
1338 template< typename MT1, typename MT2, bool SO >
1339 struct IsUniUpper< DMatDMatSchurExpr<MT1,MT2,SO> >
1340  : public BoolConstant< And< IsUniUpper<MT1>, IsUniUpper<MT2> >::value >
1341 {};
1343 //*************************************************************************************************
1344 
1345 
1346 
1347 
1348 //=================================================================================================
1349 //
1350 // ISSTRICTLYUPPER SPECIALIZATIONS
1351 //
1352 //=================================================================================================
1353 
1354 //*************************************************************************************************
1356 template< typename MT1, typename MT2, bool SO >
1357 struct IsStrictlyUpper< DMatDMatSchurExpr<MT1,MT2,SO> >
1358  : public BoolConstant< Or< IsStrictlyUpper<MT1>, IsStrictlyUpper<MT2> >::value >
1359 {};
1361 //*************************************************************************************************
1362 
1363 } // namespace blaze
1364 
1365 #endif
CompositeType_< MT1 > CT1
Composite type of the left-hand side dense matrix expression.
Definition: DMatDMatSchurExpr.h:119
#define BLAZE_THROW_INVALID_ARGUMENT(MESSAGE)
Macro for the emission of a std::invalid_argument exception.This macro encapsulates the default way o...
Definition: Exception.h:235
Pointer difference type of the Blaze library.
size_t rows() const noexcept
Returns the current number of rows of the matrix.
Definition: DMatDMatSchurExpr.h:548
RightIteratorType right_
Iterator to the current right-hand side element.
Definition: DMatDMatSchurExpr.h:438
Header file for auxiliary alias declarations.
Header file for the Schur product trait.
ReturnType_< MT2 > RN2
Return type of the right-hand side dense matrix expression.
Definition: DMatDMatSchurExpr.h:118
Compile time check whether the given type is a temporary vector or matrix type.This type trait class ...
Definition: IsTemporary.h:70
Header file for the Rows type trait.
Header file for the UNUSED_PARAMETER function template.
Header file for the IsUniUpper type trait.
EnableIf_< IsDenseMatrix< MT1 > > smpSchurAssign(Matrix< MT1, SO1 > &lhs, const Matrix< MT2, SO2 > &rhs)
Default implementation of the SMP Schur product assignment of a matrix to dense matrix.
Definition: DenseMatrix.h:196
BLAZE_ALWAYS_INLINE bool isSame(const Matrix< MT1, SO1 > &a, const Matrix< MT2, SO2 > &b) noexcept
Returns whether the two given matrices represent the same observable state.
Definition: Matrix.h:786
Header file for basic type definitions.
Compile time check whether the given type is an operational expression template.This type trait class...
Definition: IsOperation.h:71
EnableIf_< IsDenseMatrix< MT1 > > smpSubAssign(Matrix< MT1, SO1 > &lhs, const Matrix< MT2, SO2 > &rhs)
Default implementation of the SMP subtraction assignment of a matrix to dense matrix.
Definition: DenseMatrix.h:164
Header file for the serial shim.
#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:63
friend const ConstIterator operator+(size_t inc, const ConstIterator &it)
Addition between an integral value and a ConstIterator.
Definition: DMatDMatSchurExpr.h:418
ReturnType operator()(size_t i, size_t j) const
2D-access to the matrix elements.
Definition: DMatDMatSchurExpr.h:479
Generic wrapper for a compile time constant integral value.The IntegralConstant class template repres...
Definition: IntegralConstant.h:71
#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:61
CompositeType_< MT2 > CT2
Composite type of the right-hand side dense matrix expression.
Definition: DMatDMatSchurExpr.h:120
Availability of a SIMD multiplication for the given data types.Depending on the available instruction...
Definition: HasSIMDMult.h:172
bool operator<=(const ConstIterator &rhs) const
Less-than comparison between two ConstIterator objects.
Definition: DMatDMatSchurExpr.h:372
typename DisableIf< Condition, T >::Type DisableIf_
Auxiliary type for the DisableIf class template.The DisableIf_ alias declaration provides a convenien...
Definition: DisableIf.h:224
Header file for the And class template.
Compile time value evaluation.The Maximum alias declaration selects the larger of the two given templ...
Definition: Maximum.h:73
Compile time check for lower triangular matrices.This type trait tests whether or not the given templ...
Definition: IsLower.h:88
IfTrue_< useAssign, const ResultType, const DMatDMatSchurExpr &> CompositeType
Data type for composite expression templates.
Definition: DMatDMatSchurExpr.h:184
Header file for the Computation base class.
ConstIterator_< MT1 > LeftIteratorType
ConstIterator type of the left-hand side dense matrix expression.
Definition: DMatDMatSchurExpr.h:214
Compile time check for upper triangular matrices.This type trait tests whether or not the given templ...
Definition: IsUpper.h:88
Header file for the RequiresEvaluation type trait.
If_< IsExpression< MT1 >, const MT1, const MT1 &> LeftOperand
Composite type of the left-hand side dense matrix expression.
Definition: DMatDMatSchurExpr.h:187
ElementType_< MT1 > ET1
Element type of the left-hand side dense matrix expression.
Definition: DMatDMatSchurExpr.h:121
ConstIterator_< MT2 > RightIteratorType
ConstIterator type of the right-hand side dense matrix expression.
Definition: DMatDMatSchurExpr.h:217
Header file for the IsUniLower type trait.
typename T::ResultType ResultType_
Alias declaration for nested ResultType type definitions.The ResultType_ alias declaration provides a...
Definition: Aliases.h:343
EnableIf_< IsDenseMatrix< MT1 > > smpAddAssign(Matrix< 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:133
#define BLAZE_CONSTRAINT_MUST_FORM_VALID_SCHUREXPR(T1, T2)
Constraint on the data type.In case the given data types T1 and T2 do not form a valid matrix/matrix ...
Definition: SchurExpr.h:108
Base class for dense matrices.The DenseMatrix class is a base class for all dense matrix classes...
Definition: DenseMatrix.h:78
Base class for sparse matrices.The SparseMatrix class is a base class for all sparse matrix classes...
Definition: Forward.h:129
Header file for all forward declarations for sparse vectors and matrices.
size_t columns() const noexcept
Returns the current number of columns of the matrix.
Definition: DMatDMatSchurExpr.h:558
ReturnType at(size_t i, size_t j) const
Checked access to the matrix elements.
Definition: DMatDMatSchurExpr.h:494
typename IfTrue< Condition, T1, T2 >::Type IfTrue_
Auxiliary alias declaration for the IfTrue class template.The IfTrue_ alias declaration provides a co...
Definition: If.h:109
typename T::ReturnType ReturnType_
Alias declaration for nested ReturnType type definitions.The ReturnType_ alias declaration provides a...
Definition: Aliases.h:363
ConstIterator & operator--()
Pre-decrement operator.
Definition: DMatDMatSchurExpr.h:285
Compile time check for the alignment of data types.This type trait tests whether the given data type ...
Definition: IsAligned.h:87
Constraint on the data type.
If_< IsExpression< MT2 >, const MT2, const MT2 &> RightOperand
Composite type of the right-hand side dense matrix expression.
Definition: DMatDMatSchurExpr.h:190
Header file for the Maximum class template.
typename MultExprTrait< T1, T2 >::Type MultExprTrait_
Auxiliary alias declaration for the MultExprTrait class template.The MultExprTrait_ alias declaration...
Definition: MultExprTrait.h:112
Header file for the MultExprTrait class template.
Compile time check to query the requirement to evaluate an expression.Via this type trait it is possi...
Definition: RequiresEvaluation.h:72
typename T::CompositeType CompositeType_
Alias declaration for nested CompositeType type definitions.The CompositeType_ alias declaration prov...
Definition: Aliases.h:83
Compile time check for upper unitriangular matrices.This type trait tests whether or not the given te...
Definition: IsUniUpper.h:86
bool operator>(const ConstIterator &rhs) const
Greater-than comparison between two ConstIterator objects.
Definition: DMatDMatSchurExpr.h:361
DifferenceType operator-(const ConstIterator &rhs) const
Calculating the number of elements between two iterators.
Definition: DMatDMatSchurExpr.h:394
Efficient implementation of an identity matrix.The IdentityMatrix class template is the representati...
Definition: Forward.h:49
Header file for the DisableIf class template.
Header file for the IsTemporary type trait class.
IteratorCategory iterator_category
The iterator category.
Definition: DMatDMatSchurExpr.h:207
Header file for the IsStrictlyUpper type trait.
Header file for the IsSymmetric type trait.
Namespace of the Blaze C++ math library.
Definition: Blaze.h:57
#define BLAZE_ALWAYS_INLINE
Platform dependent setup of an enforced inline keyword.
Definition: Inline.h:85
Header file for the If class template.
SchurTrait_< RT1, RT2 > ResultType
Result type for expression template evaluations.
Definition: DMatDMatSchurExpr.h:175
ReturnType operator*() const
Direct access to the element at the current iterator position.
Definition: DMatDMatSchurExpr.h:307
ElementType * PointerType
Pointer return type.
Definition: DMatDMatSchurExpr.h:202
Compile time check for data types with padding.This type trait tests whether the given data type empl...
Definition: IsPadded.h:76
EnableIf_< IsDenseMatrix< MT1 > > smpAssign(Matrix< MT1, SO1 > &lhs, const Matrix< MT2, SO2 > &rhs)
Default implementation of the SMP assignment of a matrix to a dense matrix.
Definition: DenseMatrix.h:102
Header file for the Or class template.
#define BLAZE_THROW_OUT_OF_RANGE(MESSAGE)
Macro for the emission of a std::out_of_range exception.This macro encapsulates the default way of Bl...
Definition: Exception.h:331
ResultType_< MT1 > RT1
Result type of the left-hand side dense matrix expression.
Definition: DMatDMatSchurExpr.h:115
Header file for the DenseMatrix base class.
Header file for the Columns type trait.
PointerType pointer
Pointer return type.
Definition: DMatDMatSchurExpr.h:209
const Element * ConstIterator
Iterator over constant elements.
Definition: CompressedMatrix.h:3087
bool operator<(const ConstIterator &rhs) const
Less-than comparison between two ConstIterator objects.
Definition: DMatDMatSchurExpr.h:350
typename T::ElementType ElementType_
Alias declaration for nested ElementType type definitions.The ElementType_ alias declaration provides...
Definition: Aliases.h:163
Header file for all SIMD functionality.
bool isAliased(const T *alias) const noexcept
Returns whether the expression is aliased with the given address alias.
Definition: DMatDMatSchurExpr.h:603
Header file for the IsOperation type trait class.
Header file for the IsLower type trait.
typename SchurTrait< T1, T2 >::Type SchurTrait_
Auxiliary alias declaration for the SchurTrait class template.The SchurTrait_ alias declaration provi...
Definition: SchurTrait.h:167
ConstIterator begin(size_t i) const
Returns an iterator to the first non-zero element of row i.
Definition: DMatDMatSchurExpr.h:527
Header file for the IsAligned type trait.
ReferenceType reference
Reference return type.
Definition: DMatDMatSchurExpr.h:210
bool operator>=(const ConstIterator &rhs) const
Greater-than comparison between two ConstIterator objects.
Definition: DMatDMatSchurExpr.h:383
Constraints on the storage order of matrix types.
Compile time check for symmetric matrices.This type trait tests whether or not the given template par...
Definition: IsSymmetric.h:85
ElementType & ReferenceType
Reference return type.
Definition: DMatDMatSchurExpr.h:203
Header file for the exception macros of the math module.
Compile time check for strictly upper triangular matrices.This type trait tests whether or not the gi...
Definition: IsStrictlyUpper.h:86
friend const ConstIterator operator+(const ConstIterator &it, size_t inc)
Addition between a ConstIterator and an integral value.
Definition: DMatDMatSchurExpr.h:406
Constraint on the data type.
Expression object for dense matrix-dense matrix Schur products.The DMatDMatSchurExpr class represents...
Definition: DMatDMatSchurExpr.h:109
Header file for all forward declarations for expression class templates.
Header file for the EnableIf class template.
Header file for the IsStrictlyLower type trait.
Header file for the IsPadded type trait.
Compile time check for lower unitriangular matrices.This type trait tests whether or not the given te...
Definition: IsUniLower.h:86
ConstIterator & operator+=(size_t inc)
Addition assignment operator.
Definition: DMatDMatSchurExpr.h:238
TransposeType_< ResultType > TransposeType
Transpose type for expression template evaluations.
Definition: DMatDMatSchurExpr.h:177
Header file for the HasSIMDMult type trait.
Base class for all Schur product expression templates.The SchurExpr class serves as a tag for all exp...
Definition: SchurExpr.h:66
Header file for run time assertion macros.
const ConstIterator operator--(int)
Post-decrement operator.
Definition: DMatDMatSchurExpr.h:297
ConstIterator & operator++()
Pre-increment operator.
Definition: DMatDMatSchurExpr.h:263
const IfTrue_< returnExpr, ExprReturnType, ElementType > ReturnType
Return type for expression template evaluations.
Definition: DMatDMatSchurExpr.h:181
const ConstIterator operator++(int)
Post-increment operator.
Definition: DMatDMatSchurExpr.h:275
std::random_access_iterator_tag IteratorCategory
The iterator category.
Definition: DMatDMatSchurExpr.h:200
Header file for the SchurExpr base class.
typename If< T1, T2, T3 >::Type If_
Auxiliary alias declaration for the If class template.The If_ alias declaration provides a convenient...
Definition: If.h:154
ValueType value_type
Type of the underlying elements.
Definition: DMatDMatSchurExpr.h:208
SIMD characteristics of data types.The SIMDTrait class template provides the SIMD characteristics of ...
Definition: SIMDTrait.h:296
#define BLAZE_FUNCTION_TRACE
Function trace macro.This macro can be used to reliably trace function calls. In case function tracin...
Definition: FunctionTrace.h:94
LeftOperand lhs_
Left-hand side dense matrix of the Schur product expression.
Definition: DMatDMatSchurExpr.h:631
ConstIterator & operator-=(size_t dec)
Subtraction assignment operator.
Definition: DMatDMatSchurExpr.h:251
Compile time check for Hermitian matrices.This type trait tests whether or not the given template par...
Definition: IsHermitian.h:85
bool canSMPAssign() const noexcept
Returns whether the expression can be used in SMP assignments.
Definition: DMatDMatSchurExpr.h:623
decltype(auto) serial(const DenseMatrix< MT, SO > &dm)
Forces the serial evaluation of the given dense matrix expression dm.
Definition: DMatSerialExpr.h:819
#define BLAZE_CONSTRAINT_MUST_NOT_REQUIRE_EVALUATION(T)
Constraint on the data type.In case the given data type T requires an intermediate evaluation within ...
Definition: RequiresEvaluation.h:81
ElementType ValueType
Type of the underlying elements.
Definition: DMatDMatSchurExpr.h:201
typename EnableIf< Condition, T >::Type EnableIf_
Auxiliary alias declaration for the EnableIf class template.The EnableIf_ alias declaration provides ...
Definition: EnableIf.h:224
typename T::OppositeType OppositeType_
Alias declaration for nested OppositeType type definitions.The OppositeType_ alias declaration provid...
Definition: Aliases.h:263
#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:84
BLAZE_ALWAYS_INLINE auto load(size_t i, size_t j) const noexcept
Access to the SIMD elements of the matrix.
Definition: DMatDMatSchurExpr.h:512
ElementType_< ResultType > ElementType
Resulting element type.
Definition: DMatDMatSchurExpr.h:178
Compile time check for strictly lower triangular matrices.This type trait tests whether or not the gi...
Definition: IsStrictlyLower.h:86
typename T::ConstIterator ConstIterator_
Alias declaration for nested ConstIterator type definitions.The ConstIterator_ alias declaration prov...
Definition: Aliases.h:103
bool operator!=(const ConstIterator &rhs) const
Inequality comparison between two ConstIterator objects.
Definition: DMatDMatSchurExpr.h:339
bool operator==(const ConstIterator &rhs) const
Equality comparison between two ConstIterator objects.
Definition: DMatDMatSchurExpr.h:328
LeftOperand leftOperand() const noexcept
Returns the left-hand side dense matrix operand.
Definition: DMatDMatSchurExpr.h:568
Iterator over the elements of the dense matrix.
Definition: DMatDMatSchurExpr.h:196
Base class for all compute expression templates.The Computation class serves as a tag for all computa...
Definition: Computation.h:66
ConstIterator(LeftIteratorType left, RightIteratorType right)
Constructor for the ConstIterator class.
Definition: DMatDMatSchurExpr.h:226
Header file for the IntegralConstant class template.
Compile time evaluation of the number of columns of a matrix.The Columns type trait evaluates the num...
Definition: Columns.h:75
friend const ConstIterator operator-(const ConstIterator &it, size_t dec)
Subtraction between a ConstIterator and an integral value.
Definition: DMatDMatSchurExpr.h:430
Compile time evaluation of the number of rows of a matrix.The Rows type trait evaluates the number of...
Definition: Rows.h:75
Compile time logical and evaluation.The And alias declaration performs at compile time a logical and ...
Definition: And.h:76
ConstIterator end(size_t i) const
Returns an iterator just past the last non-zero element of row i.
Definition: DMatDMatSchurExpr.h:538
OppositeType_< ResultType > OppositeType
Result type with opposite storage order for expression template evaluations.
Definition: DMatDMatSchurExpr.h:176
auto load() const noexcept
Access to the SIMD elements of the matrix.
Definition: DMatDMatSchurExpr.h:317
RightOperand rhs_
Right-hand side dense matrix of the Schur product expression.
Definition: DMatDMatSchurExpr.h:632
typename T::TransposeType TransposeType_
Alias declaration for nested TransposeType type definitions.The TransposeType_ alias declaration prov...
Definition: Aliases.h:423
Header file for the IsUpper type trait.
ReturnType_< MT1 > RN1
Return type of the left-hand side dense matrix expression.
Definition: DMatDMatSchurExpr.h:117
void UNUSED_PARAMETER(const Args &...)
Suppression of unused parameter warnings.
Definition: Unused.h:81
bool canAlias(const T *alias) const noexcept
Returns whether the expression can alias with the given address alias.
Definition: DMatDMatSchurExpr.h:590
Header file for the IsHermitian type trait.
DMatDMatSchurExpr(const MT1 &lhs, const MT2 &rhs) noexcept
Constructor for the DMatDMatSchurExpr class.
Definition: DMatDMatSchurExpr.h:463
ResultType_< MT2 > RT2
Result type of the right-hand side dense matrix expression.
Definition: DMatDMatSchurExpr.h:116
System settings for the inline keywords.
Header file for the thresholds for matrix/vector and matrix/matrix multiplications.
#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
ElementType_< MT2 > ET2
Element type of the right-hand side dense matrix expression.
Definition: DMatDMatSchurExpr.h:122
MultExprTrait_< RN1, RN2 > ExprReturnType
Expression return type for the subscript operator.
Definition: DMatDMatSchurExpr.h:135
Compile time check whether the given type is an expression template.This type trait class tests wheth...
Definition: IsExpression.h:95
Header file for the IsExpression type trait class.
Header file for the function trace functionality.
RightOperand rightOperand() const noexcept
Returns the right-hand side dense matrix operand.
Definition: DMatDMatSchurExpr.h:578
bool isAligned() const noexcept
Returns whether the operands of the expression are properly aligned in memory.
Definition: DMatDMatSchurExpr.h:613
LeftIteratorType left_
Iterator to the current left-hand side element.
Definition: DMatDMatSchurExpr.h:437
Constraint on the data type.