DMatScalarDivExpr.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_EXPRESSIONS_DMATSCALARDIVEXPR_H_
36 #define _BLAZE_MATH_EXPRESSIONS_DMATSCALARDIVEXPR_H_
37 
38 
39 //*************************************************************************************************
40 // Includes
41 //*************************************************************************************************
42 
43 #include <iterator>
44 #include <blaze/math/Aliases.h>
47 #include <blaze/math/Exception.h>
53 #include <blaze/math/SIMD.h>
81 #include <blaze/system/Inline.h>
83 #include <blaze/util/Assert.h>
88 #include <blaze/util/EnableIf.h>
90 #include <blaze/util/InvalidType.h>
92 #include <blaze/util/mpl/And.h>
93 #include <blaze/util/mpl/If.h>
94 #include <blaze/util/mpl/Or.h>
95 #include <blaze/util/Types.h>
97 
98 
99 namespace blaze {
100 
101 //=================================================================================================
102 //
103 // CLASS DMATSCALARDIVEXPR
104 //
105 //=================================================================================================
106 
107 //*************************************************************************************************
114 template< typename MT // Type of the left-hand side dense matrix
115  , typename ST // Type of the right-hand side scalar value
116  , bool SO > // Storage order
117 class DMatScalarDivExpr : public DenseMatrix< DMatScalarDivExpr<MT,ST,SO>, SO >
118  , private MatScalarDivExpr
119  , private Computation
120 {
121  private:
122  //**Type definitions****************************************************************************
123  typedef ResultType_<MT> RT;
124  typedef ReturnType_<MT> RN;
127  //**********************************************************************************************
128 
129  //**Return type evaluation**********************************************************************
131 
136  enum : bool { returnExpr = !IsTemporary<RN>::value };
137 
140  //**********************************************************************************************
141 
142  //**Serial evaluation strategy******************************************************************
144 
150  enum : bool { useAssign = IsComputation<MT>::value && RequiresEvaluation<MT>::value };
151 
153  template< typename MT2 >
155  struct UseAssign {
156  enum : bool { value = useAssign };
157  };
159  //**********************************************************************************************
160 
161  //**Parallel evaluation strategy****************************************************************
163 
169  template< typename MT2 >
170  struct UseSMPAssign {
171  enum : bool { value = ( !MT2::smpAssignable || !MT::smpAssignable ) && useAssign };
172  };
174  //**********************************************************************************************
175 
176  public:
177  //**Type definitions****************************************************************************
183 
186 
189 
191  typedef If_< IsExpression<MT>, const MT, const MT& > LeftOperand;
192 
194  typedef ST RightOperand;
195  //**********************************************************************************************
196 
197  //**ConstIterator class definition**************************************************************
201  {
202  public:
203  //**Type definitions*************************************************************************
204  typedef std::random_access_iterator_tag IteratorCategory;
205  typedef ElementType ValueType;
206  typedef ElementType* PointerType;
207  typedef ElementType& ReferenceType;
209 
210  // STL iterator requirements
211  typedef IteratorCategory iterator_category;
212  typedef ValueType value_type;
213  typedef PointerType pointer;
214  typedef ReferenceType reference;
215  typedef DifferenceType difference_type;
216 
219  //*******************************************************************************************
220 
221  //**Constructor******************************************************************************
227  explicit inline ConstIterator( IteratorType iterator, RightOperand scalar )
228  : iterator_( iterator ) // Iterator to the current element
229  , scalar_ ( scalar ) // Scalar of the multiplication expression
230  {}
231  //*******************************************************************************************
232 
233  //**Addition assignment operator*************************************************************
239  inline ConstIterator& operator+=( size_t inc ) {
240  iterator_ += inc;
241  return *this;
242  }
243  //*******************************************************************************************
244 
245  //**Subtraction assignment operator**********************************************************
251  inline ConstIterator& operator-=( size_t dec ) {
252  iterator_ -= dec;
253  return *this;
254  }
255  //*******************************************************************************************
256 
257  //**Prefix increment operator****************************************************************
263  ++iterator_;
264  return *this;
265  }
266  //*******************************************************************************************
267 
268  //**Postfix increment operator***************************************************************
273  inline const ConstIterator operator++( int ) {
274  return ConstIterator( iterator_++ );
275  }
276  //*******************************************************************************************
277 
278  //**Prefix decrement operator****************************************************************
284  --iterator_;
285  return *this;
286  }
287  //*******************************************************************************************
288 
289  //**Postfix decrement operator***************************************************************
294  inline const ConstIterator operator--( int ) {
295  return ConstIterator( iterator_-- );
296  }
297  //*******************************************************************************************
298 
299  //**Element access operator******************************************************************
304  inline ReturnType operator*() const {
305  return *iterator_ / scalar_;
306  }
307  //*******************************************************************************************
308 
309  //**Load function****************************************************************************
314  inline auto load() const noexcept {
315  return iterator_.load() / set( scalar_ );
316  }
317  //*******************************************************************************************
318 
319  //**Equality operator************************************************************************
325  inline bool operator==( const ConstIterator& rhs ) const {
326  return iterator_ == rhs.iterator_;
327  }
328  //*******************************************************************************************
329 
330  //**Inequality operator**********************************************************************
336  inline bool operator!=( const ConstIterator& rhs ) const {
337  return iterator_ != rhs.iterator_;
338  }
339  //*******************************************************************************************
340 
341  //**Less-than operator***********************************************************************
347  inline bool operator<( const ConstIterator& rhs ) const {
348  return iterator_ < rhs.iterator_;
349  }
350  //*******************************************************************************************
351 
352  //**Greater-than operator********************************************************************
358  inline bool operator>( const ConstIterator& rhs ) const {
359  return iterator_ > rhs.iterator_;
360  }
361  //*******************************************************************************************
362 
363  //**Less-or-equal-than operator**************************************************************
369  inline bool operator<=( const ConstIterator& rhs ) const {
370  return iterator_ <= rhs.iterator_;
371  }
372  //*******************************************************************************************
373 
374  //**Greater-or-equal-than operator***********************************************************
380  inline bool operator>=( const ConstIterator& rhs ) const {
381  return iterator_ >= rhs.iterator_;
382  }
383  //*******************************************************************************************
384 
385  //**Subtraction operator*********************************************************************
391  inline DifferenceType operator-( const ConstIterator& rhs ) const {
392  return iterator_ - rhs.iterator_;
393  }
394  //*******************************************************************************************
395 
396  //**Addition operator************************************************************************
403  friend inline const ConstIterator operator+( const ConstIterator& it, size_t inc ) {
404  return ConstIterator( it.iterator_ + inc, it.scalar_ );
405  }
406  //*******************************************************************************************
407 
408  //**Addition operator************************************************************************
415  friend inline const ConstIterator operator+( size_t inc, const ConstIterator& it ) {
416  return ConstIterator( it.iterator_ + inc, it.scalar_ );
417  }
418  //*******************************************************************************************
419 
420  //**Subtraction operator*********************************************************************
427  friend inline const ConstIterator operator-( const ConstIterator& it, size_t dec ) {
428  return ConstIterator( it.iterator_ - dec, it.scalar_ );
429  }
430  //*******************************************************************************************
431 
432  private:
433  //**Member variables*************************************************************************
434  IteratorType iterator_;
435  RightOperand scalar_;
436  //*******************************************************************************************
437  };
438  //**********************************************************************************************
439 
440  //**Compilation flags***************************************************************************
442  enum : bool { simdEnabled = MT::simdEnabled &&
445  HasSIMDDiv<UnderlyingElement_<ET>,ST>::value ) };
446 
448  enum : bool { smpAssignable = MT::smpAssignable };
449  //**********************************************************************************************
450 
451  //**SIMD properties*****************************************************************************
453  enum : size_t { SIMDSIZE = SIMDTrait<ElementType>::size };
454  //**********************************************************************************************
455 
456  //**Constructor*********************************************************************************
462  explicit inline DMatScalarDivExpr( const MT& matrix, ST scalar ) noexcept
463  : matrix_( matrix ) // Left-hand side dense matrix of the division expression
464  , scalar_( scalar ) // Right-hand side scalar of the division expression
465  {}
466  //**********************************************************************************************
467 
468  //**Access operator*****************************************************************************
475  inline ReturnType operator()( size_t i, size_t j ) const {
476  BLAZE_INTERNAL_ASSERT( i < matrix_.rows() , "Invalid row access index" );
477  BLAZE_INTERNAL_ASSERT( j < matrix_.columns(), "Invalid column access index" );
478  return matrix_(i,j) / scalar_;
479  }
480  //**********************************************************************************************
481 
482  //**At function*********************************************************************************
490  inline ReturnType at( size_t i, size_t j ) const {
491  if( i >= matrix_.rows() ) {
492  BLAZE_THROW_OUT_OF_RANGE( "Invalid row access index" );
493  }
494  if( j >= matrix_.columns() ) {
495  BLAZE_THROW_OUT_OF_RANGE( "Invalid column access index" );
496  }
497  return (*this)(i,j);
498  }
499  //**********************************************************************************************
500 
501  //**Load function*******************************************************************************
508  BLAZE_ALWAYS_INLINE auto load( size_t i, size_t j ) const noexcept {
509  BLAZE_INTERNAL_ASSERT( i < matrix_.rows() , "Invalid row access index" );
510  BLAZE_INTERNAL_ASSERT( j < matrix_.columns(), "Invalid column access index" );
511  BLAZE_INTERNAL_ASSERT( !SO || ( i % SIMDSIZE == 0UL ), "Invalid row access index" );
512  BLAZE_INTERNAL_ASSERT( SO || ( j % SIMDSIZE == 0UL ), "Invalid column access index" );
513  return matrix_.load(i,j) / set( scalar_ );
514  }
515  //**********************************************************************************************
516 
517  //**Begin function******************************************************************************
523  inline ConstIterator begin( size_t i ) const {
524  return ConstIterator( matrix_.begin(i), scalar_ );
525  }
526  //**********************************************************************************************
527 
528  //**End function********************************************************************************
534  inline ConstIterator end( size_t i ) const {
535  return ConstIterator( matrix_.end(i), scalar_ );
536  }
537  //**********************************************************************************************
538 
539  //**Rows function*******************************************************************************
544  inline size_t rows() const noexcept {
545  return matrix_.rows();
546  }
547  //**********************************************************************************************
548 
549  //**Columns function****************************************************************************
554  inline size_t columns() const noexcept {
555  return matrix_.columns();
556  }
557  //**********************************************************************************************
558 
559  //**Left operand access*************************************************************************
564  inline LeftOperand leftOperand() const noexcept {
565  return matrix_;
566  }
567  //**********************************************************************************************
568 
569  //**Right operand access************************************************************************
574  inline RightOperand rightOperand() const noexcept {
575  return scalar_;
576  }
577  //**********************************************************************************************
578 
579  //**********************************************************************************************
585  template< typename T >
586  inline bool canAlias( const T* alias ) const noexcept {
587  return IsComputation<MT>::value && matrix_.canAlias( alias );
588  }
589  //**********************************************************************************************
590 
591  //**********************************************************************************************
597  template< typename T >
598  inline bool isAliased( const T* alias ) const noexcept {
599  return matrix_.isAliased( alias );
600  }
601  //**********************************************************************************************
602 
603  //**********************************************************************************************
608  inline bool isAligned() const noexcept {
609  return matrix_.isAligned();
610  }
611  //**********************************************************************************************
612 
613  //**********************************************************************************************
618  inline bool canSMPAssign() const noexcept {
619  return matrix_.canSMPAssign() ||
620  ( rows() * columns() >= SMP_DMATSCALARMULT_THRESHOLD );
621  }
622  //**********************************************************************************************
623 
624  private:
625  //**Member variables****************************************************************************
626  LeftOperand matrix_;
627  RightOperand scalar_;
628  //**********************************************************************************************
629 
630  //**Assignment to dense matrices****************************************************************
644  template< typename MT2 // Type of the target dense matrix
645  , bool SO2 > // Storage order of the target dense matrix
646  friend inline EnableIf_< UseAssign<MT2> >
647  assign( DenseMatrix<MT2,SO2>& lhs, const DMatScalarDivExpr& rhs )
648  {
650 
651  BLAZE_INTERNAL_ASSERT( (~lhs).rows() == rhs.rows() , "Invalid number of rows" );
652  BLAZE_INTERNAL_ASSERT( (~lhs).columns() == rhs.columns(), "Invalid number of columns" );
653 
654  assign( ~lhs, rhs.matrix_ );
655  assign( ~lhs, (~lhs) / rhs.scalar_ );
656  }
658  //**********************************************************************************************
659 
660  //**Assignment to sparse matrices***************************************************************
674  template< typename MT2 // Type of the target sparse matrix
675  , bool SO2 > // Storage order of the target sparse matrix
676  friend inline EnableIf_< UseAssign<MT2> >
677  assign( SparseMatrix<MT2,SO2>& lhs, const DMatScalarDivExpr& rhs )
678  {
680 
681  BLAZE_INTERNAL_ASSERT( (~lhs).rows() == rhs.rows() , "Invalid number of rows" );
682  BLAZE_INTERNAL_ASSERT( (~lhs).columns() == rhs.columns(), "Invalid number of columns" );
683 
684  assign( ~lhs, rhs.matrix_ );
685  (~lhs) /= rhs.scalar_;
686  }
688  //**********************************************************************************************
689 
690  //**Addition assignment to dense matrices*******************************************************
704  template< typename MT2 // Type of the target dense matrix
705  , bool SO2 > // Storage order of the target dense matrix
706  friend inline EnableIf_< UseAssign<MT2> >
707  addAssign( DenseMatrix<MT2,SO2>& lhs, const DMatScalarDivExpr& rhs )
708  {
710 
713  BLAZE_CONSTRAINT_MUST_BE_REFERENCE_TYPE( CompositeType_<ResultType> );
714 
715  BLAZE_INTERNAL_ASSERT( (~lhs).rows() == rhs.rows() , "Invalid number of rows" );
716  BLAZE_INTERNAL_ASSERT( (~lhs).columns() == rhs.columns(), "Invalid number of columns" );
717 
718  const ResultType tmp( serial( rhs ) );
719  addAssign( ~lhs, tmp );
720  }
722  //**********************************************************************************************
723 
724  //**Addition assignment to sparse matrices******************************************************
725  // No special implementation for the addition assignment to sparse matrices.
726  //**********************************************************************************************
727 
728  //**Subtraction assignment to dense matrices****************************************************
742  template< typename MT2 // Type of the target dense matrix
743  , bool SO2 > // Storage order of the target dense matrix
744  friend inline EnableIf_< UseAssign<MT2> >
745  subAssign( DenseMatrix<MT2,SO2>& lhs, const DMatScalarDivExpr& rhs )
746  {
748 
751  BLAZE_CONSTRAINT_MUST_BE_REFERENCE_TYPE( CompositeType_<ResultType> );
752 
753  BLAZE_INTERNAL_ASSERT( (~lhs).rows() == rhs.rows() , "Invalid number of rows" );
754  BLAZE_INTERNAL_ASSERT( (~lhs).columns() == rhs.columns(), "Invalid number of columns" );
755 
756  const ResultType tmp( serial( rhs ) );
757  subAssign( ~lhs, tmp );
758  }
760  //**********************************************************************************************
761 
762  //**Subtraction assignment to sparse matrices***************************************************
763  // No special implementation for the subtraction assignment to sparse matrices.
764  //**********************************************************************************************
765 
766  //**Multiplication assignment to dense matrices*************************************************
767  // No special implementation for the multiplication assignment to dense matrices.
768  //**********************************************************************************************
769 
770  //**Multiplication assignment to sparse matrices************************************************
771  // No special implementation for the multiplication assignment to sparse matrices.
772  //**********************************************************************************************
773 
774  //**SMP assignment to dense matrices************************************************************
788  template< typename MT2 // Type of the target dense matrix
789  , bool SO2 > // Storage order of the target dense matrix
790  friend inline EnableIf_< UseSMPAssign<MT2> >
791  smpAssign( DenseMatrix<MT2,SO2>& lhs, const DMatScalarDivExpr& rhs )
792  {
794 
795  BLAZE_INTERNAL_ASSERT( (~lhs).rows() == rhs.rows() , "Invalid number of rows" );
796  BLAZE_INTERNAL_ASSERT( (~lhs).columns() == rhs.columns(), "Invalid number of columns" );
797 
798  smpAssign( ~lhs, rhs.matrix_ );
799  smpAssign( ~lhs, (~lhs) / rhs.scalar_ );
800  }
802  //**********************************************************************************************
803 
804  //**SMP assignment to sparse matrices***********************************************************
818  template< typename MT2 // Type of the target sparse matrix
819  , bool SO2 > // Storage order of the target sparse matrix
820  friend inline EnableIf_< UseSMPAssign<MT2> >
821  smpAssign( SparseMatrix<MT2,SO2>& lhs, const DMatScalarDivExpr& rhs )
822  {
824 
825  BLAZE_INTERNAL_ASSERT( (~lhs).rows() == rhs.rows() , "Invalid number of rows" );
826  BLAZE_INTERNAL_ASSERT( (~lhs).columns() == rhs.columns(), "Invalid number of columns" );
827 
828  smpAssign( ~lhs, rhs.matrix_ );
829  (~lhs) /= rhs.scalar_;
830  }
832  //**********************************************************************************************
833 
834  //**SMP addition assignment to dense matrices***************************************************
848  template< typename MT2 // Type of the target dense matrix
849  , bool SO2 > // Storage order of the target dense matrix
850  friend inline EnableIf_< UseSMPAssign<MT2> >
851  smpAddAssign( DenseMatrix<MT2,SO2>& lhs, const DMatScalarDivExpr& rhs )
852  {
854 
857  BLAZE_CONSTRAINT_MUST_BE_REFERENCE_TYPE( CompositeType_<ResultType> );
858 
859  BLAZE_INTERNAL_ASSERT( (~lhs).rows() == rhs.rows() , "Invalid number of rows" );
860  BLAZE_INTERNAL_ASSERT( (~lhs).columns() == rhs.columns(), "Invalid number of columns" );
861 
862  const ResultType tmp( rhs );
863  smpAddAssign( ~lhs, tmp );
864  }
866  //**********************************************************************************************
867 
868  //**SMP addition assignment to sparse matrices**************************************************
869  // No special implementation for the SMP addition assignment to sparse matrices.
870  //**********************************************************************************************
871 
872  //**SMP subtraction assignment to dense matrices************************************************
886  template< typename MT2 // Type of the target dense matrix
887  , bool SO2 > // Storage order of the target dense matrix
888  friend inline EnableIf_< UseSMPAssign<MT2> >
889  smpSubAssign( DenseMatrix<MT2,SO2>& lhs, const DMatScalarDivExpr& rhs )
890  {
892 
895  BLAZE_CONSTRAINT_MUST_BE_REFERENCE_TYPE( CompositeType_<ResultType> );
896 
897  BLAZE_INTERNAL_ASSERT( (~lhs).rows() == rhs.rows() , "Invalid number of rows" );
898  BLAZE_INTERNAL_ASSERT( (~lhs).columns() == rhs.columns(), "Invalid number of columns" );
899 
900  const ResultType tmp( rhs );
901  smpSubAssign( ~lhs, tmp );
902  }
904  //**********************************************************************************************
905 
906  //**SMP subtraction assignment to sparse matrices***********************************************
907  // No special implementation for the SMP subtraction assignment to sparse matrices.
908  //**********************************************************************************************
909 
910  //**SMP multiplication assignment to dense matrices*********************************************
911  // No special implementation for the SMP multiplication assignment to dense matrices.
912  //**********************************************************************************************
913 
914  //**SMP multiplication assignment to sparse matrices********************************************
915  // No special implementation for the SMP multiplication assignment to sparse matrices.
916  //**********************************************************************************************
917 
918  //**Compile time checks*************************************************************************
925  BLAZE_CONSTRAINT_MUST_BE_SAME_TYPE( ST, RightOperand );
927  //**********************************************************************************************
928 };
929 //*************************************************************************************************
930 
931 
932 
933 
934 //=================================================================================================
935 //
936 // GLOBAL BINARY ARITHMETIC OPERATORS
937 //
938 //=================================================================================================
939 
940 //*************************************************************************************************
962 template< typename T1 // Type of the left-hand side dense matrix
963  , bool SO // Storage order of the left-hand side dense matrix
964  , typename T2 > // Type of the right-hand side scalar
965 inline const EnableIf_< IsNumeric<T2>, DivExprTrait_<T1,T2> >
966  operator/( const DenseMatrix<T1,SO>& mat, T2 scalar )
967 {
969 
970  BLAZE_USER_ASSERT( scalar != T2(0), "Division by zero detected" );
971 
973  typedef RightOperand_<ReturnType> ScalarType;
974 
976  return ReturnType( ~mat, ScalarType(1)/ScalarType(scalar) );
977  }
978  else {
979  return ReturnType( ~mat, scalar );
980  }
981 }
982 //*************************************************************************************************
983 
984 
985 
986 
987 //=================================================================================================
988 //
989 // GLOBAL RESTRUCTURING BINARY ARITHMETIC OPERATORS
990 //
991 //=================================================================================================
992 
993 //*************************************************************************************************
1006 template< typename MT // Type of the dense matrix of the left-hand side expression
1007  , typename ST1 // Type of the scalar of the left-hand side expression
1008  , bool SO // Storage order of the dense matrix
1009  , typename ST2 > // Type of the right-hand side scalar
1010 inline const EnableIf_< And< IsNumeric<ST2>, Or< IsInvertible<ST1>, IsInvertible<ST2> > >
1011  , MultExprTrait_< DMatScalarDivExpr<MT,ST1,SO>, ST2 > >
1012  operator*( const DMatScalarDivExpr<MT,ST1,SO>& mat, ST2 scalar )
1013 {
1015 
1016  return mat.leftOperand() * ( scalar / mat.rightOperand() );
1017 }
1019 //*************************************************************************************************
1020 
1021 
1022 //*************************************************************************************************
1035 template< typename ST1 // Type of the left-hand side scalar
1036  , typename MT // Type of the dense matrix of the right-hand side expression
1037  , typename ST2 // Type of the scalar of the right-hand side expression
1038  , bool SO > // Storage order of the dense matrix
1039 inline const EnableIf_< And< IsNumeric<ST1>, Or< IsInvertible<ST1>, IsInvertible<ST2> > >
1040  , MultExprTrait_< ST1, DMatScalarDivExpr<MT,ST2,SO> > >
1041  operator*( ST1 scalar, const DMatScalarDivExpr<MT,ST2,SO>& mat )
1042 {
1044 
1045  return mat.leftOperand() * ( scalar / mat.rightOperand() );
1046 }
1048 //*************************************************************************************************
1049 
1050 
1051 //*************************************************************************************************
1064 template< typename MT // Type of the dense matrix of the left-hand side expression
1065  , typename ST1 // Type of the scalar of the left-hand side expression
1066  , bool SO // Storage order of the dense matrix
1067  , typename ST2 > // Type of the right-hand side scalar
1068 inline const EnableIf_< IsNumeric<ST2>
1069  , DivExprTrait_< MT, MultTrait_<ST1,ST2> > >
1070  operator/( const DMatScalarDivExpr<MT,ST1,SO>& mat, ST2 scalar )
1071 {
1073 
1074  BLAZE_USER_ASSERT( scalar != ST2(0), "Division by zero detected" );
1075 
1076  typedef MultTrait_<ST1,ST2> MultType;
1077  typedef DivExprTrait_<MT,MultType> ReturnType;
1078  typedef RightOperand_<ReturnType> ScalarType;
1079 
1080  if( IsMultExpr<ReturnType>::value ) {
1081  return ReturnType( mat.leftOperand(), ScalarType(1)/( mat.rightOperand() * scalar ) );
1082  }
1083  else {
1084  return ReturnType( mat.leftOperand(), mat.rightOperand() * scalar );
1085  }
1086 }
1088 //*************************************************************************************************
1089 
1090 
1091 
1092 
1093 //=================================================================================================
1094 //
1095 // ROWS SPECIALIZATIONS
1096 //
1097 //=================================================================================================
1098 
1099 //*************************************************************************************************
1101 template< typename MT, typename ST, bool SO >
1102 struct Rows< DMatScalarDivExpr<MT,ST,SO> > : public Columns<MT>
1103 {};
1105 //*************************************************************************************************
1106 
1107 
1108 
1109 
1110 //=================================================================================================
1111 //
1112 // COLUMNS SPECIALIZATIONS
1113 //
1114 //=================================================================================================
1115 
1116 //*************************************************************************************************
1118 template< typename MT, typename ST, bool SO >
1119 struct Columns< DMatScalarDivExpr<MT,ST,SO> > : public Rows<MT>
1120 {};
1122 //*************************************************************************************************
1123 
1124 
1125 
1126 
1127 //=================================================================================================
1128 //
1129 // ISALIGNED SPECIALIZATIONS
1130 //
1131 //=================================================================================================
1132 
1133 //*************************************************************************************************
1135 template< typename MT, typename ST, bool SO >
1136 struct IsAligned< DMatScalarDivExpr<MT,ST,SO> >
1137  : public BoolConstant< IsAligned<MT>::value >
1138 {};
1140 //*************************************************************************************************
1141 
1142 
1143 
1144 
1145 //=================================================================================================
1146 //
1147 // ISPADDED SPECIALIZATIONS
1148 //
1149 //=================================================================================================
1150 
1151 //*************************************************************************************************
1153 template< typename MT, typename ST, bool SO >
1154 struct IsPadded< DMatScalarDivExpr<MT,ST,SO> >
1155  : public BoolConstant< IsPadded<MT>::value >
1156 {};
1158 //*************************************************************************************************
1159 
1160 
1161 
1162 
1163 //=================================================================================================
1164 //
1165 // ISSYMMETRIC SPECIALIZATIONS
1166 //
1167 //=================================================================================================
1168 
1169 //*************************************************************************************************
1171 template< typename MT, typename ST, bool SO >
1172 struct IsSymmetric< DMatScalarDivExpr<MT,ST,SO> >
1173  : public BoolConstant< IsSymmetric<MT>::value >
1174 {};
1176 //*************************************************************************************************
1177 
1178 
1179 
1180 
1181 //=================================================================================================
1182 //
1183 // ISHERMITIAN SPECIALIZATIONS
1184 //
1185 //=================================================================================================
1186 
1187 //*************************************************************************************************
1189 template< typename MT, typename ST, bool SO >
1190 struct IsHermitian< DMatScalarDivExpr<MT,ST,SO> >
1191  : public BoolConstant< IsHermitian<MT>::value >
1192 {};
1194 //*************************************************************************************************
1195 
1196 
1197 
1198 
1199 //=================================================================================================
1200 //
1201 // ISLOWER SPECIALIZATIONS
1202 //
1203 //=================================================================================================
1204 
1205 //*************************************************************************************************
1207 template< typename MT, typename ST, bool SO >
1208 struct IsLower< DMatScalarDivExpr<MT,ST,SO> >
1209  : public BoolConstant< IsLower<MT>::value >
1210 {};
1212 //*************************************************************************************************
1213 
1214 
1215 
1216 
1217 //=================================================================================================
1218 //
1219 // ISSTRICTLYLOWER SPECIALIZATIONS
1220 //
1221 //=================================================================================================
1222 
1223 //*************************************************************************************************
1225 template< typename MT, typename ST, bool SO >
1226 struct IsStrictlyLower< DMatScalarDivExpr<MT,ST,SO> >
1227  : public BoolConstant< IsStrictlyLower<MT>::value >
1228 {};
1230 //*************************************************************************************************
1231 
1232 
1233 
1234 
1235 //=================================================================================================
1236 //
1237 // ISUPPER SPECIALIZATIONS
1238 //
1239 //=================================================================================================
1240 
1241 //*************************************************************************************************
1243 template< typename MT, typename ST, bool SO >
1244 struct IsUpper< DMatScalarDivExpr<MT,ST,SO> >
1245  : public BoolConstant< IsUpper<MT>::value >
1246 {};
1248 //*************************************************************************************************
1249 
1250 
1251 
1252 
1253 //=================================================================================================
1254 //
1255 // ISSTRICTLYUPPER SPECIALIZATIONS
1256 //
1257 //=================================================================================================
1258 
1259 //*************************************************************************************************
1261 template< typename MT, typename ST, bool SO >
1262 struct IsStrictlyUpper< DMatScalarDivExpr<MT,ST,SO> >
1263  : public BoolConstant< IsStrictlyUpper<MT>::value >
1264 {};
1266 //*************************************************************************************************
1267 
1268 
1269 
1270 
1271 //=================================================================================================
1272 //
1273 // DMATSCALARMULTEXPRTRAIT SPECIALIZATIONS
1274 //
1275 //=================================================================================================
1276 
1277 //*************************************************************************************************
1279 template< typename MT, typename ST1, typename ST2 >
1280 struct DMatScalarMultExprTrait< DMatScalarDivExpr<MT,ST1,false>, ST2 >
1281 {
1282  private:
1283  //**********************************************************************************************
1284  typedef DivTrait_<ST2,ST1> ScalarType;
1285  //**********************************************************************************************
1286 
1287  public:
1288  //**********************************************************************************************
1289  using Type = If_< And< IsDenseMatrix<MT>, IsRowMajorMatrix<MT>, IsNumeric<ST1>, IsNumeric<ST2> >
1290  , If_< IsInvertible<ScalarType>
1291  , DMatScalarMultExprTrait_<MT,ScalarType>
1292  , DMatScalarMultExpr< DMatScalarDivExpr<MT,ST1,false>, ST2, false > >
1293  , INVALID_TYPE >;
1294  //**********************************************************************************************
1295 };
1297 //*************************************************************************************************
1298 
1299 
1300 
1301 
1302 //=================================================================================================
1303 //
1304 // TDMATSCALARMULTEXPRTRAIT SPECIALIZATIONS
1305 //
1306 //=================================================================================================
1307 
1308 //*************************************************************************************************
1310 template< typename MT, typename ST1, typename ST2 >
1311 struct TDMatScalarMultExprTrait< DMatScalarDivExpr<MT,ST1,true>, ST2 >
1312 {
1313  private:
1314  //**********************************************************************************************
1315  typedef DivTrait_<ST2,ST1> ScalarType;
1316  //**********************************************************************************************
1317 
1318  public:
1319  //**********************************************************************************************
1320  using Type = If_< And< IsDenseMatrix<MT>, IsColumnMajorMatrix<MT>, IsNumeric<ST1>, IsNumeric<ST2> >
1321  , If_< IsInvertible<ScalarType>
1322  , DMatScalarMultExprTrait_<MT,ScalarType>
1323  , DMatScalarMultExpr< DMatScalarDivExpr<MT,ST1,true>, ST2, true > >
1324  , INVALID_TYPE >;
1325  //**********************************************************************************************
1326 };
1328 //*************************************************************************************************
1329 
1330 
1331 
1332 
1333 //=================================================================================================
1334 //
1335 // SUBMATRIXEXPRTRAIT SPECIALIZATIONS
1336 //
1337 //=================================================================================================
1338 
1339 //*************************************************************************************************
1341 template< typename MT, typename ST, bool SO, bool AF >
1342 struct SubmatrixExprTrait< DMatScalarDivExpr<MT,ST,SO>, AF >
1343 {
1344  public:
1345  //**********************************************************************************************
1346  using Type = DivExprTrait_< SubmatrixExprTrait_<const MT,AF>, ST >;
1347  //**********************************************************************************************
1348 };
1350 //*************************************************************************************************
1351 
1352 
1353 
1354 
1355 //=================================================================================================
1356 //
1357 // ROWEXPRTRAIT SPECIALIZATIONS
1358 //
1359 //=================================================================================================
1360 
1361 //*************************************************************************************************
1363 template< typename MT, typename ST, bool SO >
1364 struct RowExprTrait< DMatScalarDivExpr<MT,ST,SO> >
1365 {
1366  public:
1367  //**********************************************************************************************
1368  using Type = DivExprTrait_< RowExprTrait_<const MT>, ST >;
1369  //**********************************************************************************************
1370 };
1372 //*************************************************************************************************
1373 
1374 
1375 
1376 
1377 //=================================================================================================
1378 //
1379 // COLUMNEXPRTRAIT SPECIALIZATIONS
1380 //
1381 //=================================================================================================
1382 
1383 //*************************************************************************************************
1385 template< typename MT, typename ST, bool SO >
1386 struct ColumnExprTrait< DMatScalarDivExpr<MT,ST,SO> >
1387 {
1388  public:
1389  //**********************************************************************************************
1390  using Type = DivExprTrait_< ColumnExprTrait_<const MT>, ST >;
1391  //**********************************************************************************************
1392 };
1394 //*************************************************************************************************
1395 
1396 } // namespace blaze
1397 
1398 #endif
Pointer difference type of the Blaze library.
Header file for auxiliary alias declarations.
Data type constraint.
Compile time check whether the given type is a computational expression template.This type trait clas...
Definition: IsComputation.h:72
Compile time check for numeric types.This type trait tests whether or not the given template paramete...
Definition: IsNumeric.h:79
Constraint on the data type.
#define BLAZE_USER_ASSERT(expr, msg)
Run time assertion macro for user checks.In case of an invalid run time expression, the program execution is terminated. The BLAZE_USER_ASSERT macro can be disabled by setting the BLAZE_USER_ASSERT flag to zero or by defining NDEBUG during the compilation.
Definition: Assert.h:117
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.
const DMatDMatMultExpr< T1, T2 > operator*(const DenseMatrix< T1, false > &lhs, const DenseMatrix< T2, false > &rhs)
Multiplication operator for the multiplication of two row-major dense matrices ( ).
Definition: DMatDMatMultExpr.h:7800
ElementType_< ResultType > ElementType
Resulting element type.
Definition: DMatScalarDivExpr.h:182
Header file for basic type definitions.
Compile time check whether the given type is a multiplication expression template.This type trait class tests whether or not the given type Type is a multiplication expression template (i.e. an expression representing an element-wise vector multiplication, a matrix/vector multiplication, a vector/matrix multiplication, or a matrix multiplication). In order to qualify as a valid multiplication expression template, the given type has to derive (publicly or privately) from the MultExpr base class. In case the given type is a valid multiplication expression template, the value member constant is set to true, the nested type definition Type is TrueType, and the class derives from TrueType. Otherwise value is set to false, Type is FalseType, and the class derives from FalseType.
Definition: IsMultExpr.h:73
size_t rows() const noexcept
Returns the current number of rows of the matrix.
Definition: DMatScalarDivExpr.h:544
ValueType value_type
Type of the underlying elements.
Definition: DMatScalarDivExpr.h:212
Base class for all matrix/scalar divsion expression templates.The MatScalarDivExpr class serves as a ...
Definition: MatScalarDivExpr.h:65
ConstIterator & operator--()
Pre-decrement operator.
Definition: DMatScalarDivExpr.h:283
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:160
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
bool operator!=(const ConstIterator &rhs) const
Inequality comparison between two ConstIterator objects.
Definition: DMatScalarDivExpr.h:336
#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
Header file for the ColumnExprTrait class template.
DMatScalarDivExpr< MT, ST, SO > This
Type of this DMatScalarDivExpr instance.
Definition: DMatScalarDivExpr.h:178
bool operator>(const ConstIterator &rhs) const
Greater-than comparison between two ConstIterator objects.
Definition: DMatScalarDivExpr.h:358
Header file for the IsColumnMajorMatrix type trait.
Iterator over the elements of the dense matrix.
Definition: DMatScalarDivExpr.h:200
DifferenceType operator-(const ConstIterator &rhs) const
Calculating the number of elements between two iterators.
Definition: DMatScalarDivExpr.h:391
RightOperand rightOperand() const noexcept
Returns the right-hand side scalar operand.
Definition: DMatScalarDivExpr.h:574
Header file for the And class template.
Expression object for divisions of a dense matrix by a scalar.The DMatScalarDivExpr class represents ...
Definition: DMatScalarDivExpr.h:117
ConstIterator & operator+=(size_t inc)
Addition assignment operator.
Definition: DMatScalarDivExpr.h:239
const DMatSerialExpr< MT, SO > serial(const DenseMatrix< MT, SO > &dm)
Forces the serial evaluation of the given dense matrix expression dm.
Definition: DMatSerialExpr.h:723
Header file for the Computation base class.
Header file for the RequiresEvaluation type trait.
typename T::ResultType ResultType_
Alias declaration for nested ResultType type definitions.The ResultType_ alias declaration provides a...
Definition: Aliases.h:323
ElementType ValueType
Type of the underlying elements.
Definition: DMatScalarDivExpr.h:205
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:129
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:109
If_< IsExpression< MT >, const MT, const MT & > LeftOperand
Composite type of the left-hand side dense matrix expression.
Definition: DMatScalarDivExpr.h:191
Constraint on the data type.
ConstIterator & operator-=(size_t dec)
Subtraction assignment operator.
Definition: DMatScalarDivExpr.h:251
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:343
Header file for the DivExprTrait class template.
LeftOperand leftOperand() const noexcept
Returns the left-hand side dense matrix operand.
Definition: DMatScalarDivExpr.h:564
ptrdiff_t DifferenceType
Difference between two iterators.
Definition: DMatScalarDivExpr.h:208
Constraint on the data type.
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
TransposeType_< ResultType > TransposeType
Transpose type for expression template evaluations.
Definition: DMatScalarDivExpr.h:181
ReturnType at(size_t i, size_t j) const
Checked access to the matrix elements.
Definition: DMatScalarDivExpr.h:490
const EnableIf_< IsNumeric< T2 >, DivExprTrait_< T1, T2 > > operator/(const DenseMatrix< T1, SO > &mat, T2 scalar)
Division operator for the division of a dense matrix by a scalar value ( ).
Definition: DMatScalarDivExpr.h:966
Header file for the IsTemporary type trait class.
Header file for the multiplication trait.
Header file for the IsStrictlyUpper type trait.
ElementType & ReferenceType
Reference return type.
Definition: DMatScalarDivExpr.h:207
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
IfTrue_< useAssign, const ResultType, const DMatScalarDivExpr & > CompositeType
Data type for composite expression templates.
Definition: DMatScalarDivExpr.h:188
Header file for the If class template.
ReferenceType reference
Reference return type.
Definition: DMatScalarDivExpr.h:214
Header file for the IsMultExpr type trait class.
const Element * ConstIterator
Iterator over constant elements.
Definition: CompressedMatrix.h:2647
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:98
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
Header file for the DenseMatrix base class.
Header file for the Columns type trait.
typename T::ElementType ElementType_
Alias declaration for nested ElementType type definitions.The ElementType_ alias declaration provides...
Definition: Aliases.h:163
DMatScalarDivExpr(const MT &matrix, ST scalar) noexcept
Constructor for the DMatScalarDivExpr class.
Definition: DMatScalarDivExpr.h:462
Header file for all SIMD functionality.
Availability of a SIMD division for the given data types.Depending on the available instruction set (...
Definition: HasSIMDDiv.h:144
#define BLAZE_CONSTRAINT_MUST_BE_SAME_TYPE(A, B)
Data type constraint.In case the two types A and B are not the same (ignoring all cv-qualifiers of bo...
Definition: SameType.h:71
Header file for the IsLower type trait.
Header file for the IsAligned type trait.
IteratorType iterator_
Iterator to the current element.
Definition: DMatScalarDivExpr.h:434
#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:60
const ConstIterator operator++(int)
Post-increment operator.
Definition: DMatScalarDivExpr.h:273
const ConstIterator operator--(int)
Post-decrement operator.
Definition: DMatScalarDivExpr.h:294
Constraints on the storage order of matrix types.
PointerType pointer
Pointer return type.
Definition: DMatScalarDivExpr.h:213
Header file for the exception macros of the math module.
bool isAliased(const T *alias) const noexcept
Returns whether the expression is aliased with the given address alias.
Definition: DMatScalarDivExpr.h:598
ElementType * PointerType
Pointer return type.
Definition: DMatScalarDivExpr.h:206
RightOperand scalar_
Scalar of the multiplication expression.
Definition: DMatScalarDivExpr.h:435
Header file for the RowExprTrait class template.
Header file for all forward declarations for expression class templates.
Header file for the IsDenseMatrix type trait.
Header file for the EnableIf class template.
Header file for the IsStrictlyLower type trait.
Header file for the IsPadded type trait.
ConstIterator & operator++()
Pre-increment operator.
Definition: DMatScalarDivExpr.h:262
typename DivTrait< T1, T2 >::Type DivTrait_
Auxiliary alias declaration for the DivTrait class template.The DivTrait_ alias declaration provides ...
Definition: DivTrait.h:245
Header file for the IsNumeric type trait.
BLAZE_ALWAYS_INLINE const EnableIf_< And< IsIntegral< T >, HasSize< T, 1UL > >, If_< IsSigned< T >, SIMDint8, SIMDuint8 > > set(T value) noexcept
Sets all values in the vector to the given 1-byte integral value.
Definition: Set.h:76
bool operator>=(const ConstIterator &rhs) const
Greater-than comparison between two ConstIterator objects.
Definition: DMatScalarDivExpr.h:380
LeftOperand matrix_
Left-hand side dense matrix of the division expression.
Definition: DMatScalarDivExpr.h:626
RightOperand scalar_
Right-hand side scalar of the division expression.
Definition: DMatScalarDivExpr.h:627
ConstIterator(IteratorType iterator, RightOperand scalar)
Constructor for the ConstIterator class.
Definition: DMatScalarDivExpr.h:227
DivTrait_< RT, ST > ResultType
Result type for expression template evaluations.
Definition: DMatScalarDivExpr.h:179
Header file for the SubmatrixExprTrait class template.
Header file for run time assertion macros.
bool canAlias(const T *alias) const noexcept
Returns whether the expression can alias with the given address alias.
Definition: DMatScalarDivExpr.h:586
Utility type for generic codes.
Header file for the division trait.
friend const ConstIterator operator-(const ConstIterator &it, size_t dec)
Subtraction between a ConstIterator and an integral value.
Definition: DMatScalarDivExpr.h:427
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:160
Constraint on the data type.
#define BLAZE_CONSTRAINT_MUST_BE_NUMERIC_TYPE(T)
Constraint on the data type.In case the given data type T is not a numeric (integral or floating poin...
Definition: Numeric.h:61
SIMD characteristics of data types.The SIMDTrait class template provides the SIMD characteristics of ...
Definition: SIMDTrait.h:296
size_t columns() const noexcept
Returns the current number of columns of the matrix.
Definition: DMatScalarDivExpr.h:554
IteratorCategory iterator_category
The iterator category.
Definition: DMatScalarDivExpr.h:211
DivExprTrait_< RN, ST > ExprReturnType
Expression return type for the subscript operator.
Definition: DMatScalarDivExpr.h:139
auto load() const noexcept
Access to the SIMD elements of the matrix.
Definition: DMatScalarDivExpr.h:314
ST RightOperand
Composite type of the right-hand side scalar value.
Definition: DMatScalarDivExpr.h:194
IntegralConstant< bool, B > BoolConstant
Generic wrapper for a compile time constant boolean value.The BoolConstant class template represents ...
Definition: IntegralConstant.h:100
Header file for the IsInvertible type trait.
typename EnableIf< Condition, T >::Type EnableIf_
Auxiliary alias declaration for the EnableIf class template.The EnableIf_ alias declaration provides ...
Definition: EnableIf.h:223
typename T::OppositeType OppositeType_
Alias declaration for nested OppositeType type definitions.The OppositeType_ alias declaration provid...
Definition: Aliases.h:243
ConstIterator begin(size_t i) const
Returns an iterator to the first non-zero element of row i.
Definition: DMatScalarDivExpr.h:523
#define BLAZE_CONSTRAINT_MUST_NOT_BE_FLOATING_POINT_TYPE(T)
Constraint on the data type.In case the given data type T is a floating point data type...
Definition: FloatingPoint.h:81
bool isAligned() const noexcept
Returns whether the operands of the expression are properly aligned in memory.
Definition: DMatScalarDivExpr.h:608
bool operator<(const ConstIterator &rhs) const
Less-than comparison between two ConstIterator objects.
Definition: DMatScalarDivExpr.h:347
typename T::ConstIterator ConstIterator_
Alias declaration for nested ConstIterator type definitions.The ConstIterator_ alias declaration prov...
Definition: Aliases.h:103
std::random_access_iterator_tag IteratorCategory
The iterator category.
Definition: DMatScalarDivExpr.h:204
Header file for the HasSIMDDiv type trait.
Header file for the IsRowMajorMatrix type trait.
bool operator<=(const ConstIterator &rhs) const
Less-than comparison between two ConstIterator objects.
Definition: DMatScalarDivExpr.h:369
Header file for the IsComputation type trait class.
typename DivExprTrait< T1, T2 >::Type DivExprTrait_
Auxiliary alias declaration for the DivExprTrait class template.The DivExprTrait_ alias declaration p...
Definition: DivExprTrait.h:196
CompositeType_< MT > CT
Composite type of the dense matrix expression.
Definition: DMatScalarDivExpr.h:126
Base class for all compute expression templates.The Computation class serves as a tag for all computa...
Definition: Computation.h:59
ReturnType operator()(size_t i, size_t j) const
2D-access to the matrix elements.
Definition: DMatScalarDivExpr.h:475
ConstIterator end(size_t i) const
Returns an iterator just past the last non-zero element of row i.
Definition: DMatScalarDivExpr.h:534
friend const ConstIterator operator+(const ConstIterator &it, size_t inc)
Addition between a ConstIterator and an integral value.
Definition: DMatScalarDivExpr.h:403
BLAZE_ALWAYS_INLINE auto load(size_t i, size_t j) const noexcept
Access to the SIMD elements of the matrix.
Definition: DMatScalarDivExpr.h:508
#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
bool operator==(const ConstIterator &rhs) const
Equality comparison between two ConstIterator objects.
Definition: DMatScalarDivExpr.h:325
Header file for the IntegralConstant class template.
friend const ConstIterator operator+(size_t inc, const ConstIterator &it)
Addition between an integral value and a ConstIterator.
Definition: DMatScalarDivExpr.h:415
ConstIterator_< MT > IteratorType
ConstIterator type of the dense matrix expression.
Definition: DMatScalarDivExpr.h:218
bool canSMPAssign() const noexcept
Returns whether the expression can be used in SMP assignments.
Definition: DMatScalarDivExpr.h:618
typename T::RightOperand RightOperand_
Alias declaration for nested RightOperand type definitions.The RightOperand_ alias declaration provid...
Definition: Aliases.h:363
typename T::TransposeType TransposeType_
Alias declaration for nested TransposeType type definitions.The TransposeType_ alias declaration prov...
Definition: Aliases.h:403
Header file for the IsUpper type trait.
Header file for the MatScalarDivExpr base class.
Header file for the IsHermitian type trait.
ResultType_< MT > RT
Result type of the dense matrix expression.
Definition: DMatScalarDivExpr.h:123
OppositeType_< ResultType > OppositeType
Result type with opposite storage order for expression template evaluations.
Definition: DMatScalarDivExpr.h:180
System settings for the inline keywords.
Header file for the thresholds for matrix/vector and matrix/matrix multiplications.
ElementType_< MT > ET
Element type of the dense matrix expression.
Definition: DMatScalarDivExpr.h:125
DifferenceType difference_type
Difference between two iterators.
Definition: DMatScalarDivExpr.h:215
#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
ReturnType operator*() const
Direct access to the element at the current iterator position.
Definition: DMatScalarDivExpr.h:304
const IfTrue_< returnExpr, ExprReturnType, ElementType > ReturnType
Return type for expression template evaluations.
Definition: DMatScalarDivExpr.h:185
Header file for the IsExpression type trait class.
Header file for the FunctionTrace class.
ReturnType_< MT > RN
Return type of the dense matrix expression.
Definition: DMatScalarDivExpr.h:124