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>
50 #include <blaze/math/Intrinsics.h>
78 #include <blaze/system/Inline.h>
80 #include <blaze/util/Assert.h>
85 #include <blaze/util/EnableIf.h>
86 #include <blaze/util/Exception.h>
87 #include <blaze/util/InvalidType.h>
89 #include <blaze/util/mpl/And.h>
90 #include <blaze/util/SelectType.h>
91 #include <blaze/util/Types.h>
95 
96 
97 namespace blaze {
98 
99 //=================================================================================================
100 //
101 // CLASS DMATSCALARDIVEXPR
102 //
103 //=================================================================================================
104 
105 //*************************************************************************************************
112 template< typename MT // Type of the left-hand side dense matrix
113  , typename ST // Type of the right-hand side scalar value
114  , bool SO > // Storage order
115 class DMatScalarDivExpr : public DenseMatrix< DMatScalarDivExpr<MT,ST,SO>, SO >
116  , private MatScalarDivExpr
117  , private Computation
118 {
119  private:
120  //**Type definitions****************************************************************************
121  typedef typename MT::ResultType RT;
122  typedef typename MT::ReturnType RN;
123  typedef typename MT::ElementType ET;
124  typedef typename MT::CompositeType CT;
125  //**********************************************************************************************
126 
127  //**Return type evaluation**********************************************************************
129 
134  enum { returnExpr = !IsTemporary<RN>::value };
135 
138  //**********************************************************************************************
139 
140  //**Serial evaluation strategy******************************************************************
142 
149 
151  template< typename MT2 >
153  struct UseAssign {
154  enum { value = useAssign };
155  };
157  //**********************************************************************************************
158 
159  //**Parallel evaluation strategy****************************************************************
161 
167  template< typename MT2 >
168  struct UseSMPAssign {
169  enum { value = ( !MT2::smpAssignable || !MT::smpAssignable ) && useAssign };
170  };
172  //**********************************************************************************************
173 
174  public:
175  //**Type definitions****************************************************************************
182 
185 
188 
190  typedef typename SelectType< IsExpression<MT>::value, const MT, const MT& >::Type LeftOperand;
191 
193  typedef ST RightOperand;
194  //**********************************************************************************************
195 
196  //**ConstIterator class definition**************************************************************
200  {
201  public:
202  //**Type definitions*************************************************************************
203  typedef std::random_access_iterator_tag IteratorCategory;
204  typedef ElementType ValueType;
205  typedef ElementType* PointerType;
206  typedef ElementType& ReferenceType;
208 
209  // STL iterator requirements
210  typedef IteratorCategory iterator_category;
211  typedef ValueType value_type;
212  typedef PointerType pointer;
213  typedef ReferenceType reference;
214  typedef DifferenceType difference_type;
215 
217  typedef typename MT::ConstIterator IteratorType;
218  //*******************************************************************************************
219 
220  //**Constructor******************************************************************************
226  explicit inline ConstIterator( IteratorType iterator, RightOperand scalar )
227  : iterator_( iterator ) // Iterator to the current element
228  , scalar_ ( scalar ) // Scalar of the multiplication expression
229  {}
230  //*******************************************************************************************
231 
232  //**Addition assignment operator*************************************************************
238  inline ConstIterator& operator+=( size_t inc ) {
239  iterator_ += inc;
240  return *this;
241  }
242  //*******************************************************************************************
243 
244  //**Subtraction assignment operator**********************************************************
250  inline ConstIterator& operator-=( size_t dec ) {
251  iterator_ -= dec;
252  return *this;
253  }
254  //*******************************************************************************************
255 
256  //**Prefix increment operator****************************************************************
262  ++iterator_;
263  return *this;
264  }
265  //*******************************************************************************************
266 
267  //**Postfix increment operator***************************************************************
272  inline const ConstIterator operator++( int ) {
273  return ConstIterator( iterator_++ );
274  }
275  //*******************************************************************************************
276 
277  //**Prefix decrement operator****************************************************************
283  --iterator_;
284  return *this;
285  }
286  //*******************************************************************************************
287 
288  //**Postfix decrement operator***************************************************************
293  inline const ConstIterator operator--( int ) {
294  return ConstIterator( iterator_-- );
295  }
296  //*******************************************************************************************
297 
298  //**Element access operator******************************************************************
303  inline ReturnType operator*() const {
304  return *iterator_ / scalar_;
305  }
306  //*******************************************************************************************
307 
308  //**Load function****************************************************************************
313  inline IntrinsicType load() const {
314  return iterator_.load() / set( scalar_ );
315  }
316  //*******************************************************************************************
317 
318  //**Equality operator************************************************************************
324  inline bool operator==( const ConstIterator& rhs ) const {
325  return iterator_ == rhs.iterator_;
326  }
327  //*******************************************************************************************
328 
329  //**Inequality operator**********************************************************************
335  inline bool operator!=( const ConstIterator& rhs ) const {
336  return iterator_ != rhs.iterator_;
337  }
338  //*******************************************************************************************
339 
340  //**Less-than operator***********************************************************************
346  inline bool operator<( const ConstIterator& rhs ) const {
347  return iterator_ < rhs.iterator_;
348  }
349  //*******************************************************************************************
350 
351  //**Greater-than operator********************************************************************
357  inline bool operator>( const ConstIterator& rhs ) const {
358  return iterator_ > rhs.iterator_;
359  }
360  //*******************************************************************************************
361 
362  //**Less-or-equal-than operator**************************************************************
368  inline bool operator<=( const ConstIterator& rhs ) const {
369  return iterator_ <= rhs.iterator_;
370  }
371  //*******************************************************************************************
372 
373  //**Greater-or-equal-than operator***********************************************************
379  inline bool operator>=( const ConstIterator& rhs ) const {
380  return iterator_ >= rhs.iterator_;
381  }
382  //*******************************************************************************************
383 
384  //**Subtraction operator*********************************************************************
390  inline DifferenceType operator-( const ConstIterator& rhs ) const {
391  return iterator_ - rhs.iterator_;
392  }
393  //*******************************************************************************************
394 
395  //**Addition operator************************************************************************
402  friend inline const ConstIterator operator+( const ConstIterator& it, size_t inc ) {
403  return ConstIterator( it.iterator_ + inc, it.scalar_ );
404  }
405  //*******************************************************************************************
406 
407  //**Addition operator************************************************************************
414  friend inline const ConstIterator operator+( size_t inc, const ConstIterator& it ) {
415  return ConstIterator( it.iterator_ + inc, it.scalar_ );
416  }
417  //*******************************************************************************************
418 
419  //**Subtraction operator*********************************************************************
426  friend inline const ConstIterator operator-( const ConstIterator& it, size_t dec ) {
427  return ConstIterator( it.iterator_ - dec, it.scalar_ );
428  }
429  //*******************************************************************************************
430 
431  private:
432  //**Member variables*************************************************************************
433  IteratorType iterator_;
434  RightOperand scalar_;
435  //*******************************************************************************************
436  };
437  //**********************************************************************************************
438 
439  //**Compilation flags***************************************************************************
441  enum { vectorizable = MT::vectorizable &&
444  IsSame<typename UnderlyingElement<ET>::Type,RightOperand>::value ) &&
446 
448  enum { smpAssignable = MT::smpAssignable };
449  //**********************************************************************************************
450 
451  //**Constructor*********************************************************************************
457  explicit inline DMatScalarDivExpr( const MT& matrix, ST scalar )
458  : matrix_( matrix ) // Left-hand side dense matrix of the division expression
459  , scalar_( scalar ) // Right-hand side scalar of the division expression
460  {}
461  //**********************************************************************************************
462 
463  //**Access operator*****************************************************************************
470  inline ReturnType operator()( size_t i, size_t j ) const {
471  BLAZE_INTERNAL_ASSERT( i < matrix_.rows() , "Invalid row access index" );
472  BLAZE_INTERNAL_ASSERT( j < matrix_.columns(), "Invalid column access index" );
473  return matrix_(i,j) / scalar_;
474  }
475  //**********************************************************************************************
476 
477  //**At function*********************************************************************************
485  inline ReturnType at( size_t i, size_t j ) const {
486  if( i >= matrix_.rows() ) {
487  BLAZE_THROW_OUT_OF_RANGE( "Invalid row access index" );
488  }
489  if( j >= matrix_.columns() ) {
490  BLAZE_THROW_OUT_OF_RANGE( "Invalid column access index" );
491  }
492  return (*this)(i,j);
493  }
494  //**********************************************************************************************
495 
496  //**Load function*******************************************************************************
503  BLAZE_ALWAYS_INLINE IntrinsicType load( size_t i, size_t j ) const {
504  typedef IntrinsicTrait<ElementType> IT;
505  BLAZE_INTERNAL_ASSERT( i < matrix_.rows() , "Invalid row access index" );
506  BLAZE_INTERNAL_ASSERT( j < matrix_.columns(), "Invalid column access index" );
507  BLAZE_INTERNAL_ASSERT( !SO || ( i % IT::size == 0UL ), "Invalid row access index" );
508  BLAZE_INTERNAL_ASSERT( SO || ( j % IT::size == 0UL ), "Invalid column access index" );
509  return matrix_.load(i,j) / set( scalar_ );
510  }
511  //**********************************************************************************************
512 
513  //**Begin function******************************************************************************
519  inline ConstIterator begin( size_t i ) const {
520  return ConstIterator( matrix_.begin(i), scalar_ );
521  }
522  //**********************************************************************************************
523 
524  //**End function********************************************************************************
530  inline ConstIterator end( size_t i ) const {
531  return ConstIterator( matrix_.end(i), scalar_ );
532  }
533  //**********************************************************************************************
534 
535  //**Rows function*******************************************************************************
540  inline size_t rows() const {
541  return matrix_.rows();
542  }
543  //**********************************************************************************************
544 
545  //**Columns function****************************************************************************
550  inline size_t columns() const {
551  return matrix_.columns();
552  }
553  //**********************************************************************************************
554 
555  //**Left operand access*************************************************************************
560  inline LeftOperand leftOperand() const {
561  return matrix_;
562  }
563  //**********************************************************************************************
564 
565  //**Right operand access************************************************************************
570  inline RightOperand rightOperand() const {
571  return scalar_;
572  }
573  //**********************************************************************************************
574 
575  //**********************************************************************************************
581  template< typename T >
582  inline bool canAlias( const T* alias ) const {
583  return IsComputation<MT>::value && matrix_.canAlias( alias );
584  }
585  //**********************************************************************************************
586 
587  //**********************************************************************************************
593  template< typename T >
594  inline bool isAliased( const T* alias ) const {
595  return matrix_.isAliased( alias );
596  }
597  //**********************************************************************************************
598 
599  //**********************************************************************************************
604  inline bool isAligned() const {
605  return matrix_.isAligned();
606  }
607  //**********************************************************************************************
608 
609  //**********************************************************************************************
614  inline bool canSMPAssign() const {
615  return matrix_.canSMPAssign() ||
616  ( ( ( SO == rowMajor ) ? rows() : columns() ) > SMP_DMATSCALARMULT_THRESHOLD );
617  }
618  //**********************************************************************************************
619 
620  private:
621  //**Member variables****************************************************************************
622  LeftOperand matrix_;
623  RightOperand scalar_;
624  //**********************************************************************************************
625 
626  //**Assignment to dense matrices****************************************************************
640  template< typename MT2 // Type of the target dense matrix
641  , bool SO2 > // Storage order of the target dense matrix
642  friend inline typename EnableIf< UseAssign<MT2> >::Type
643  assign( DenseMatrix<MT2,SO2>& lhs, const DMatScalarDivExpr& rhs )
644  {
646 
647  BLAZE_INTERNAL_ASSERT( (~lhs).rows() == rhs.rows() , "Invalid number of rows" );
648  BLAZE_INTERNAL_ASSERT( (~lhs).columns() == rhs.columns(), "Invalid number of columns" );
649 
650  assign( ~lhs, rhs.matrix_ );
651  assign( ~lhs, (~lhs) / rhs.scalar_ );
652  }
654  //**********************************************************************************************
655 
656  //**Assignment to sparse matrices***************************************************************
670  template< typename MT2 // Type of the target sparse matrix
671  , bool SO2 > // Storage order of the target sparse matrix
672  friend inline typename EnableIf< UseAssign<MT2> >::Type
673  assign( SparseMatrix<MT2,SO2>& lhs, const DMatScalarDivExpr& rhs )
674  {
676 
677  BLAZE_INTERNAL_ASSERT( (~lhs).rows() == rhs.rows() , "Invalid number of rows" );
678  BLAZE_INTERNAL_ASSERT( (~lhs).columns() == rhs.columns(), "Invalid number of columns" );
679 
680  assign( ~lhs, rhs.matrix_ );
681  (~lhs) /= rhs.scalar_;
682  }
684  //**********************************************************************************************
685 
686  //**Addition assignment to dense matrices*******************************************************
700  template< typename MT2 // Type of the target dense matrix
701  , bool SO2 > // Storage order of the target dense matrix
702  friend inline typename EnableIf< UseAssign<MT2> >::Type
703  addAssign( DenseMatrix<MT2,SO2>& lhs, const DMatScalarDivExpr& rhs )
704  {
706 
710 
711  BLAZE_INTERNAL_ASSERT( (~lhs).rows() == rhs.rows() , "Invalid number of rows" );
712  BLAZE_INTERNAL_ASSERT( (~lhs).columns() == rhs.columns(), "Invalid number of columns" );
713 
714  const ResultType tmp( serial( rhs ) );
715  addAssign( ~lhs, tmp );
716  }
718  //**********************************************************************************************
719 
720  //**Addition assignment to sparse matrices******************************************************
721  // No special implementation for the addition assignment to sparse matrices.
722  //**********************************************************************************************
723 
724  //**Subtraction assignment to dense matrices****************************************************
738  template< typename MT2 // Type of the target dense matrix
739  , bool SO2 > // Storage order of the target dense matrix
740  friend inline typename EnableIf< UseAssign<MT2> >::Type
741  subAssign( DenseMatrix<MT2,SO2>& lhs, const DMatScalarDivExpr& rhs )
742  {
744 
748 
749  BLAZE_INTERNAL_ASSERT( (~lhs).rows() == rhs.rows() , "Invalid number of rows" );
750  BLAZE_INTERNAL_ASSERT( (~lhs).columns() == rhs.columns(), "Invalid number of columns" );
751 
752  const ResultType tmp( serial( rhs ) );
753  subAssign( ~lhs, tmp );
754  }
756  //**********************************************************************************************
757 
758  //**Subtraction assignment to sparse matrices***************************************************
759  // No special implementation for the subtraction assignment to sparse matrices.
760  //**********************************************************************************************
761 
762  //**Multiplication assignment to dense matrices*************************************************
763  // No special implementation for the multiplication assignment to dense matrices.
764  //**********************************************************************************************
765 
766  //**Multiplication assignment to sparse matrices************************************************
767  // No special implementation for the multiplication assignment to sparse matrices.
768  //**********************************************************************************************
769 
770  //**SMP assignment to dense matrices************************************************************
784  template< typename MT2 // Type of the target dense matrix
785  , bool SO2 > // Storage order of the target dense matrix
786  friend inline typename EnableIf< UseSMPAssign<MT2> >::Type
787  smpAssign( DenseMatrix<MT2,SO2>& lhs, const DMatScalarDivExpr& rhs )
788  {
790 
791  BLAZE_INTERNAL_ASSERT( (~lhs).rows() == rhs.rows() , "Invalid number of rows" );
792  BLAZE_INTERNAL_ASSERT( (~lhs).columns() == rhs.columns(), "Invalid number of columns" );
793 
794  smpAssign( ~lhs, rhs.matrix_ );
795  smpAssign( ~lhs, (~lhs) / rhs.scalar_ );
796  }
798  //**********************************************************************************************
799 
800  //**SMP assignment to sparse matrices***********************************************************
814  template< typename MT2 // Type of the target sparse matrix
815  , bool SO2 > // Storage order of the target sparse matrix
816  friend inline typename EnableIf< UseSMPAssign<MT2> >::Type
817  smpAssign( SparseMatrix<MT2,SO2>& lhs, const DMatScalarDivExpr& rhs )
818  {
820 
821  BLAZE_INTERNAL_ASSERT( (~lhs).rows() == rhs.rows() , "Invalid number of rows" );
822  BLAZE_INTERNAL_ASSERT( (~lhs).columns() == rhs.columns(), "Invalid number of columns" );
823 
824  smpAssign( ~lhs, rhs.matrix_ );
825  (~lhs) /= rhs.scalar_;
826  }
828  //**********************************************************************************************
829 
830  //**SMP addition assignment to dense matrices***************************************************
844  template< typename MT2 // Type of the target dense matrix
845  , bool SO2 > // Storage order of the target dense matrix
846  friend inline typename EnableIf< UseSMPAssign<MT2> >::Type
847  smpAddAssign( DenseMatrix<MT2,SO2>& lhs, const DMatScalarDivExpr& rhs )
848  {
850 
854 
855  BLAZE_INTERNAL_ASSERT( (~lhs).rows() == rhs.rows() , "Invalid number of rows" );
856  BLAZE_INTERNAL_ASSERT( (~lhs).columns() == rhs.columns(), "Invalid number of columns" );
857 
858  const ResultType tmp( rhs );
859  smpAddAssign( ~lhs, tmp );
860  }
862  //**********************************************************************************************
863 
864  //**SMP addition assignment to sparse matrices**************************************************
865  // No special implementation for the SMP addition assignment to sparse matrices.
866  //**********************************************************************************************
867 
868  //**SMP subtraction assignment to dense matrices************************************************
882  template< typename MT2 // Type of the target dense matrix
883  , bool SO2 > // Storage order of the target dense matrix
884  friend inline typename EnableIf< UseSMPAssign<MT2> >::Type
885  smpSubAssign( DenseMatrix<MT2,SO2>& lhs, const DMatScalarDivExpr& rhs )
886  {
888 
892 
893  BLAZE_INTERNAL_ASSERT( (~lhs).rows() == rhs.rows() , "Invalid number of rows" );
894  BLAZE_INTERNAL_ASSERT( (~lhs).columns() == rhs.columns(), "Invalid number of columns" );
895 
896  const ResultType tmp( rhs );
897  smpSubAssign( ~lhs, tmp );
898  }
900  //**********************************************************************************************
901 
902  //**SMP subtraction assignment to sparse matrices***********************************************
903  // No special implementation for the SMP subtraction assignment to sparse matrices.
904  //**********************************************************************************************
905 
906  //**SMP multiplication assignment to dense matrices*********************************************
907  // No special implementation for the SMP multiplication assignment to dense matrices.
908  //**********************************************************************************************
909 
910  //**SMP multiplication assignment to sparse matrices********************************************
911  // No special implementation for the SMP multiplication assignment to sparse matrices.
912  //**********************************************************************************************
913 
914  //**Compile time checks*************************************************************************
921  BLAZE_CONSTRAINT_MUST_BE_SAME_TYPE( ST, RightOperand );
923  //**********************************************************************************************
924 };
925 //*************************************************************************************************
926 
927 
928 
929 
930 //=================================================================================================
931 //
932 // GLOBAL BINARY ARITHMETIC OPERATORS
933 //
934 //=================================================================================================
935 
936 //*************************************************************************************************
958 template< typename T1 // Type of the left-hand side dense matrix
959  , bool SO // Storage order of the left-hand side dense matrix
960  , typename T2 > // Type of the right-hand side scalar
961 inline const typename EnableIf< IsNumeric<T2>, typename DivExprTrait<T1,T2>::Type >::Type
962  operator/( const DenseMatrix<T1,SO>& mat, T2 scalar )
963 {
965 
966  BLAZE_USER_ASSERT( scalar != T2(0), "Division by zero detected" );
967 
968  typedef typename DivExprTrait<T1,T2>::Type ReturnType;
969  typedef typename ReturnType::RightOperand ScalarType;
970 
972  return ReturnType( ~mat, ScalarType(1)/ScalarType(scalar) );
973  }
974  else {
975  return ReturnType( ~mat, scalar );
976  }
977 }
978 //*************************************************************************************************
979 
980 
981 
982 
983 //=================================================================================================
984 //
985 // GLOBAL RESTRUCTURING BINARY ARITHMETIC OPERATORS
986 //
987 //=================================================================================================
988 
989 //*************************************************************************************************
1002 template< typename MT // Type of the dense matrix of the left-hand side expression
1003  , typename ST1 // Type of the scalar of the left-hand side expression
1004  , bool SO // Storage order of the dense matrix
1005  , typename ST2 > // Type of the right-hand side scalar
1006 inline const typename EnableIf< And< IsNumeric<ST2>, IsInvertible<typename DivTrait<ST2,ST1>::Type > >
1007  , typename MultExprTrait< DMatScalarDivExpr<MT,ST1,SO>, ST2 >::Type >::Type
1008  operator*( const DMatScalarDivExpr<MT,ST1,SO>& mat, ST2 scalar )
1009 {
1011 
1012  return mat.leftOperand() * ( scalar / mat.rightOperand() );
1013 }
1015 //*************************************************************************************************
1016 
1017 
1018 //*************************************************************************************************
1031 template< typename ST1 // Type of the left-hand side scalar
1032  , typename MT // Type of the dense matrix of the right-hand side expression
1033  , typename ST2 // Type of the scalar of the right-hand side expression
1034  , bool SO > // Storage order of the dense matrix
1035 inline const typename EnableIf< And< IsNumeric<ST1>, IsInvertible<typename DivTrait<ST1,ST2>::Type > >
1036  , typename MultExprTrait< ST1, DMatScalarDivExpr<MT,ST2,SO> >::Type >::Type
1037  operator*( ST1 scalar, const DMatScalarDivExpr<MT,ST2,SO>& mat )
1038 {
1040 
1041  return mat.leftOperand() * ( scalar / mat.rightOperand() );
1042 }
1044 //*************************************************************************************************
1045 
1046 
1047 //*************************************************************************************************
1060 template< typename MT // Type of the dense matrix of the left-hand side expression
1061  , typename ST1 // Type of the scalar of the left-hand side expression
1062  , bool SO // Storage order of the dense matrix
1063  , typename ST2 > // Type of the right-hand side scalar
1064 inline const typename EnableIf< IsNumeric<ST2>
1065  , typename DivExprTrait<MT,typename MultTrait<ST1,ST2>::Type>::Type >::Type
1066  operator/( const DMatScalarDivExpr<MT,ST1,SO>& mat, ST2 scalar )
1067 {
1069 
1070  BLAZE_USER_ASSERT( scalar != ST2(0), "Division by zero detected" );
1071 
1072  typedef typename MultTrait<ST1,ST2>::Type MultType;
1073  typedef typename DivExprTrait<MT,MultType>::Type ReturnType;
1074  typedef typename ReturnType::RightOperand ScalarType;
1075 
1076  if( IsMultExpr<ReturnType>::value ) {
1077  return ReturnType( mat.leftOperand(), ScalarType(1)/( mat.rightOperand() * scalar ) );
1078  }
1079  else {
1080  return ReturnType( mat.leftOperand(), mat.rightOperand() * scalar );
1081  }
1082 }
1084 //*************************************************************************************************
1085 
1086 
1087 
1088 
1089 //=================================================================================================
1090 //
1091 // ROWS SPECIALIZATIONS
1092 //
1093 //=================================================================================================
1094 
1095 //*************************************************************************************************
1097 template< typename MT, typename ST, bool SO >
1098 struct Rows< DMatScalarDivExpr<MT,ST,SO> > : public Columns<MT>
1099 {};
1101 //*************************************************************************************************
1102 
1103 
1104 
1105 
1106 //=================================================================================================
1107 //
1108 // COLUMNS SPECIALIZATIONS
1109 //
1110 //=================================================================================================
1111 
1112 //*************************************************************************************************
1114 template< typename MT, typename ST, bool SO >
1115 struct Columns< DMatScalarDivExpr<MT,ST,SO> > : public Rows<MT>
1116 {};
1118 //*************************************************************************************************
1119 
1120 
1121 
1122 
1123 //=================================================================================================
1124 //
1125 // ISALIGNED SPECIALIZATIONS
1126 //
1127 //=================================================================================================
1128 
1129 //*************************************************************************************************
1131 template< typename MT, typename ST, bool SO >
1132 struct IsAligned< DMatScalarDivExpr<MT,ST,SO> > : public IsTrue< IsAligned<MT>::value >
1133 {};
1135 //*************************************************************************************************
1136 
1137 
1138 
1139 
1140 //=================================================================================================
1141 //
1142 // ISPADDED SPECIALIZATIONS
1143 //
1144 //=================================================================================================
1145 
1146 //*************************************************************************************************
1148 template< typename MT, typename ST, bool SO >
1149 struct IsPadded< DMatScalarDivExpr<MT,ST,SO> > : public IsTrue< IsPadded<MT>::value >
1150 {};
1152 //*************************************************************************************************
1153 
1154 
1155 
1156 
1157 //=================================================================================================
1158 //
1159 // ISSYMMETRIC SPECIALIZATIONS
1160 //
1161 //=================================================================================================
1162 
1163 //*************************************************************************************************
1165 template< typename MT, typename ST, bool SO >
1166 struct IsSymmetric< DMatScalarDivExpr<MT,ST,SO> > : public IsTrue< IsSymmetric<MT>::value >
1167 {};
1169 //*************************************************************************************************
1170 
1171 
1172 
1173 
1174 //=================================================================================================
1175 //
1176 // ISHERMITIAN SPECIALIZATIONS
1177 //
1178 //=================================================================================================
1179 
1180 //*************************************************************************************************
1182 template< typename MT, typename ST, bool SO >
1183 struct IsHermitian< DMatScalarDivExpr<MT,ST,SO> > : public IsTrue< IsHermitian<MT>::value >
1184 {};
1186 //*************************************************************************************************
1187 
1188 
1189 
1190 
1191 //=================================================================================================
1192 //
1193 // ISLOWER SPECIALIZATIONS
1194 //
1195 //=================================================================================================
1196 
1197 //*************************************************************************************************
1199 template< typename MT, typename ST, bool SO >
1200 struct IsLower< DMatScalarDivExpr<MT,ST,SO> > : public IsTrue< IsLower<MT>::value >
1201 {};
1203 //*************************************************************************************************
1204 
1205 
1206 
1207 
1208 //=================================================================================================
1209 //
1210 // ISSTRICTLYLOWER SPECIALIZATIONS
1211 //
1212 //=================================================================================================
1213 
1214 //*************************************************************************************************
1216 template< typename MT, typename ST, bool SO >
1217 struct IsStrictlyLower< DMatScalarDivExpr<MT,ST,SO> > : public IsTrue< IsStrictlyLower<MT>::value >
1218 {};
1220 //*************************************************************************************************
1221 
1222 
1223 
1224 
1225 //=================================================================================================
1226 //
1227 // ISUPPER SPECIALIZATIONS
1228 //
1229 //=================================================================================================
1230 
1231 //*************************************************************************************************
1233 template< typename MT, typename ST, bool SO >
1234 struct IsUpper< DMatScalarDivExpr<MT,ST,SO> > : public IsTrue< IsUpper<MT>::value >
1235 {};
1237 //*************************************************************************************************
1238 
1239 
1240 
1241 
1242 //=================================================================================================
1243 //
1244 // ISSTRICTLYUPPER SPECIALIZATIONS
1245 //
1246 //=================================================================================================
1247 
1248 //*************************************************************************************************
1250 template< typename MT, typename ST, bool SO >
1251 struct IsStrictlyUpper< DMatScalarDivExpr<MT,ST,SO> > : public IsTrue< IsStrictlyUpper<MT>::value >
1252 {};
1254 //*************************************************************************************************
1255 
1256 
1257 
1258 
1259 //=================================================================================================
1260 //
1261 // DMATSCALARMULTEXPRTRAIT SPECIALIZATIONS
1262 //
1263 //=================================================================================================
1264 
1265 //*************************************************************************************************
1267 template< typename MT, typename ST1, typename ST2 >
1268 struct DMatScalarMultExprTrait< DMatScalarDivExpr<MT,ST1,false>, ST2 >
1269 {
1270  private:
1271  //**********************************************************************************************
1272  typedef typename DivTrait<ST2,ST1>::Type ScalarType;
1273  //**********************************************************************************************
1274 
1275  //**********************************************************************************************
1276  enum { condition = IsInvertible<ScalarType>::value };
1277  //**********************************************************************************************
1278 
1279  //**********************************************************************************************
1280  typedef typename DMatScalarMultExprTrait<MT,ScalarType>::Type T1;
1281  typedef DMatScalarMultExpr< DMatScalarDivExpr<MT,ST1,false>, ST2, false > T2;
1282  //**********************************************************************************************
1283 
1284  public:
1285  //**********************************************************************************************
1286  typedef typename SelectType< IsDenseMatrix<MT>::value && IsRowMajorMatrix<MT>::value &&
1287  IsNumeric<ST1>::value && IsNumeric<ST2>::value
1288  , typename SelectType<condition,T1,T2>::Type
1289  , INVALID_TYPE >::Type Type;
1290  //**********************************************************************************************
1291 };
1293 //*************************************************************************************************
1294 
1295 
1296 
1297 
1298 //=================================================================================================
1299 //
1300 // TDMATSCALARMULTEXPRTRAIT SPECIALIZATIONS
1301 //
1302 //=================================================================================================
1303 
1304 //*************************************************************************************************
1306 template< typename MT, typename ST1, typename ST2 >
1307 struct TDMatScalarMultExprTrait< DMatScalarDivExpr<MT,ST1,true>, ST2 >
1308 {
1309  private:
1310  //**********************************************************************************************
1311  typedef typename DivTrait<ST2,ST1>::Type ScalarType;
1312  //**********************************************************************************************
1313 
1314  //**********************************************************************************************
1315  enum { condition = IsInvertible<ScalarType>::value };
1316  //**********************************************************************************************
1317 
1318  //**********************************************************************************************
1319  typedef typename DMatScalarMultExprTrait<MT,ScalarType>::Type T1;
1320  typedef DMatScalarMultExpr< DMatScalarDivExpr<MT,ST1,true>, ST2, true > T2;
1321  //**********************************************************************************************
1322 
1323  public:
1324  //**********************************************************************************************
1325  typedef typename SelectType< IsDenseMatrix<MT>::value && IsColumnMajorMatrix<MT>::value &&
1326  IsNumeric<ST1>::value && IsNumeric<ST2>::value
1327  , typename SelectType<condition,T1,T2>::Type
1328  , INVALID_TYPE >::Type Type;
1329  //**********************************************************************************************
1330 };
1332 //*************************************************************************************************
1333 
1334 
1335 
1336 
1337 //=================================================================================================
1338 //
1339 // SUBMATRIXEXPRTRAIT SPECIALIZATIONS
1340 //
1341 //=================================================================================================
1342 
1343 //*************************************************************************************************
1345 template< typename MT, typename ST, bool SO, bool AF >
1346 struct SubmatrixExprTrait< DMatScalarDivExpr<MT,ST,SO>, AF >
1347 {
1348  public:
1349  //**********************************************************************************************
1350  typedef typename DivExprTrait< typename SubmatrixExprTrait<const MT,AF>::Type, ST >::Type Type;
1351  //**********************************************************************************************
1352 };
1354 //*************************************************************************************************
1355 
1356 
1357 
1358 
1359 //=================================================================================================
1360 //
1361 // ROWEXPRTRAIT SPECIALIZATIONS
1362 //
1363 //=================================================================================================
1364 
1365 //*************************************************************************************************
1367 template< typename MT, typename ST, bool SO >
1368 struct RowExprTrait< DMatScalarDivExpr<MT,ST,SO> >
1369 {
1370  public:
1371  //**********************************************************************************************
1372  typedef typename DivExprTrait< typename RowExprTrait<const MT>::Type, ST >::Type Type;
1373  //**********************************************************************************************
1374 };
1376 //*************************************************************************************************
1377 
1378 
1379 
1380 
1381 //=================================================================================================
1382 //
1383 // COLUMNEXPRTRAIT SPECIALIZATIONS
1384 //
1385 //=================================================================================================
1386 
1387 //*************************************************************************************************
1389 template< typename MT, typename ST, bool SO >
1390 struct ColumnExprTrait< DMatScalarDivExpr<MT,ST,SO> >
1391 {
1392  public:
1393  //**********************************************************************************************
1394  typedef typename DivExprTrait< typename ColumnExprTrait<const MT>::Type, ST >::Type Type;
1395  //**********************************************************************************************
1396 };
1398 //*************************************************************************************************
1399 
1400 } // namespace blaze
1401 
1402 #endif
BLAZE_ALWAYS_INLINE IntrinsicType load(size_t i, size_t j) const
Access to the intrinsic elements of the matrix.
Definition: DMatScalarDivExpr.h:503
Pointer difference type of the Blaze library.
bool canSMPAssign() const
Returns whether the expression can be used in SMP assignments.
Definition: DMatScalarDivExpr.h:614
BLAZE_ALWAYS_INLINE EnableIf< And< IsIntegral< T >, HasSize< T, 2UL > >, simd_int16_t >::Type set(T value)
Sets all values in the vector to the given 2-byte integral value.
Definition: Set.h:73
Data type constraint.
Compile time check whether the given type is a computational expression template.This type trait clas...
Definition: IsComputation.h:89
Compile time check for numeric types.This type trait tests whether or not the given template paramete...
Definition: IsNumeric.h:98
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
RightOperand rightOperand() const
Returns the right-hand side scalar operand.
Definition: DMatScalarDivExpr.h:570
Compile time check whether the given type is a temporary vector or matrix type.This type trait class ...
Definition: IsTemporary.h:87
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:7820
const EnableIf< IsNumeric< T2 >, typename DivExprTrait< T1, T2 >::Type >::Type operator/(const DenseMatrix< T1, SO > &mat, T2 scalar)
Division operator for the division of a dense matrix by a scalar value ( ).
Definition: DMatScalarDivExpr.h:962
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 enumeration is set to 1, the nested type definition Type is TrueType, and the class derives from TrueType. Otherwise value is set to 0, Type is FalseType, and the class derives from FalseType.
Definition: IsMultExpr.h:90
BLAZE_ALWAYS_INLINE size_t size(const Vector< VT, TF > &vector)
Returns the current size/dimension of the vector.
Definition: Vector.h:252
ValueType value_type
Type of the underlying elements.
Definition: DMatScalarDivExpr.h:211
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:282
#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:81
Efficient implementation of a compressed matrix.The CompressedMatrix class template is the represent...
Definition: CompressedMatrix.h:207
bool operator!=(const ConstIterator &rhs) const
Inequality comparison between two ConstIterator objects.
Definition: DMatScalarDivExpr.h:335
#define BLAZE_CONSTRAINT_MUST_BE_DENSE_MATRIX_TYPE(T)
Constraint on the data type.In case the given data type T is not a dense, N-dimensional matrix type...
Definition: DenseMatrix.h:79
Header file for the ColumnExprTrait class template.
IntrinsicType load() const
Access to the intrinsic elements of the matrix.
Definition: DMatScalarDivExpr.h:313
Header file for the IsSame and IsStrictlySame type traits.
DMatScalarDivExpr< MT, ST, SO > This
Type of this DMatScalarDivExpr instance.
Definition: DMatScalarDivExpr.h:176
bool operator>(const ConstIterator &rhs) const
Greater-than comparison between two ConstIterator objects.
Definition: DMatScalarDivExpr.h:357
Header file for the IsColumnMajorMatrix type trait.
MT::CompositeType CT
Composite type of the dense matrix expression.
Definition: DMatScalarDivExpr.h:124
Iterator over the elements of the dense matrix.
Definition: DMatScalarDivExpr.h:199
const This & CompositeType
Data type for composite expression templates.
Definition: CompressedMatrix.h:2588
DifferenceType operator-(const ConstIterator &rhs) const
Calculating the number of elements between two iterators.
Definition: DMatScalarDivExpr.h:390
Type ElementType
Type of the sparse matrix elements.
Definition: CompressedMatrix.h:259
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:115
ConstIterator & operator+=(size_t inc)
Addition assignment operator.
Definition: DMatScalarDivExpr.h:238
const DMatSerialExpr< MT, SO > serial(const DenseMatrix< MT, SO > &dm)
Forces the serial evaluation of the given dense matrix expression dm.
Definition: DMatSerialExpr.h:721
Header file for the Computation base class.
Type relationship analysis.This class tests if the two data types A and B are equal. For this type comparison, the cv-qualifiers of both data types are ignored. If A and B are the same data type (ignoring the cv-qualifiers), then the value member enumeration is set to 1, the nested type definition Type is TrueType, and the class derives from TrueType. Otherwise value is set to 0, Type is FalseType, and the class derives from FalseType.
Definition: IsSame.h:158
bool isAliased(const T *alias) const
Returns whether the expression is aliased with the given address alias.
Definition: DMatScalarDivExpr.h:594
Header file for the RequiresEvaluation type trait.
ElementType ValueType
Type of the underlying elements.
Definition: DMatScalarDivExpr.h:204
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:117
ResultType::ElementType ElementType
Resulting element type.
Definition: DMatScalarDivExpr.h:180
Constraint on the data type.
ConstIterator & operator-=(size_t dec)
Subtraction assignment operator.
Definition: DMatScalarDivExpr.h:250
Header file for the DivExprTrait class template.
ptrdiff_t DifferenceType
Difference between two iterators.
Definition: DMatScalarDivExpr.h:207
Evaluation of the resulting expression type of a division.Via this type trait it is possible to evalu...
Definition: DivExprTrait.h:88
MT::ResultType RT
Result type of the dense matrix expression.
Definition: DMatScalarDivExpr.h:121
Constraint on the data type.
Header file for the MultExprTrait class template.
const SelectType< returnExpr, ExprReturnType, ElementType >::Type ReturnType
Return type for expression template evaluations.
Definition: DMatScalarDivExpr.h:184
Compile time check to query the requirement to evaluate an expression.Via this type trait it is possi...
Definition: RequiresEvaluation.h:90
const This & CompositeType
Data type for composite expression templates.
Definition: CompressedMatrix.h:261
ReturnType at(size_t i, size_t j) const
Checked access to the matrix elements.
Definition: DMatScalarDivExpr.h:485
Compile time type selection.The SelectType class template selects one of the two given types T1 and T...
Definition: SelectType.h:59
DivTrait< RT, ST >::Type ResultType
Result type for expression template evaluations.
Definition: DMatScalarDivExpr.h:177
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:206
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
ReferenceType reference
Reference return type.
Definition: DMatScalarDivExpr.h:213
Header file for the IsMultExpr type trait class.
const Element * ConstIterator
Iterator over constant elements.
Definition: CompressedMatrix.h:2592
#define BLAZE_THROW_OUT_OF_RANGE(MESSAGE)
Macro for the emission of a std::out_of_range exceptionThis macro encapsulates the default way of Bla...
Definition: Exception.h:331
Header file for the DenseMatrix base class.
Header file for the Columns type trait.
#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:89
Header file for the IsLower type trait.
Header file for the IsAligned type trait.
IteratorType iterator_
Iterator to the current element.
Definition: DMatScalarDivExpr.h:433
#define BLAZE_CONSTRAINT_MUST_BE_REFERENCE_TYPE(T)
Constraint on the data type.In case the given data type T is not a reference type, a compilation error is created.
Definition: Reference.h:78
const ConstIterator operator++(int)
Post-increment operator.
Definition: DMatScalarDivExpr.h:272
ResultType::OppositeType OppositeType
Result type with opposite storage order for expression template evaluations.
Definition: DMatScalarDivExpr.h:178
const ConstIterator operator--(int)
Post-decrement operator.
Definition: DMatScalarDivExpr.h:293
Constraints on the storage order of matrix types.
MT::ElementType ET
Element type of the dense matrix expression.
Definition: DMatScalarDivExpr.h:123
PointerType pointer
Pointer return type.
Definition: DMatScalarDivExpr.h:212
ElementType * PointerType
Pointer return type.
Definition: DMatScalarDivExpr.h:205
RightOperand scalar_
Scalar of the multiplication expression.
Definition: DMatScalarDivExpr.h:434
Type ElementType
Type of the sparse matrix elements.
Definition: CompressedMatrix.h:2586
Header file for the SelectType class template.
Header file for the RowExprTrait class template.
Header file for all forward declarations for expression class templates.
Header file for the IsDenseMatrix type trait.
DivExprTrait< RN, ST >::Type ExprReturnType
Expression return type for the subscript operator.
Definition: DMatScalarDivExpr.h:137
Header file for the EnableIf class template.
Header file for the IsStrictlyLower type trait.
Header file for the IsPadded type trait.
Header file for the serial shim.
ConstIterator & operator++()
Pre-increment operator.
Definition: DMatScalarDivExpr.h:261
Header file for the IsNumeric type trait.
DMatScalarDivExpr(const MT &matrix, ST scalar)
Constructor for the DMatScalarDivExpr class.
Definition: DMatScalarDivExpr.h:457
SelectType< IsExpression< MT >::value, const MT, const MT & >::Type LeftOperand
Composite type of the left-hand side dense matrix expression.
Definition: DMatScalarDivExpr.h:190
bool operator>=(const ConstIterator &rhs) const
Greater-than comparison between two ConstIterator objects.
Definition: DMatScalarDivExpr.h:379
LeftOperand matrix_
Left-hand side dense matrix of the division expression.
Definition: DMatScalarDivExpr.h:622
bool canAlias(const T *alias) const
Returns whether the expression can alias with the given address alias.
Definition: DMatScalarDivExpr.h:582
EnableIf< IsDenseMatrix< MT1 > >::Type 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
RightOperand scalar_
Right-hand side scalar of the division expression.
Definition: DMatScalarDivExpr.h:623
ConstIterator(IteratorType iterator, RightOperand scalar)
Constructor for the ConstIterator class.
Definition: DMatScalarDivExpr.h:226
Header file for the SubmatrixExprTrait class template.
const Type & ReturnType
Return type for expression template evaluations.
Definition: CompressedMatrix.h:2587
Intrinsic characteristics of data types.The IntrinsicTrait class template provides the intrinsic char...
Definition: IntrinsicTrait.h:1232
Header file for run time assertion macros.
EnableIf< IsDenseMatrix< MT1 > >::Type 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
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:426
SelectType< useAssign, const ResultType, const DMatScalarDivExpr & >::Type CompositeType
Data type for composite expression templates.
Definition: DMatScalarDivExpr.h:187
Substitution Failure Is Not An Error (SFINAE) class.The EnableIf class template is an auxiliary tool ...
Definition: EnableIf.h:184
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:79
size_t rows() const
Returns the current number of rows of the matrix.
Definition: DMatScalarDivExpr.h:540
IteratorCategory iterator_category
The iterator category.
Definition: DMatScalarDivExpr.h:210
ST RightOperand
Composite type of the right-hand side scalar value.
Definition: DMatScalarDivExpr.h:193
ResultType::TransposeType TransposeType
Transpose type for expression template evaluations.
Definition: DMatScalarDivExpr.h:179
Header file for the IsInvertible type trait.
ConstIterator begin(size_t i) const
Returns an iterator to the first non-zero element of row i.
Definition: DMatScalarDivExpr.h:519
Base template for the DivTrait class.
Definition: DivTrait.h:138
#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:118
Header file for all intrinsic functionality.
bool operator<(const ConstIterator &rhs) const
Less-than comparison between two ConstIterator objects.
Definition: DMatScalarDivExpr.h:346
std::random_access_iterator_tag IteratorCategory
The iterator category.
Definition: DMatScalarDivExpr.h:203
size_t columns() const
Returns the current number of columns of the matrix.
Definition: DMatScalarDivExpr.h:550
bool isAligned() const
Returns whether the operands of the expression are properly aligned in memory.
Definition: DMatScalarDivExpr.h:604
Header file for the IsRowMajorMatrix type trait.
bool operator<=(const ConstIterator &rhs) const
Less-than comparison between two ConstIterator objects.
Definition: DMatScalarDivExpr.h:368
const bool rowMajor
Storage order flag for row-major matrices.
Definition: StorageOrder.h:71
Header file for the IsComputation type trait class.
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:470
EnableIf< IsDenseMatrix< MT1 > >::Type 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
ConstIterator end(size_t i) const
Returns an iterator just past the last non-zero element of row i.
Definition: DMatScalarDivExpr.h:530
friend const ConstIterator operator+(const ConstIterator &it, size_t inc)
Addition between a ConstIterator and an integral value.
Definition: DMatScalarDivExpr.h:402
#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:324
This ResultType
Result type for expression template evaluations.
Definition: CompressedMatrix.h:2583
Header file for the IsTrue value trait.
friend const ConstIterator operator+(size_t inc, const ConstIterator &it)
Addition between an integral value and a ConstIterator.
Definition: DMatScalarDivExpr.h:414
MT::ConstIterator IteratorType
ConstIterator type of the dense matrix expression.
Definition: DMatScalarDivExpr.h:217
Header file for the IsUpper type trait.
Header file for exception macros.
Header file for the MatScalarDivExpr base class.
LeftOperand leftOperand() const
Returns the left-hand side dense matrix operand.
Definition: DMatScalarDivExpr.h:560
MT::ReturnType RN
Return type of the dense matrix expression.
Definition: DMatScalarDivExpr.h:122
Header file for the IsHermitian type trait.
System settings for the inline keywords.
Header file for the thresholds for matrix/vector and matrix/matrix multiplications.
DifferenceType difference_type
Difference between two iterators.
Definition: DMatScalarDivExpr.h:214
#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:303
IntrinsicTrait< ElementType >::Type IntrinsicType
Resulting intrinsic element type.
Definition: DMatScalarDivExpr.h:181
Header file for the IsExpression type trait class.
Header file for the FunctionTrace class.