DMatMapExpr.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_EXPRESSIONS_DMATMAPEXPR_H_
36 #define _BLAZE_MATH_EXPRESSIONS_DMATMAPEXPR_H_
37 
38 
39 //*************************************************************************************************
40 // Includes
41 //*************************************************************************************************
42 
43 #include <iterator>
44 #include <utility>
45 #include <blaze/math/Aliases.h>
49 #include <blaze/math/Exception.h>
54 #include <blaze/math/Functors.h>
56 #include <blaze/math/SIMD.h>
73 #include <blaze/system/Inline.h>
74 #include <blaze/util/Assert.h>
76 #include <blaze/util/EnableIf.h>
79 #include <blaze/util/mpl/And.h>
80 #include <blaze/util/mpl/If.h>
81 #include <blaze/util/mpl/Not.h>
82 #include <blaze/util/Template.h>
83 #include <blaze/util/Types.h>
87 
88 
89 namespace blaze {
90 
91 //=================================================================================================
92 //
93 // CLASS DMATMAPEXPR
94 //
95 //=================================================================================================
96 
97 //*************************************************************************************************
104 template< typename MT // Type of the dense matrix
105  , typename OP // Type of the custom operation
106  , bool SO > // Storage order
108  : public MatMapExpr< DenseMatrix< DMatMapExpr<MT,OP,SO>, SO > >
109  , private Computation
110 {
111  private:
112  //**Type definitions****************************************************************************
113  using RT = ResultType_<MT>;
116  using RN = ReturnType_<MT>;
117 
119  BLAZE_CREATE_HAS_DATA_OR_FUNCTION_MEMBER_TYPE_TRAIT( HasSIMDEnabled, simdEnabled );
120 
123  //**********************************************************************************************
124 
125  //**Serial evaluation strategy******************************************************************
127 
133  enum : bool { useAssign = RequiresEvaluation<MT>::value };
134 
136  template< typename MT2 >
138  struct UseAssign {
139  enum : bool { value = useAssign };
140  };
142  //**********************************************************************************************
143 
144  //**Parallel evaluation strategy****************************************************************
146 
152  template< typename MT2 >
153  struct UseSMPAssign {
154  enum : bool { value = ( !MT2::smpAssignable || !MT::smpAssignable ) && useAssign };
155  };
157  //**********************************************************************************************
158 
159  //**SIMD support detection**********************************************************************
161  struct UseSIMDEnabledFlag {
163  enum : bool { value = OP::BLAZE_TEMPLATE simdEnabled<ET>() };
164  };
166  //**********************************************************************************************
167 
168  public:
169  //**Type definitions****************************************************************************
175 
177  using ReturnType = decltype( std::declval<OP>()( std::declval<RN>() ) );
178 
181 
183  using Operand = If_< IsExpression<MT>, const MT, const MT& >;
184 
186  using Operation = OP;
187  //**********************************************************************************************
188 
189  //**ConstIterator class definition**************************************************************
193  {
194  public:
195  //**Type definitions*************************************************************************
196  using IteratorCategory = std::random_access_iterator_tag;
201 
202  // STL iterator requirements
208 
211  //*******************************************************************************************
212 
213  //**Constructor******************************************************************************
219  explicit inline ConstIterator( IteratorType it, OP op )
220  : it_( it ) // Iterator to the current matrix element
221  , op_( op ) // The custom unary operation
222  {}
223  //*******************************************************************************************
224 
225  //**Addition assignment operator*************************************************************
231  inline ConstIterator& operator+=( size_t inc ) {
232  it_ += inc;
233  return *this;
234  }
235  //*******************************************************************************************
236 
237  //**Subtraction assignment operator**********************************************************
243  inline ConstIterator& operator-=( size_t dec ) {
244  it_ -= dec;
245  return *this;
246  }
247  //*******************************************************************************************
248 
249  //**Prefix increment operator****************************************************************
255  ++it_;
256  return *this;
257  }
258  //*******************************************************************************************
259 
260  //**Postfix increment operator***************************************************************
265  inline const ConstIterator operator++( int ) {
266  return ConstIterator( it_++, op_ );
267  }
268  //*******************************************************************************************
269 
270  //**Prefix decrement operator****************************************************************
276  --it_;
277  return *this;
278  }
279  //*******************************************************************************************
280 
281  //**Postfix decrement operator***************************************************************
286  inline const ConstIterator operator--( int ) {
287  return ConstIterator( it_--, op_ );
288  }
289  //*******************************************************************************************
290 
291  //**Element access operator******************************************************************
296  inline ReturnType operator*() const {
297  return op_( *it_ );
298  }
299  //*******************************************************************************************
300 
301  //**Load function****************************************************************************
306  inline auto load() const noexcept {
307  return op_.load( it_.load() );
308  }
309  //*******************************************************************************************
310 
311  //**Equality operator************************************************************************
317  inline bool operator==( const ConstIterator& rhs ) const {
318  return it_ == rhs.it_;
319  }
320  //*******************************************************************************************
321 
322  //**Inequality operator**********************************************************************
328  inline bool operator!=( const ConstIterator& rhs ) const {
329  return it_ != rhs.it_;
330  }
331  //*******************************************************************************************
332 
333  //**Less-than operator***********************************************************************
339  inline bool operator<( const ConstIterator& rhs ) const {
340  return it_ < rhs.it_;
341  }
342  //*******************************************************************************************
343 
344  //**Greater-than operator********************************************************************
350  inline bool operator>( const ConstIterator& rhs ) const {
351  return it_ > rhs.it_;
352  }
353  //*******************************************************************************************
354 
355  //**Less-or-equal-than operator**************************************************************
361  inline bool operator<=( const ConstIterator& rhs ) const {
362  return it_ <= rhs.it_;
363  }
364  //*******************************************************************************************
365 
366  //**Greater-or-equal-than operator***********************************************************
372  inline bool operator>=( const ConstIterator& rhs ) const {
373  return it_ >= rhs.it_;
374  }
375  //*******************************************************************************************
376 
377  //**Subtraction operator*********************************************************************
383  inline DifferenceType operator-( const ConstIterator& rhs ) const {
384  return it_ - rhs.it_;
385  }
386  //*******************************************************************************************
387 
388  //**Addition operator************************************************************************
395  friend inline const ConstIterator operator+( const ConstIterator& it, size_t inc ) {
396  return ConstIterator( it.it_ + inc, it.op_ );
397  }
398  //*******************************************************************************************
399 
400  //**Addition operator************************************************************************
407  friend inline const ConstIterator operator+( size_t inc, const ConstIterator& it ) {
408  return ConstIterator( it.it_ + inc, it.op_ );
409  }
410  //*******************************************************************************************
411 
412  //**Subtraction operator*********************************************************************
419  friend inline const ConstIterator operator-( const ConstIterator& it, size_t dec ) {
420  return ConstIterator( it.it_ - dec, it.op_ );
421  }
422  //*******************************************************************************************
423 
424  private:
425  //**Member variables*************************************************************************
427  OP op_;
428  //*******************************************************************************************
429  };
430  //**********************************************************************************************
431 
432  //**Compilation flags***************************************************************************
434  enum : bool { simdEnabled = MT::simdEnabled &&
435  If_< HasSIMDEnabled<OP>, UseSIMDEnabledFlag, HasLoad<OP> >::value };
436 
438  enum : bool { smpAssignable = MT::smpAssignable };
439  //**********************************************************************************************
440 
441  //**SIMD properties*****************************************************************************
443  enum : size_t { SIMDSIZE = SIMDTrait<ElementType>::size };
444  //**********************************************************************************************
445 
446  //**Constructor*********************************************************************************
452  explicit inline DMatMapExpr( const MT& dm, OP op ) noexcept
453  : dm_( dm ) // Dense matrix of the map expression
454  , op_( op ) // The custom unary operation
455  {}
456  //**********************************************************************************************
457 
458  //**Access operator*****************************************************************************
465  inline ReturnType operator()( size_t i, size_t j ) const noexcept {
466  BLAZE_INTERNAL_ASSERT( i < dm_.rows() , "Invalid row access index" );
467  BLAZE_INTERNAL_ASSERT( j < dm_.columns(), "Invalid column access index" );
468  return op_( dm_(i,j) );
469  }
470  //**********************************************************************************************
471 
472  //**At function*********************************************************************************
480  inline ReturnType at( size_t i, size_t j ) const {
481  if( i >= dm_.rows() ) {
482  BLAZE_THROW_OUT_OF_RANGE( "Invalid row access index" );
483  }
484  if( j >= dm_.columns() ) {
485  BLAZE_THROW_OUT_OF_RANGE( "Invalid column access index" );
486  }
487  return (*this)(i,j);
488  }
489  //**********************************************************************************************
490 
491  //**Load function*******************************************************************************
498  BLAZE_ALWAYS_INLINE auto load( size_t i, size_t j ) const noexcept {
499  BLAZE_INTERNAL_ASSERT( i < dm_.rows() , "Invalid row access index" );
500  BLAZE_INTERNAL_ASSERT( j < dm_.columns(), "Invalid column access index" );
501  BLAZE_INTERNAL_ASSERT( !SO || ( i % SIMDSIZE == 0UL ), "Invalid row access index" );
502  BLAZE_INTERNAL_ASSERT( SO || ( j % SIMDSIZE == 0UL ), "Invalid column access index" );
503  return op_.load( dm_.load(i,j) );
504  }
505  //**********************************************************************************************
506 
507  //**Begin function******************************************************************************
513  inline ConstIterator begin( size_t i ) const {
514  return ConstIterator( dm_.begin(i), op_ );
515  }
516  //**********************************************************************************************
517 
518  //**End function********************************************************************************
524  inline ConstIterator end( size_t i ) const {
525  return ConstIterator( dm_.end(i), op_ );
526  }
527  //**********************************************************************************************
528 
529  //**Rows function*******************************************************************************
534  inline size_t rows() const noexcept {
535  return dm_.rows();
536  }
537  //**********************************************************************************************
538 
539  //**Columns function****************************************************************************
544  inline size_t columns() const noexcept {
545  return dm_.columns();
546  }
547  //**********************************************************************************************
548 
549  //**Operand access******************************************************************************
554  inline Operand operand() const noexcept {
555  return dm_;
556  }
557  //**********************************************************************************************
558 
559  //**Operation access****************************************************************************
564  inline Operation operation() const {
565  return op_;
566  }
567  //**********************************************************************************************
568 
569  //**********************************************************************************************
575  template< typename T >
576  inline bool canAlias( const T* alias ) const noexcept {
577  return IsExpression<MT>::value && dm_.canAlias( alias );
578  }
579  //**********************************************************************************************
580 
581  //**********************************************************************************************
587  template< typename T >
588  inline bool isAliased( const T* alias ) const noexcept {
589  return dm_.isAliased( alias );
590  }
591  //**********************************************************************************************
592 
593  //**********************************************************************************************
598  inline bool isAligned() const noexcept {
599  return dm_.isAligned();
600  }
601  //**********************************************************************************************
602 
603  //**********************************************************************************************
608  inline bool canSMPAssign() const noexcept {
609  return dm_.canSMPAssign();
610  }
611  //**********************************************************************************************
612 
613  private:
614  //**Member variables****************************************************************************
617  //**********************************************************************************************
618 
619  //**Assignment to dense matrices****************************************************************
634  template< typename MT2 // Type of the target dense matrix
635  , bool SO2 > // Storage order or the target dense matrix
636  friend inline EnableIf_< And< UseAssign<MT2>
638  assign( DenseMatrix<MT2,SO2>& lhs, const DMatMapExpr& rhs )
639  {
641 
642  BLAZE_INTERNAL_ASSERT( (~lhs).rows() == rhs.rows() , "Invalid number of rows" );
643  BLAZE_INTERNAL_ASSERT( (~lhs).columns() == rhs.columns(), "Invalid number of columns" );
644 
645  assign( ~lhs, rhs.dm_ );
646  assign( ~lhs, rhs.op_( ~lhs ) );
647  }
649  //**********************************************************************************************
650 
651  //**Assignment to dense matrices****************************************************************
666  template< typename MT2 // Type of the target dense matrix
667  , bool SO2 > // Storage order or the target dense matrix
668  friend inline EnableIf_< And< UseAssign<MT2>
670  assign( DenseMatrix<MT2,SO2>& lhs, const DMatMapExpr& rhs )
671  {
673 
677 
678  BLAZE_INTERNAL_ASSERT( (~lhs).rows() == rhs.rows() , "Invalid number of rows" );
679  BLAZE_INTERNAL_ASSERT( (~lhs).columns() == rhs.columns(), "Invalid number of columns" );
680 
681  const RT tmp( serial( rhs.dm_ ) );
682  assign( ~lhs, map( tmp, rhs.op_ ) );
683  }
685  //**********************************************************************************************
686 
687  //**Assignment to sparse matrices***************************************************************
701  template< typename MT2 // Type of the target sparse matrix
702  , bool SO2 > // Storage order or the target sparse matrix
703  friend inline EnableIf_< UseAssign<MT2> >
704  assign( SparseMatrix<MT2,SO2>& lhs, const DMatMapExpr& rhs )
705  {
707 
708  using TmpType = IfTrue_< SO == SO2, RT, OT >;
709 
716 
717  BLAZE_INTERNAL_ASSERT( (~lhs).rows() == rhs.rows() , "Invalid number of rows" );
718  BLAZE_INTERNAL_ASSERT( (~lhs).columns() == rhs.columns(), "Invalid number of columns" );
719 
720  const TmpType tmp( serial( rhs.dm_ ) );
721  assign( ~lhs, rhs.op_( tmp ) );
722  }
724  //**********************************************************************************************
725 
726  //**Addition assignment to dense matrices*******************************************************
740  template< typename MT2 // Type of the target dense matrix
741  , bool SO2 > // Storage order of the target dense matrix
742  friend inline EnableIf_< UseAssign<MT2> >
743  addAssign( DenseMatrix<MT2,SO2>& lhs, const DMatMapExpr& rhs )
744  {
746 
750 
751  BLAZE_INTERNAL_ASSERT( (~lhs).rows() == rhs.rows() , "Invalid number of rows" );
752  BLAZE_INTERNAL_ASSERT( (~lhs).columns() == rhs.columns(), "Invalid number of columns" );
753 
754  const RT tmp( serial( rhs.dm_ ) );
755  addAssign( ~lhs, map( tmp, rhs.op_ ) );
756  }
758  //**********************************************************************************************
759 
760  //**Addition assignment to sparse matrices******************************************************
761  // No special implementation for the addition assignment to sparse matrices.
762  //**********************************************************************************************
763 
764  //**Subtraction assignment to dense matrices****************************************************
778  template< typename MT2 // Type of the target dense matrix
779  , bool SO2 > // Storage order of the target dense matrix
780  friend inline EnableIf_< UseAssign<MT2> >
781  subAssign( DenseMatrix<MT2,SO2>& lhs, const DMatMapExpr& rhs )
782  {
784 
788 
789  BLAZE_INTERNAL_ASSERT( (~lhs).rows() == rhs.rows() , "Invalid number of rows" );
790  BLAZE_INTERNAL_ASSERT( (~lhs).columns() == rhs.columns(), "Invalid number of columns" );
791 
792  const RT tmp( serial( rhs.dm_ ) );
793  subAssign( ~lhs, map( tmp, rhs.op_ ) );
794  }
796  //**********************************************************************************************
797 
798  //**Subtraction assignment to sparse matrices***************************************************
799  // No special implementation for the subtraction assignment to sparse matrices.
800  //**********************************************************************************************
801 
802  //**Schur product assignment to dense matrices**************************************************
816  template< typename MT2 // Type of the target dense matrix
817  , bool SO2 > // Storage order of the target dense matrix
818  friend inline EnableIf_< UseAssign<MT2> >
819  schurAssign( DenseMatrix<MT2,SO2>& lhs, const DMatMapExpr& rhs )
820  {
822 
826 
827  BLAZE_INTERNAL_ASSERT( (~lhs).rows() == rhs.rows() , "Invalid number of rows" );
828  BLAZE_INTERNAL_ASSERT( (~lhs).columns() == rhs.columns(), "Invalid number of columns" );
829 
830  const RT tmp( serial( rhs.dm_ ) );
831  schurAssign( ~lhs, map( tmp, rhs.op_ ) );
832  }
834  //**********************************************************************************************
835 
836  //**Schur product assignment to sparse matrices*************************************************
837  // No special implementation for the Schur product assignment to sparse matrices.
838  //**********************************************************************************************
839 
840  //**Multiplication assignment to dense matrices*************************************************
841  // No special implementation for the multiplication assignment to dense matrices.
842  //**********************************************************************************************
843 
844  //**Multiplication assignment to sparse matrices************************************************
845  // No special implementation for the multiplication assignment to sparse matrices.
846  //**********************************************************************************************
847 
848  //**SMP assignment to dense matrices************************************************************
863  template< typename MT2 // Type of the target dense matrix
864  , bool SO2 > // Storage order or the target dense matrix
866  , IsSame< UnderlyingNumeric<MT>, UnderlyingNumeric<MT2> > > >
867  smpAssign( DenseMatrix<MT2,SO2>& lhs, const DMatMapExpr& rhs )
868  {
870 
871  BLAZE_INTERNAL_ASSERT( (~lhs).rows() == rhs.rows() , "Invalid number of rows" );
872  BLAZE_INTERNAL_ASSERT( (~lhs).columns() == rhs.columns(), "Invalid number of columns" );
873 
874  smpAssign( ~lhs, rhs.dm_ );
875  smpAssign( ~lhs, rhs.op_( ~lhs ) );
876  }
878  //**********************************************************************************************
879 
880  //**SMP assignment to dense matrices************************************************************
895  template< typename MT2 // Type of the target dense matrix
896  , bool SO2 > // Storage order or the target dense matrix
897  friend inline EnableIf_< And< UseSMPAssign<MT2>
898  , Not< IsSame< UnderlyingNumeric<MT>, UnderlyingNumeric<MT2> > > > >
899  smpAssign( DenseMatrix<MT2,SO2>& lhs, const DMatMapExpr& rhs )
900  {
902 
906 
907  BLAZE_INTERNAL_ASSERT( (~lhs).rows() == rhs.rows() , "Invalid number of rows" );
908  BLAZE_INTERNAL_ASSERT( (~lhs).columns() == rhs.columns(), "Invalid number of columns" );
909 
910  const RT tmp( rhs.dm_ );
911  smpAssign( ~lhs, map( tmp, rhs.op_ ) );
912  }
914  //**********************************************************************************************
915 
916  //**SMP assignment to sparse matrices***********************************************************
930  template< typename MT2 // Type of the target sparse matrix
931  , bool SO2 > // Storage order or the target sparse matrix
932  friend inline EnableIf_< UseSMPAssign<MT2> >
933  smpAssign( SparseMatrix<MT2,SO2>& lhs, const DMatMapExpr& rhs )
934  {
936 
937  using TmpType = IfTrue_< SO == SO2, RT, OT >;
938 
945 
946  BLAZE_INTERNAL_ASSERT( (~lhs).rows() == rhs.rows() , "Invalid number of rows" );
947  BLAZE_INTERNAL_ASSERT( (~lhs).columns() == rhs.columns(), "Invalid number of columns" );
948 
949  const TmpType tmp( rhs.dm_ );
950  smpAssign( ~lhs, rhs.op_( tmp ) );
951  }
953  //**********************************************************************************************
954 
955  //**SMP addition assignment to dense matrices***************************************************
969  template< typename MT2 // Type of the target dense matrix
970  , bool SO2 > // Storage order of the target dense matrix
971  friend inline EnableIf_< UseSMPAssign<MT2> >
972  smpAddAssign( DenseMatrix<MT2,SO2>& lhs, const DMatMapExpr& rhs )
973  {
975 
979 
980  BLAZE_INTERNAL_ASSERT( (~lhs).rows() == rhs.rows() , "Invalid number of rows" );
981  BLAZE_INTERNAL_ASSERT( (~lhs).columns() == rhs.columns(), "Invalid number of columns" );
982 
983  const RT tmp( rhs.dm_ );
984  smpAddAssign( ~lhs, map( tmp, rhs.op_ ) );
985  }
987  //**********************************************************************************************
988 
989  //**SMP addition assignment to sparse matrices**************************************************
990  // No special implementation for the SMP addition assignment to sparse matrices.
991  //**********************************************************************************************
992 
993  //**SMP subtraction assignment to dense matrices************************************************
1007  template< typename MT2 // Type of the target dense matrix
1008  , bool SO2 > // Storage order of the target dense matrix
1009  friend inline EnableIf_< UseSMPAssign<MT2> >
1010  smpSubAssign( DenseMatrix<MT2,SO2>& lhs, const DMatMapExpr& rhs )
1011  {
1013 
1017 
1018  BLAZE_INTERNAL_ASSERT( (~lhs).rows() == rhs.rows() , "Invalid number of rows" );
1019  BLAZE_INTERNAL_ASSERT( (~lhs).columns() == rhs.columns(), "Invalid number of columns" );
1020 
1021  const RT tmp( rhs.dm_ );
1022  smpSubAssign( ~lhs, map( tmp, rhs.op_ ) );
1023  }
1025  //**********************************************************************************************
1026 
1027  //**SMP subtraction assignment to sparse matrices***********************************************
1028  // No special implementation for the SMP subtraction assignment to sparse matrices.
1029  //**********************************************************************************************
1030 
1031  //**SMP Schur product assignment to dense matrices**********************************************
1045  template< typename MT2 // Type of the target dense matrix
1046  , bool SO2 > // Storage order of the target dense matrix
1047  friend inline EnableIf_< UseSMPAssign<MT2> >
1048  smpSchurAssign( DenseMatrix<MT2,SO2>& lhs, const DMatMapExpr& rhs )
1049  {
1051 
1055 
1056  BLAZE_INTERNAL_ASSERT( (~lhs).rows() == rhs.rows() , "Invalid number of rows" );
1057  BLAZE_INTERNAL_ASSERT( (~lhs).columns() == rhs.columns(), "Invalid number of columns" );
1058 
1059  const RT tmp( rhs.dm_ );
1060  smpSchurAssign( ~lhs, map( tmp, rhs.op_ ) );
1061  }
1063  //**********************************************************************************************
1064 
1065  //**SMP Schur product assignment to sparse matrices*********************************************
1066  // No special implementation for the SMP Schur product assignment to sparse matrices.
1067  //**********************************************************************************************
1068 
1069  //**SMP multiplication assignment to dense matrices*********************************************
1070  // No special implementation for the SMP multiplication assignment to dense matrices.
1071  //**********************************************************************************************
1072 
1073  //**SMP multiplication assignment to sparse matrices********************************************
1074  // No special implementation for the SMP multiplication assignment to sparse matrices.
1075  //**********************************************************************************************
1076 
1077  //**Compile time checks*************************************************************************
1082  //**********************************************************************************************
1083 };
1084 //*************************************************************************************************
1085 
1086 
1087 
1088 
1089 //=================================================================================================
1090 //
1091 // GLOBAL FUNCTIONS
1092 //
1093 //=================================================================================================
1094 
1095 //*************************************************************************************************
1113 template< typename MT // Type of the dense matrix
1114  , bool SO // Storage order
1115  , typename OP > // Type of the custom operation
1116 inline decltype(auto) map( const DenseMatrix<MT,SO>& dm, OP op )
1117 {
1119 
1120  using ReturnType = const DMatMapExpr<MT,OP,SO>;
1121  return ReturnType( ~dm, op );
1122 }
1123 //*************************************************************************************************
1124 
1125 
1126 //*************************************************************************************************
1144 template< typename MT // Type of the dense matrix
1145  , bool SO // Storage order
1146  , typename OP > // Type of the custom operation
1147 inline decltype(auto) forEach( const DenseMatrix<MT,SO>& dm, OP op )
1148 {
1150 
1151  using ReturnType = const DMatMapExpr<MT,OP,SO>;
1152  return ReturnType( ~dm, op );
1153 }
1154 //*************************************************************************************************
1155 
1156 
1157 //*************************************************************************************************
1174 template< typename MT // Type of the dense matrix
1175  , bool SO > // Storage order
1176 inline decltype(auto) abs( const DenseMatrix<MT,SO>& dm )
1177 {
1179 
1180  using ReturnType = const DMatMapExpr<MT,Abs,SO>;
1181  return ReturnType( ~dm, Abs() );
1182 }
1183 //*************************************************************************************************
1184 
1185 
1186 //*************************************************************************************************
1203 template< typename MT // Type of the dense matrix
1204  , bool SO > // Storage order
1205 inline decltype(auto) floor( const DenseMatrix<MT,SO>& dm )
1206 {
1208 
1209  using ReturnType = const DMatMapExpr<MT,Floor,SO>;
1210  return ReturnType( ~dm, Floor() );
1211 }
1212 //*************************************************************************************************
1213 
1214 
1215 //*************************************************************************************************
1232 template< typename MT // Type of the dense matrix
1233  , bool SO > // Storage order
1234 inline decltype(auto) ceil( const DenseMatrix<MT,SO>& dm )
1235 {
1237 
1238  using ReturnType = const DMatMapExpr<MT,Ceil,SO>;
1239  return ReturnType( ~dm, Ceil() );
1240 }
1241 //*************************************************************************************************
1242 
1243 
1244 //*************************************************************************************************
1261 template< typename MT // Type of the dense matrix
1262  , bool SO > // Storage order
1263 inline decltype(auto) trunc( const DenseMatrix<MT,SO>& dm )
1264 {
1266 
1267  using ReturnType = const DMatMapExpr<MT,Trunc,SO>;
1268  return ReturnType( ~dm, Trunc() );
1269 }
1270 //*************************************************************************************************
1271 
1272 
1273 //*************************************************************************************************
1290 template< typename MT // Type of the dense matrix
1291  , bool SO > // Storage order
1292 inline decltype(auto) round( const DenseMatrix<MT,SO>& dm )
1293 {
1295 
1296  using ReturnType = const DMatMapExpr<MT,Round,SO>;
1297  return ReturnType( ~dm, Round() );
1298 }
1299 //*************************************************************************************************
1300 
1301 
1302 //*************************************************************************************************
1319 template< typename MT // Type of the dense matrix
1320  , bool SO > // Storage order
1321 inline decltype(auto) conj( const DenseMatrix<MT,SO>& dm )
1322 {
1324 
1325  using ReturnType = const DMatMapExpr<MT,Conj,SO>;
1326  return ReturnType( ~dm, Conj() );
1327 }
1328 //*************************************************************************************************
1329 
1330 
1331 //*************************************************************************************************
1357 template< typename MT // Type of the dense matrix
1358  , bool SO > // Storage order
1359 inline decltype(auto) ctrans( const DenseMatrix<MT,SO>& dm )
1360 {
1362 
1363  return trans( conj( ~dm ) );
1364 }
1365 //*************************************************************************************************
1366 
1367 
1368 //*************************************************************************************************
1385 template< typename MT // Type of the dense matrix
1386  , bool SO > // Storage order
1387 inline decltype(auto) real( const DenseMatrix<MT,SO>& dm )
1388 {
1390 
1391  using ReturnType = const DMatMapExpr<MT,Real,SO>;
1392  return ReturnType( ~dm, Real() );
1393 }
1394 //*************************************************************************************************
1395 
1396 
1397 //*************************************************************************************************
1414 template< typename MT // Type of the dense matrix
1415  , bool SO > // Storage order
1416 inline decltype(auto) imag( const DenseMatrix<MT,SO>& dm )
1417 {
1419 
1420  using ReturnType = const DMatMapExpr<MT,Imag,SO>;
1421  return ReturnType( ~dm, Imag() );
1422 }
1423 //*************************************************************************************************
1424 
1425 
1426 //*************************************************************************************************
1446 template< typename MT // Type of the dense matrix
1447  , bool SO > // Storage order
1448 inline decltype(auto) sqrt( const DenseMatrix<MT,SO>& dm )
1449 {
1451 
1452  using ReturnType = const DMatMapExpr<MT,Sqrt,SO>;
1453  return ReturnType( ~dm, Sqrt() );
1454 }
1455 //*************************************************************************************************
1456 
1457 
1458 //*************************************************************************************************
1478 template< typename MT // Type of the dense matrix
1479  , bool SO > // Storage order
1480 inline decltype(auto) invsqrt( const DenseMatrix<MT,SO>& dm )
1481 {
1483 
1484  using ReturnType = const DMatMapExpr<MT,InvSqrt,SO>;
1485  return ReturnType( ~dm, InvSqrt() );
1486 }
1487 //*************************************************************************************************
1488 
1489 
1490 //*************************************************************************************************
1510 template< typename MT // Type of the dense matrix
1511  , bool SO > // Storage order
1512 inline decltype(auto) cbrt( const DenseMatrix<MT,SO>& dm )
1513 {
1515 
1516  using ReturnType = const DMatMapExpr<MT,Cbrt,SO>;
1517  return ReturnType( ~dm, Cbrt() );
1518 }
1519 //*************************************************************************************************
1520 
1521 
1522 //*************************************************************************************************
1542 template< typename MT // Type of the dense matrix
1543  , bool SO > // Storage order
1544 inline decltype(auto) invcbrt( const DenseMatrix<MT,SO>& dm )
1545 {
1547 
1548  using ReturnType = const DMatMapExpr<MT,InvCbrt,SO>;
1549  return ReturnType( ~dm, InvCbrt() );
1550 }
1551 //*************************************************************************************************
1552 
1553 
1554 //*************************************************************************************************
1573 template< typename MT // Type of the dense matrix
1574  , bool SO // Storage order
1575  , typename DT > // Type of the delimiters
1576 inline decltype(auto) clamp( const DenseMatrix<MT,SO>& dm, const DT& min, const DT& max )
1577 {
1579 
1580  using ReturnType = const DMatMapExpr<MT,Clamp<DT>,SO>;
1581  return ReturnType( ~dm, Clamp<DT>( min, max ) );
1582 }
1583 //*************************************************************************************************
1584 
1585 
1586 //*************************************************************************************************
1604 template< typename MT // Type of the dense matrix
1605  , bool SO // Storage order
1606  , typename ET > // Type of the exponent
1607 inline decltype(auto) pow( const DenseMatrix<MT,SO>& dm, ET exp )
1608 {
1610 
1612 
1613  using ReturnType = const DMatMapExpr<MT,Pow<ET>,SO>;
1614  return ReturnType( ~dm, Pow<ET>( exp ) );
1615 }
1616 //*************************************************************************************************
1617 
1618 
1619 //*************************************************************************************************
1636 template< typename MT // Type of the dense matrix
1637  , bool SO > // Storage order
1638 inline decltype(auto) exp( const DenseMatrix<MT,SO>& dm )
1639 {
1641 
1642  using ReturnType = const DMatMapExpr<MT,Exp,SO>;
1643  return ReturnType( ~dm, Exp() );
1644 }
1645 //*************************************************************************************************
1646 
1647 
1648 //*************************************************************************************************
1665 template< typename MT // Type of the dense matrix
1666  , bool SO > // Storage order
1667 inline decltype(auto) exp2( const DenseMatrix<MT,SO>& dm )
1668 {
1670 
1671  using ReturnType = const DMatMapExpr<MT,Exp2,SO>;
1672  return ReturnType( ~dm, Exp2() );
1673 }
1674 //*************************************************************************************************
1675 
1676 
1677 //*************************************************************************************************
1694 template< typename MT // Type of the dense matrix
1695  , bool SO > // Storage order
1696 inline decltype(auto) exp10( const DenseMatrix<MT,SO>& dm )
1697 {
1699 
1700  using ReturnType = const DMatMapExpr<MT,Exp10,SO>;
1701  return ReturnType( ~dm, Exp10() );
1702 }
1703 //*************************************************************************************************
1704 
1705 
1706 //*************************************************************************************************
1726 template< typename MT // Type of the dense matrix
1727  , bool SO > // Storage order
1728 inline decltype(auto) log( const DenseMatrix<MT,SO>& dm )
1729 {
1731 
1732  using ReturnType = const DMatMapExpr<MT,Log,SO>;
1733  return ReturnType( ~dm, Log() );
1734 }
1735 //*************************************************************************************************
1736 
1737 
1738 //*************************************************************************************************
1758 template< typename MT // Type of the dense matrix
1759  , bool SO > // Storage order
1760 inline decltype(auto) log2( const DenseMatrix<MT,SO>& dm )
1761 {
1763 
1764  using ReturnType = const DMatMapExpr<MT,Log2,SO>;
1765  return ReturnType( ~dm, Log2() );
1766 }
1767 //*************************************************************************************************
1768 
1769 
1770 //*************************************************************************************************
1790 template< typename MT // Type of the dense matrix
1791  , bool SO > // Storage order
1792 inline decltype(auto) log10( const DenseMatrix<MT,SO>& dm )
1793 {
1795 
1796  using ReturnType = const DMatMapExpr<MT,Log10,SO>;
1797  return ReturnType( ~dm, Log10() );
1798 }
1799 //*************************************************************************************************
1800 
1801 
1802 //*************************************************************************************************
1819 template< typename MT // Type of the dense matrix
1820  , bool SO > // Storage order
1821 inline decltype(auto) sin( const DenseMatrix<MT,SO>& dm )
1822 {
1824 
1825  using ReturnType = const DMatMapExpr<MT,Sin,SO>;
1826  return ReturnType( ~dm, Sin() );
1827 }
1828 //*************************************************************************************************
1829 
1830 
1831 //*************************************************************************************************
1851 template< typename MT // Type of the dense matrix
1852  , bool SO > // Storage order
1853 inline decltype(auto) asin( const DenseMatrix<MT,SO>& dm )
1854 {
1856 
1857  using ReturnType = const DMatMapExpr<MT,Asin,SO>;
1858  return ReturnType( ~dm, Asin() );
1859 }
1860 //*************************************************************************************************
1861 
1862 
1863 //*************************************************************************************************
1880 template< typename MT // Type of the dense matrix
1881  , bool SO > // Storage order
1882 inline decltype(auto) sinh( const DenseMatrix<MT,SO>& dm )
1883 {
1885 
1886  using ReturnType = const DMatMapExpr<MT,Sinh,SO>;
1887  return ReturnType( ~dm, Sinh() );
1888 }
1889 //*************************************************************************************************
1890 
1891 
1892 //*************************************************************************************************
1909 template< typename MT // Type of the dense matrix
1910  , bool SO > // Storage order
1911 inline decltype(auto) asinh( const DenseMatrix<MT,SO>& dm )
1912 {
1914 
1915  using ReturnType = const DMatMapExpr<MT,Asinh,SO>;
1916  return ReturnType( ~dm, Asinh() );
1917 }
1918 //*************************************************************************************************
1919 
1920 
1921 //*************************************************************************************************
1938 template< typename MT // Type of the dense matrix
1939  , bool SO > // Storage order
1940 inline decltype(auto) cos( const DenseMatrix<MT,SO>& dm )
1941 {
1943 
1944  using ReturnType = const DMatMapExpr<MT,Cos,SO>;
1945  return ReturnType( ~dm, Cos() );
1946 }
1947 //*************************************************************************************************
1948 
1949 
1950 //*************************************************************************************************
1970 template< typename MT // Type of the dense matrix
1971  , bool SO > // Storage order
1972 inline decltype(auto) acos( const DenseMatrix<MT,SO>& dm )
1973 {
1975 
1976  using ReturnType = const DMatMapExpr<MT,Acos,SO>;
1977  return ReturnType( ~dm, Acos() );
1978 }
1979 //*************************************************************************************************
1980 
1981 
1982 //*************************************************************************************************
1999 template< typename MT // Type of the dense matrix
2000  , bool SO > // Storage order
2001 inline decltype(auto) cosh( const DenseMatrix<MT,SO>& dm )
2002 {
2004 
2005  using ReturnType = const DMatMapExpr<MT,Cosh,SO>;
2006  return ReturnType( ~dm, Cosh() );
2007 }
2008 //*************************************************************************************************
2009 
2010 
2011 //*************************************************************************************************
2031 template< typename MT // Type of the dense matrix
2032  , bool SO > // Storage order
2033 inline decltype(auto) acosh( const DenseMatrix<MT,SO>& dm )
2034 {
2036 
2037  using ReturnType = const DMatMapExpr<MT,Acosh,SO>;
2038  return ReturnType( ~dm, Acosh() );
2039 }
2040 //*************************************************************************************************
2041 
2042 
2043 //*************************************************************************************************
2060 template< typename MT // Type of the dense matrix
2061  , bool SO > // Storage order
2062 inline decltype(auto) tan( const DenseMatrix<MT,SO>& dm )
2063 {
2065 
2066  using ReturnType = const DMatMapExpr<MT,Tan,SO>;
2067  return ReturnType( ~dm, Tan() );
2068 }
2069 //*************************************************************************************************
2070 
2071 
2072 //*************************************************************************************************
2089 template< typename MT // Type of the dense matrix
2090  , bool SO > // Storage order
2091 inline decltype(auto) atan( const DenseMatrix<MT,SO>& dm )
2092 {
2094 
2095  using ReturnType = const DMatMapExpr<MT,Atan,SO>;
2096  return ReturnType( ~dm, Atan() );
2097 }
2098 //*************************************************************************************************
2099 
2100 
2101 //*************************************************************************************************
2121 template< typename MT // Type of the dense matrix
2122  , bool SO > // Storage order
2123 inline decltype(auto) tanh( const DenseMatrix<MT,SO>& dm )
2124 {
2126 
2127  using ReturnType = const DMatMapExpr<MT,Tanh,SO>;
2128  return ReturnType( ~dm, Tanh() );
2129 }
2130 //*************************************************************************************************
2131 
2132 
2133 //*************************************************************************************************
2153 template< typename MT // Type of the dense matrix
2154  , bool SO > // Storage order
2155 inline decltype(auto) atanh( const DenseMatrix<MT,SO>& dm )
2156 {
2158 
2159  using ReturnType = const DMatMapExpr<MT,Atanh,SO>;
2160  return ReturnType( ~dm, Atanh() );
2161 }
2162 //*************************************************************************************************
2163 
2164 
2165 //*************************************************************************************************
2182 template< typename MT // Type of the dense matrix
2183  , bool SO > // Storage order
2184 inline decltype(auto) erf( const DenseMatrix<MT,SO>& dm )
2185 {
2187 
2188  using ReturnType = const DMatMapExpr<MT,Erf,SO>;
2189  return ReturnType( ~dm, Erf() );
2190 }
2191 //*************************************************************************************************
2192 
2193 
2194 //*************************************************************************************************
2211 template< typename MT // Type of the dense matrix
2212  , bool SO > // Storage order
2213 inline decltype(auto) erfc( const DenseMatrix<MT,SO>& dm )
2214 {
2216 
2217  using ReturnType = const DMatMapExpr<MT,Erfc,SO>;
2218  return ReturnType( ~dm, Erfc() );
2219 }
2220 //*************************************************************************************************
2221 
2222 
2223 
2224 
2225 //=================================================================================================
2226 //
2227 // GLOBAL RESTRUCTURING FUNCTIONS
2228 //
2229 //=================================================================================================
2230 
2231 //*************************************************************************************************
2242 template< typename MT // Type of the dense matrix
2243  , bool SO > // Storage order
2244 inline decltype(auto) abs( const DMatMapExpr<MT,Abs,SO>& dm )
2245 {
2247 
2248  return dm;
2249 }
2251 //*************************************************************************************************
2252 
2253 
2254 //*************************************************************************************************
2265 template< typename MT // Type of the dense matrix
2266  , bool SO > // Storage order
2267 inline decltype(auto) floor( const DMatMapExpr<MT,Floor,SO>& dm )
2268 {
2270 
2271  return dm;
2272 }
2274 //*************************************************************************************************
2275 
2276 
2277 //*************************************************************************************************
2288 template< typename MT // Type of the dense matrix
2289  , bool SO > // Storage order
2290 inline decltype(auto) ceil( const DMatMapExpr<MT,Ceil,SO>& dm )
2291 {
2293 
2294  return dm;
2295 }
2297 //*************************************************************************************************
2298 
2299 
2300 //*************************************************************************************************
2311 template< typename MT // Type of the dense matrix
2312  , bool SO > // Storage order
2313 inline decltype(auto) trunc( const DMatMapExpr<MT,Trunc,SO>& dm )
2314 {
2316 
2317  return dm;
2318 }
2320 //*************************************************************************************************
2321 
2322 
2323 //*************************************************************************************************
2334 template< typename MT // Type of the dense matrix
2335  , bool SO > // Storage order
2336 inline decltype(auto) round( const DMatMapExpr<MT,Round,SO>& dm )
2337 {
2339 
2340  return dm;
2341 }
2343 //*************************************************************************************************
2344 
2345 
2346 //*************************************************************************************************
2364 template< typename MT // Type of the dense matrix
2365  , bool SO > // Storage order
2366 inline decltype(auto) conj( const DMatMapExpr<MT,Conj,SO>& dm )
2367 {
2369 
2370  return dm.operand();
2371 }
2373 //*************************************************************************************************
2374 
2375 
2376 //*************************************************************************************************
2394 template< typename MT // Type of the dense matrix
2395  , bool SO > // Storage order
2396 inline decltype(auto) conj( const DMatTransExpr<DMatMapExpr<MT,Conj,SO>,!SO>& dm )
2397 {
2399 
2400  using ReturnType = const DMatTransExpr<MT,!SO>;
2401  return ReturnType( dm.operand().operand() );
2402 }
2404 //*************************************************************************************************
2405 
2406 
2407 //*************************************************************************************************
2418 template< typename MT // Type of the dense matrix
2419  , bool SO > // Storage order
2420 inline decltype(auto) real( const DMatMapExpr<MT,Real,SO>& dm )
2421 {
2423 
2424  return dm;
2425 }
2427 //*************************************************************************************************
2428 
2429 
2430 
2431 
2432 //=================================================================================================
2433 //
2434 // ROWS SPECIALIZATIONS
2435 //
2436 //=================================================================================================
2437 
2438 //*************************************************************************************************
2440 template< typename MT, typename OP, bool SO >
2441 struct Rows< DMatMapExpr<MT,OP,SO> >
2442  : public Rows<MT>
2443 {};
2445 //*************************************************************************************************
2446 
2447 
2448 
2449 
2450 //=================================================================================================
2451 //
2452 // COLUMNS SPECIALIZATIONS
2453 //
2454 //=================================================================================================
2455 
2456 //*************************************************************************************************
2458 template< typename MT, typename OP, bool SO >
2459 struct Columns< DMatMapExpr<MT,OP,SO> >
2460  : public Columns<MT>
2461 {};
2463 //*************************************************************************************************
2464 
2465 
2466 
2467 
2468 //=================================================================================================
2469 //
2470 // ISALIGNED SPECIALIZATIONS
2471 //
2472 //=================================================================================================
2473 
2474 //*************************************************************************************************
2476 template< typename MT, typename OP, bool SO >
2477 struct IsAligned< DMatMapExpr<MT,OP,SO> >
2478  : public BoolConstant< IsAligned<MT>::value >
2479 {};
2481 //*************************************************************************************************
2482 
2483 
2484 
2485 
2486 //=================================================================================================
2487 //
2488 // ISPADDED SPECIALIZATIONS
2489 //
2490 //=================================================================================================
2491 
2492 //*************************************************************************************************
2494 template< typename MT, typename OP, bool SO >
2495 struct IsPadded< DMatMapExpr<MT,OP,SO> >
2496  : public BoolConstant< IsPadded<MT>::value >
2497 {};
2499 //*************************************************************************************************
2500 
2501 
2502 
2503 
2504 //=================================================================================================
2505 //
2506 // ISSYMMETRIC SPECIALIZATIONS
2507 //
2508 //=================================================================================================
2509 
2510 //*************************************************************************************************
2512 template< typename MT, bool SO >
2513 struct IsSymmetric< DMatMapExpr<MT,Abs,SO> >
2514  : public BoolConstant< IsSymmetric<MT>::value >
2515 {};
2516 
2517 template< typename MT, bool SO >
2518 struct IsSymmetric< DMatMapExpr<MT,Floor,SO> >
2519  : public BoolConstant< IsSymmetric<MT>::value >
2520 {};
2521 
2522 template< typename MT, bool SO >
2523 struct IsSymmetric< DMatMapExpr<MT,Ceil,SO> >
2524  : public BoolConstant< IsSymmetric<MT>::value >
2525 {};
2526 
2527 template< typename MT, bool SO >
2528 struct IsSymmetric< DMatMapExpr<MT,Trunc,SO> >
2529  : public BoolConstant< IsSymmetric<MT>::value >
2530 {};
2531 
2532 template< typename MT, bool SO >
2533 struct IsSymmetric< DMatMapExpr<MT,Round,SO> >
2534  : public BoolConstant< IsSymmetric<MT>::value >
2535 {};
2536 
2537 template< typename MT, bool SO >
2538 struct IsSymmetric< DMatMapExpr<MT,Conj,SO> >
2539  : public BoolConstant< IsSymmetric<MT>::value >
2540 {};
2541 
2542 template< typename MT, bool SO >
2543 struct IsSymmetric< DMatMapExpr<MT,Real,SO> >
2544  : public BoolConstant< IsSymmetric<MT>::value >
2545 {};
2546 
2547 template< typename MT, bool SO >
2548 struct IsSymmetric< DMatMapExpr<MT,Imag,SO> >
2549  : public BoolConstant< IsSymmetric<MT>::value >
2550 {};
2551 
2552 template< typename MT, bool SO >
2553 struct IsSymmetric< DMatMapExpr<MT,Sqrt,SO> >
2554  : public BoolConstant< IsSymmetric<MT>::value >
2555 {};
2556 
2557 template< typename MT, bool SO >
2558 struct IsSymmetric< DMatMapExpr<MT,InvSqrt,SO> >
2559  : public BoolConstant< IsSymmetric<MT>::value >
2560 {};
2561 
2562 template< typename MT, bool SO >
2563 struct IsSymmetric< DMatMapExpr<MT,Cbrt,SO> >
2564  : public BoolConstant< IsSymmetric<MT>::value >
2565 {};
2566 
2567 template< typename MT, bool SO >
2568 struct IsSymmetric< DMatMapExpr<MT,InvCbrt,SO> >
2569  : public BoolConstant< IsSymmetric<MT>::value >
2570 {};
2571 
2572 template< typename MT, typename ET, bool SO >
2573 struct IsSymmetric< DMatMapExpr<MT,Pow<ET>,SO> >
2574  : public BoolConstant< IsSymmetric<MT>::value >
2575 {};
2576 
2577 template< typename MT, bool SO >
2578 struct IsSymmetric< DMatMapExpr<MT,Exp,SO> >
2579  : public BoolConstant< IsSymmetric<MT>::value >
2580 {};
2581 
2582 template< typename MT, bool SO >
2583 struct IsSymmetric< DMatMapExpr<MT,Exp2,SO> >
2584  : public BoolConstant< IsSymmetric<MT>::value >
2585 {};
2586 
2587 template< typename MT, bool SO >
2588 struct IsSymmetric< DMatMapExpr<MT,Exp10,SO> >
2589  : public BoolConstant< IsSymmetric<MT>::value >
2590 {};
2591 
2592 template< typename MT, bool SO >
2593 struct IsSymmetric< DMatMapExpr<MT,Log,SO> >
2594  : public BoolConstant< IsSymmetric<MT>::value >
2595 {};
2596 
2597 template< typename MT, bool SO >
2598 struct IsSymmetric< DMatMapExpr<MT,Log2,SO> >
2599  : public BoolConstant< IsSymmetric<MT>::value >
2600 {};
2601 
2602 template< typename MT, bool SO >
2603 struct IsSymmetric< DMatMapExpr<MT,Log10,SO> >
2604  : public BoolConstant< IsSymmetric<MT>::value >
2605 {};
2606 
2607 template< typename MT, bool SO >
2608 struct IsSymmetric< DMatMapExpr<MT,Sin,SO> >
2609  : public BoolConstant< IsSymmetric<MT>::value >
2610 {};
2611 
2612 template< typename MT, bool SO >
2613 struct IsSymmetric< DMatMapExpr<MT,Asin,SO> >
2614  : public BoolConstant< IsSymmetric<MT>::value >
2615 {};
2616 
2617 template< typename MT, bool SO >
2618 struct IsSymmetric< DMatMapExpr<MT,Sinh,SO> >
2619  : public BoolConstant< IsSymmetric<MT>::value >
2620 {};
2621 
2622 template< typename MT, bool SO >
2623 struct IsSymmetric< DMatMapExpr<MT,Asinh,SO> >
2624  : public BoolConstant< IsSymmetric<MT>::value >
2625 {};
2626 
2627 template< typename MT, bool SO >
2628 struct IsSymmetric< DMatMapExpr<MT,Cos,SO> >
2629  : public BoolConstant< IsSymmetric<MT>::value >
2630 {};
2631 
2632 template< typename MT, bool SO >
2633 struct IsSymmetric< DMatMapExpr<MT,Acos,SO> >
2634  : public BoolConstant< IsSymmetric<MT>::value >
2635 {};
2636 
2637 template< typename MT, bool SO >
2638 struct IsSymmetric< DMatMapExpr<MT,Cosh,SO> >
2639  : public BoolConstant< IsSymmetric<MT>::value >
2640 {};
2641 
2642 template< typename MT, bool SO >
2643 struct IsSymmetric< DMatMapExpr<MT,Acosh,SO> >
2644  : public BoolConstant< IsSymmetric<MT>::value >
2645 {};
2646 
2647 template< typename MT, bool SO >
2648 struct IsSymmetric< DMatMapExpr<MT,Tan,SO> >
2649  : public BoolConstant< IsSymmetric<MT>::value >
2650 {};
2651 
2652 template< typename MT, bool SO >
2653 struct IsSymmetric< DMatMapExpr<MT,Atan,SO> >
2654  : public BoolConstant< IsSymmetric<MT>::value >
2655 {};
2656 
2657 template< typename MT, bool SO >
2658 struct IsSymmetric< DMatMapExpr<MT,Tanh,SO> >
2659  : public BoolConstant< IsSymmetric<MT>::value >
2660 {};
2661 
2662 template< typename MT, bool SO >
2663 struct IsSymmetric< DMatMapExpr<MT,Atanh,SO> >
2664  : public BoolConstant< IsSymmetric<MT>::value >
2665 {};
2666 
2667 template< typename MT, bool SO >
2668 struct IsSymmetric< DMatMapExpr<MT,Erf,SO> >
2669  : public BoolConstant< IsSymmetric<MT>::value >
2670 {};
2671 
2672 template< typename MT, bool SO >
2673 struct IsSymmetric< DMatMapExpr<MT,Erfc,SO> >
2674  : public BoolConstant< IsSymmetric<MT>::value >
2675 {};
2677 //*************************************************************************************************
2678 
2679 
2680 
2681 
2682 //=================================================================================================
2683 //
2684 // ISHERMITIAN SPECIALIZATIONS
2685 //
2686 //=================================================================================================
2687 
2688 //*************************************************************************************************
2690 template< typename MT, bool SO >
2691 struct IsHermitian< DMatMapExpr<MT,Abs,SO> >
2692  : public BoolConstant< IsHermitian<MT>::value >
2693 {};
2694 
2695 template< typename MT, bool SO >
2696 struct IsHermitian< DMatMapExpr<MT,Floor,SO> >
2697  : public BoolConstant< IsHermitian<MT>::value >
2698 {};
2699 
2700 template< typename MT, bool SO >
2701 struct IsHermitian< DMatMapExpr<MT,Ceil,SO> >
2702  : public BoolConstant< IsHermitian<MT>::value >
2703 {};
2704 
2705 template< typename MT, bool SO >
2706 struct IsHermitian< DMatMapExpr<MT,Trunc,SO> >
2707  : public BoolConstant< IsHermitian<MT>::value >
2708 {};
2709 
2710 template< typename MT, bool SO >
2711 struct IsHermitian< DMatMapExpr<MT,Round,SO> >
2712  : public BoolConstant< IsHermitian<MT>::value >
2713 {};
2714 
2715 template< typename MT, bool SO >
2716 struct IsHermitian< DMatMapExpr<MT,Conj,SO> >
2717  : public BoolConstant< IsHermitian<MT>::value >
2718 {};
2719 
2720 template< typename MT, bool SO >
2721 struct IsHermitian< DMatMapExpr<MT,Real,SO> >
2722  : public BoolConstant< IsHermitian<MT>::value >
2723 {};
2724 
2725 template< typename MT, bool SO >
2726 struct IsHermitian< DMatMapExpr<MT,Imag,SO> >
2727  : public BoolConstant< IsBuiltin< ElementType_<MT> >::value >
2728 {};
2729 
2730 template< typename MT, bool SO >
2731 struct IsHermitian< DMatMapExpr<MT,Sqrt,SO> >
2732  : public BoolConstant< IsHermitian<MT>::value >
2733 {};
2734 
2735 template< typename MT, bool SO >
2736 struct IsHermitian< DMatMapExpr<MT,InvSqrt,SO> >
2737  : public BoolConstant< IsHermitian<MT>::value >
2738 {};
2739 
2740 template< typename MT, bool SO >
2741 struct IsHermitian< DMatMapExpr<MT,Cbrt,SO> >
2742  : public BoolConstant< IsHermitian<MT>::value >
2743 {};
2744 
2745 template< typename MT, bool SO >
2746 struct IsHermitian< DMatMapExpr<MT,InvCbrt,SO> >
2747  : public BoolConstant< IsHermitian<MT>::value >
2748 {};
2749 
2750 template< typename MT, typename ET, bool SO >
2751 struct IsHermitian< DMatMapExpr<MT,Pow<ET>,SO> >
2752  : public BoolConstant< IsHermitian<MT>::value >
2753 {};
2754 
2755 template< typename MT, bool SO >
2756 struct IsHermitian< DMatMapExpr<MT,Exp,SO> >
2757  : public BoolConstant< IsHermitian<MT>::value >
2758 {};
2759 
2760 template< typename MT, bool SO >
2761 struct IsHermitian< DMatMapExpr<MT,Exp2,SO> >
2762  : public BoolConstant< IsHermitian<MT>::value >
2763 {};
2764 
2765 template< typename MT, bool SO >
2766 struct IsHermitian< DMatMapExpr<MT,Exp10,SO> >
2767  : public BoolConstant< IsHermitian<MT>::value >
2768 {};
2769 
2770 template< typename MT, bool SO >
2771 struct IsHermitian< DMatMapExpr<MT,Log,SO> >
2772  : public BoolConstant< IsHermitian<MT>::value >
2773 {};
2774 
2775 template< typename MT, bool SO >
2776 struct IsHermitian< DMatMapExpr<MT,Log2,SO> >
2777  : public BoolConstant< IsHermitian<MT>::value >
2778 {};
2779 
2780 template< typename MT, bool SO >
2781 struct IsHermitian< DMatMapExpr<MT,Log10,SO> >
2782  : public BoolConstant< IsHermitian<MT>::value >
2783 {};
2784 
2785 template< typename MT, bool SO >
2786 struct IsHermitian< DMatMapExpr<MT,Sin,SO> >
2787  : public BoolConstant< IsHermitian<MT>::value >
2788 {};
2789 
2790 template< typename MT, bool SO >
2791 struct IsHermitian< DMatMapExpr<MT,Asin,SO> >
2792  : public BoolConstant< IsHermitian<MT>::value >
2793 {};
2794 
2795 template< typename MT, bool SO >
2796 struct IsHermitian< DMatMapExpr<MT,Sinh,SO> >
2797  : public BoolConstant< IsHermitian<MT>::value >
2798 {};
2799 
2800 template< typename MT, bool SO >
2801 struct IsHermitian< DMatMapExpr<MT,Asinh,SO> >
2802  : public BoolConstant< IsHermitian<MT>::value >
2803 {};
2804 
2805 template< typename MT, bool SO >
2806 struct IsHermitian< DMatMapExpr<MT,Cos,SO> >
2807  : public BoolConstant< IsHermitian<MT>::value >
2808 {};
2809 
2810 template< typename MT, bool SO >
2811 struct IsHermitian< DMatMapExpr<MT,Acos,SO> >
2812  : public BoolConstant< IsHermitian<MT>::value >
2813 {};
2814 
2815 template< typename MT, bool SO >
2816 struct IsHermitian< DMatMapExpr<MT,Cosh,SO> >
2817  : public BoolConstant< IsHermitian<MT>::value >
2818 {};
2819 
2820 template< typename MT, bool SO >
2821 struct IsHermitian< DMatMapExpr<MT,Acosh,SO> >
2822  : public BoolConstant< IsHermitian<MT>::value >
2823 {};
2824 
2825 template< typename MT, bool SO >
2826 struct IsHermitian< DMatMapExpr<MT,Tan,SO> >
2827  : public BoolConstant< IsHermitian<MT>::value >
2828 {};
2829 
2830 template< typename MT, bool SO >
2831 struct IsHermitian< DMatMapExpr<MT,Atan,SO> >
2832  : public BoolConstant< IsHermitian<MT>::value >
2833 {};
2834 
2835 template< typename MT, bool SO >
2836 struct IsHermitian< DMatMapExpr<MT,Tanh,SO> >
2837  : public BoolConstant< IsHermitian<MT>::value >
2838 {};
2839 
2840 template< typename MT, bool SO >
2841 struct IsHermitian< DMatMapExpr<MT,Atanh,SO> >
2842  : public BoolConstant< IsHermitian<MT>::value >
2843 {};
2844 
2845 template< typename MT, bool SO >
2846 struct IsHermitian< DMatMapExpr<MT,Erf,SO> >
2847  : public BoolConstant< IsHermitian<MT>::value >
2848 {};
2849 
2850 template< typename MT, bool SO >
2851 struct IsHermitian< DMatMapExpr<MT,Erfc,SO> >
2852  : public BoolConstant< IsHermitian<MT>::value >
2853 {};
2855 //*************************************************************************************************
2856 
2857 
2858 
2859 
2860 //=================================================================================================
2861 //
2862 // ISLOWER SPECIALIZATIONS
2863 //
2864 //=================================================================================================
2865 
2866 //*************************************************************************************************
2868 template< typename MT, bool SO >
2869 struct IsLower< DMatMapExpr<MT,Abs,SO> >
2870  : public BoolConstant< IsLower<MT>::value >
2871 {};
2872 
2873 template< typename MT, bool SO >
2874 struct IsLower< DMatMapExpr<MT,Floor,SO> >
2875  : public BoolConstant< IsLower<MT>::value >
2876 {};
2877 
2878 template< typename MT, bool SO >
2879 struct IsLower< DMatMapExpr<MT,Ceil,SO> >
2880  : public BoolConstant< IsLower<MT>::value >
2881 {};
2882 
2883 template< typename MT, bool SO >
2884 struct IsLower< DMatMapExpr<MT,Trunc,SO> >
2885  : public BoolConstant< IsLower<MT>::value >
2886 {};
2887 
2888 template< typename MT, bool SO >
2889 struct IsLower< DMatMapExpr<MT,Round,SO> >
2890  : public BoolConstant< IsLower<MT>::value >
2891 {};
2892 
2893 template< typename MT, bool SO >
2894 struct IsLower< DMatMapExpr<MT,Conj,SO> >
2895  : public BoolConstant< IsLower<MT>::value >
2896 {};
2897 
2898 template< typename MT, bool SO >
2899 struct IsLower< DMatMapExpr<MT,Real,SO> >
2900  : public BoolConstant< IsLower<MT>::value >
2901 {};
2902 
2903 template< typename MT, bool SO >
2904 struct IsLower< DMatMapExpr<MT,Imag,SO> >
2905  : public BoolConstant< IsLower<MT>::value >
2906 {};
2907 
2908 template< typename MT, bool SO >
2909 struct IsLower< DMatMapExpr<MT,Sqrt,SO> >
2910  : public BoolConstant< IsLower<MT>::value >
2911 {};
2912 
2913 template< typename MT, bool SO >
2914 struct IsLower< DMatMapExpr<MT,Cbrt,SO> >
2915  : public BoolConstant< IsLower<MT>::value >
2916 {};
2917 
2918 template< typename MT, bool SO >
2919 struct IsLower< DMatMapExpr<MT,Sin,SO> >
2920  : public BoolConstant< IsLower<MT>::value >
2921 {};
2922 
2923 template< typename MT, bool SO >
2924 struct IsLower< DMatMapExpr<MT,Asin,SO> >
2925  : public BoolConstant< IsLower<MT>::value >
2926 {};
2927 
2928 template< typename MT, bool SO >
2929 struct IsLower< DMatMapExpr<MT,Sinh,SO> >
2930  : public BoolConstant< IsLower<MT>::value >
2931 {};
2932 
2933 template< typename MT, bool SO >
2934 struct IsLower< DMatMapExpr<MT,Asinh,SO> >
2935  : public BoolConstant< IsLower<MT>::value >
2936 {};
2937 
2938 template< typename MT, bool SO >
2939 struct IsLower< DMatMapExpr<MT,Tan,SO> >
2940  : public BoolConstant< IsLower<MT>::value >
2941 {};
2942 
2943 template< typename MT, bool SO >
2944 struct IsLower< DMatMapExpr<MT,Atan,SO> >
2945  : public BoolConstant< IsLower<MT>::value >
2946 {};
2947 
2948 template< typename MT, bool SO >
2949 struct IsLower< DMatMapExpr<MT,Tanh,SO> >
2950  : public BoolConstant< IsLower<MT>::value >
2951 {};
2952 
2953 template< typename MT, bool SO >
2954 struct IsLower< DMatMapExpr<MT,Atanh,SO> >
2955  : public BoolConstant< IsLower<MT>::value >
2956 {};
2957 
2958 template< typename MT, bool SO >
2959 struct IsLower< DMatMapExpr<MT,Erf,SO> >
2960  : public BoolConstant< IsLower<MT>::value >
2961 {};
2963 //*************************************************************************************************
2964 
2965 
2966 
2967 
2968 //=================================================================================================
2969 //
2970 // ISUNILOWER SPECIALIZATIONS
2971 //
2972 //=================================================================================================
2973 
2974 //*************************************************************************************************
2976 template< typename MT, bool SO >
2977 struct IsUniLower< DMatMapExpr<MT,Abs,SO> >
2978  : public BoolConstant< IsUniLower<MT>::value >
2979 {};
2980 
2981 template< typename MT, bool SO >
2982 struct IsUniLower< DMatMapExpr<MT,Floor,SO> >
2983  : public BoolConstant< IsUniLower<MT>::value >
2984 {};
2985 
2986 template< typename MT, bool SO >
2987 struct IsUniLower< DMatMapExpr<MT,Ceil,SO> >
2988  : public BoolConstant< IsUniLower<MT>::value >
2989 {};
2990 
2991 template< typename MT, bool SO >
2992 struct IsUniLower< DMatMapExpr<MT,Trunc,SO> >
2993  : public BoolConstant< IsUniLower<MT>::value >
2994 {};
2995 
2996 template< typename MT, bool SO >
2997 struct IsUniLower< DMatMapExpr<MT,Round,SO> >
2998  : public BoolConstant< IsUniLower<MT>::value >
2999 {};
3000 
3001 template< typename MT, bool SO >
3002 struct IsUniLower< DMatMapExpr<MT,Conj,SO> >
3003  : public BoolConstant< IsUniLower<MT>::value >
3004 {};
3005 
3006 template< typename MT, bool SO >
3007 struct IsUniLower< DMatMapExpr<MT,Real,SO> >
3008  : public BoolConstant< IsUniLower<MT>::value >
3009 {};
3010 
3011 template< typename MT, bool SO >
3012 struct IsUniLower< DMatMapExpr<MT,Sqrt,SO> >
3013  : public BoolConstant< IsUniLower<MT>::value >
3014 {};
3015 
3016 template< typename MT, bool SO >
3017 struct IsUniLower< DMatMapExpr<MT,Cbrt,SO> >
3018  : public BoolConstant< IsUniLower<MT>::value >
3019 {};
3020 
3021 template< typename MT, typename ET, bool SO >
3022 struct IsUniLower< DMatMapExpr<MT,Pow<ET>,SO> >
3023  : public BoolConstant< IsUniLower<MT>::value >
3024 {};
3026 //*************************************************************************************************
3027 
3028 
3029 
3030 
3031 //=================================================================================================
3032 //
3033 // ISSTRICTLYLOWER SPECIALIZATIONS
3034 //
3035 //=================================================================================================
3036 
3037 //*************************************************************************************************
3039 template< typename MT, bool SO >
3040 struct IsStrictlyLower< DMatMapExpr<MT,Abs,SO> >
3041  : public BoolConstant< IsStrictlyLower<MT>::value >
3042 {};
3043 
3044 template< typename MT, bool SO >
3045 struct IsStrictlyLower< DMatMapExpr<MT,Floor,SO> >
3046  : public BoolConstant< IsStrictlyLower<MT>::value >
3047 {};
3048 
3049 template< typename MT, bool SO >
3050 struct IsStrictlyLower< DMatMapExpr<MT,Ceil,SO> >
3051  : public BoolConstant< IsStrictlyLower<MT>::value >
3052 {};
3053 
3054 template< typename MT, bool SO >
3055 struct IsStrictlyLower< DMatMapExpr<MT,Trunc,SO> >
3056  : public BoolConstant< IsStrictlyLower<MT>::value >
3057 {};
3058 
3059 template< typename MT, bool SO >
3060 struct IsStrictlyLower< DMatMapExpr<MT,Round,SO> >
3061  : public BoolConstant< IsStrictlyLower<MT>::value >
3062 {};
3063 
3064 template< typename MT, bool SO >
3065 struct IsStrictlyLower< DMatMapExpr<MT,Conj,SO> >
3066  : public BoolConstant< IsStrictlyLower<MT>::value >
3067 {};
3068 
3069 template< typename MT, bool SO >
3070 struct IsStrictlyLower< DMatMapExpr<MT,Real,SO> >
3071  : public BoolConstant< IsStrictlyLower<MT>::value >
3072 {};
3073 
3074 template< typename MT, bool SO >
3075 struct IsStrictlyLower< DMatMapExpr<MT,Imag,SO> >
3076  : public BoolConstant< IsStrictlyLower<MT>::value >
3077 {};
3078 
3079 template< typename MT, bool SO >
3080 struct IsStrictlyLower< DMatMapExpr<MT,Sin,SO> >
3081  : public BoolConstant< IsStrictlyLower<MT>::value >
3082 {};
3083 
3084 template< typename MT, bool SO >
3085 struct IsStrictlyLower< DMatMapExpr<MT,Asin,SO> >
3086  : public BoolConstant< IsStrictlyLower<MT>::value >
3087 {};
3088 
3089 template< typename MT, bool SO >
3090 struct IsStrictlyLower< DMatMapExpr<MT,Sinh,SO> >
3091  : public BoolConstant< IsStrictlyLower<MT>::value >
3092 {};
3093 
3094 template< typename MT, bool SO >
3095 struct IsStrictlyLower< DMatMapExpr<MT,Asinh,SO> >
3096  : public BoolConstant< IsStrictlyLower<MT>::value >
3097 {};
3098 
3099 template< typename MT, bool SO >
3100 struct IsStrictlyLower< DMatMapExpr<MT,Tan,SO> >
3101  : public BoolConstant< IsStrictlyLower<MT>::value >
3102 {};
3103 
3104 template< typename MT, bool SO >
3105 struct IsStrictlyLower< DMatMapExpr<MT,Atan,SO> >
3106  : public BoolConstant< IsStrictlyLower<MT>::value >
3107 {};
3108 
3109 template< typename MT, bool SO >
3110 struct IsStrictlyLower< DMatMapExpr<MT,Tanh,SO> >
3111  : public BoolConstant< IsStrictlyLower<MT>::value >
3112 {};
3113 
3114 template< typename MT, bool SO >
3115 struct IsStrictlyLower< DMatMapExpr<MT,Atanh,SO> >
3116  : public BoolConstant< IsStrictlyLower<MT>::value >
3117 {};
3118 
3119 template< typename MT, bool SO >
3120 struct IsStrictlyLower< DMatMapExpr<MT,Erf,SO> >
3121  : public BoolConstant< IsStrictlyLower<MT>::value >
3122 {};
3124 //*************************************************************************************************
3125 
3126 
3127 
3128 
3129 //=================================================================================================
3130 //
3131 // ISUPPER SPECIALIZATIONS
3132 //
3133 //=================================================================================================
3134 
3135 //*************************************************************************************************
3137 template< typename MT, bool SO >
3138 struct IsUpper< DMatMapExpr<MT,Abs,SO> >
3139  : public BoolConstant< IsUpper<MT>::value >
3140 {};
3141 
3142 template< typename MT, bool SO >
3143 struct IsUpper< DMatMapExpr<MT,Floor,SO> >
3144  : public BoolConstant< IsUpper<MT>::value >
3145 {};
3146 
3147 template< typename MT, bool SO >
3148 struct IsUpper< DMatMapExpr<MT,Ceil,SO> >
3149  : public BoolConstant< IsUpper<MT>::value >
3150 {};
3151 
3152 template< typename MT, bool SO >
3153 struct IsUpper< DMatMapExpr<MT,Trunc,SO> >
3154  : public BoolConstant< IsUpper<MT>::value >
3155 {};
3156 
3157 template< typename MT, bool SO >
3158 struct IsUpper< DMatMapExpr<MT,Round,SO> >
3159  : public BoolConstant< IsUpper<MT>::value >
3160 {};
3161 
3162 template< typename MT, bool SO >
3163 struct IsUpper< DMatMapExpr<MT,Conj,SO> >
3164  : public BoolConstant< IsUpper<MT>::value >
3165 {};
3166 
3167 template< typename MT, bool SO >
3168 struct IsUpper< DMatMapExpr<MT,Real,SO> >
3169  : public BoolConstant< IsUpper<MT>::value >
3170 {};
3171 
3172 template< typename MT, bool SO >
3173 struct IsUpper< DMatMapExpr<MT,Imag,SO> >
3174  : public BoolConstant< IsUpper<MT>::value >
3175 {};
3176 
3177 template< typename MT, bool SO >
3178 struct IsUpper< DMatMapExpr<MT,Sqrt,SO> >
3179  : public BoolConstant< IsUpper<MT>::value >
3180 {};
3181 
3182 template< typename MT, bool SO >
3183 struct IsUpper< DMatMapExpr<MT,Cbrt,SO> >
3184  : public BoolConstant< IsUpper<MT>::value >
3185 {};
3186 
3187 template< typename MT, bool SO >
3188 struct IsUpper< DMatMapExpr<MT,Sin,SO> >
3189  : public BoolConstant< IsUpper<MT>::value >
3190 {};
3191 
3192 template< typename MT, bool SO >
3193 struct IsUpper< DMatMapExpr<MT,Asin,SO> >
3194  : public BoolConstant< IsUpper<MT>::value >
3195 {};
3196 
3197 template< typename MT, bool SO >
3198 struct IsUpper< DMatMapExpr<MT,Sinh,SO> >
3199  : public BoolConstant< IsUpper<MT>::value >
3200 {};
3201 
3202 template< typename MT, bool SO >
3203 struct IsUpper< DMatMapExpr<MT,Asinh,SO> >
3204  : public BoolConstant< IsUpper<MT>::value >
3205 {};
3206 
3207 template< typename MT, bool SO >
3208 struct IsUpper< DMatMapExpr<MT,Tan,SO> >
3209  : public BoolConstant< IsUpper<MT>::value >
3210 {};
3211 
3212 template< typename MT, bool SO >
3213 struct IsUpper< DMatMapExpr<MT,Atan,SO> >
3214  : public BoolConstant< IsUpper<MT>::value >
3215 {};
3216 
3217 template< typename MT, bool SO >
3218 struct IsUpper< DMatMapExpr<MT,Tanh,SO> >
3219  : public BoolConstant< IsUpper<MT>::value >
3220 {};
3221 
3222 template< typename MT, bool SO >
3223 struct IsUpper< DMatMapExpr<MT,Atanh,SO> >
3224  : public BoolConstant< IsUpper<MT>::value >
3225 {};
3226 
3227 template< typename MT, bool SO >
3228 struct IsUpper< DMatMapExpr<MT,Erf,SO> >
3229  : public BoolConstant< IsUpper<MT>::value >
3230 {};
3232 //*************************************************************************************************
3233 
3234 
3235 
3236 
3237 //=================================================================================================
3238 //
3239 // ISUNIUPPER SPECIALIZATIONS
3240 //
3241 //=================================================================================================
3242 
3243 //*************************************************************************************************
3245 template< typename MT, bool SO >
3246 struct IsUniUpper< DMatMapExpr<MT,Abs,SO> >
3247  : public BoolConstant< IsUniUpper<MT>::value >
3248 {};
3249 
3250 template< typename MT, bool SO >
3251 struct IsUniUpper< DMatMapExpr<MT,Floor,SO> >
3252  : public BoolConstant< IsUniUpper<MT>::value >
3253 {};
3254 
3255 template< typename MT, bool SO >
3256 struct IsUniUpper< DMatMapExpr<MT,Ceil,SO> >
3257  : public BoolConstant< IsUniUpper<MT>::value >
3258 {};
3259 
3260 template< typename MT, bool SO >
3261 struct IsUniUpper< DMatMapExpr<MT,Trunc,SO> >
3262  : public BoolConstant< IsUniUpper<MT>::value >
3263 {};
3264 
3265 template< typename MT, bool SO >
3266 struct IsUniUpper< DMatMapExpr<MT,Round,SO> >
3267  : public BoolConstant< IsUniUpper<MT>::value >
3268 {};
3269 
3270 template< typename MT, bool SO >
3271 struct IsUniUpper< DMatMapExpr<MT,Conj,SO> >
3272  : public BoolConstant< IsUniUpper<MT>::value >
3273 {};
3274 
3275 template< typename MT, bool SO >
3276 struct IsUniUpper< DMatMapExpr<MT,Real,SO> >
3277  : public BoolConstant< IsUniUpper<MT>::value >
3278 {};
3279 
3280 template< typename MT, bool SO >
3281 struct IsUniUpper< DMatMapExpr<MT,Sqrt,SO> >
3282  : public BoolConstant< IsUniUpper<MT>::value >
3283 {};
3284 
3285 template< typename MT, bool SO >
3286 struct IsUniUpper< DMatMapExpr<MT,Cbrt,SO> >
3287  : public BoolConstant< IsUniUpper<MT>::value >
3288 {};
3289 
3290 template< typename MT, typename ET, bool SO >
3291 struct IsUniUpper< DMatMapExpr<MT,Pow<ET>,SO> >
3292  : public BoolConstant< IsUniUpper<MT>::value >
3293 {};
3295 //*************************************************************************************************
3296 
3297 
3298 
3299 
3300 //=================================================================================================
3301 //
3302 // ISSTRICTLYUPPER SPECIALIZATIONS
3303 //
3304 //=================================================================================================
3305 
3306 //*************************************************************************************************
3308 template< typename MT, bool SO >
3309 struct IsStrictlyUpper< DMatMapExpr<MT,Abs,SO> >
3310  : public BoolConstant< IsStrictlyUpper<MT>::value >
3311 {};
3312 
3313 template< typename MT, bool SO >
3314 struct IsStrictlyUpper< DMatMapExpr<MT,Floor,SO> >
3315  : public BoolConstant< IsStrictlyUpper<MT>::value >
3316 {};
3317 
3318 template< typename MT, bool SO >
3319 struct IsStrictlyUpper< DMatMapExpr<MT,Ceil,SO> >
3320  : public BoolConstant< IsStrictlyUpper<MT>::value >
3321 {};
3322 
3323 template< typename MT, bool SO >
3324 struct IsStrictlyUpper< DMatMapExpr<MT,Trunc,SO> >
3325  : public BoolConstant< IsStrictlyUpper<MT>::value >
3326 {};
3327 
3328 template< typename MT, bool SO >
3329 struct IsStrictlyUpper< DMatMapExpr<MT,Round,SO> >
3330  : public BoolConstant< IsStrictlyUpper<MT>::value >
3331 {};
3332 
3333 template< typename MT, bool SO >
3334 struct IsStrictlyUpper< DMatMapExpr<MT,Conj,SO> >
3335  : public BoolConstant< IsStrictlyUpper<MT>::value >
3336 {};
3337 
3338 template< typename MT, bool SO >
3339 struct IsStrictlyUpper< DMatMapExpr<MT,Real,SO> >
3340  : public BoolConstant< IsStrictlyUpper<MT>::value >
3341 {};
3342 
3343 template< typename MT, bool SO >
3344 struct IsStrictlyUpper< DMatMapExpr<MT,Imag,SO> >
3345  : public BoolConstant< IsStrictlyUpper<MT>::value >
3346 {};
3347 
3348 template< typename MT, bool SO >
3349 struct IsStrictlyUpper< DMatMapExpr<MT,Sqrt,SO> >
3350  : public BoolConstant< IsStrictlyUpper<MT>::value >
3351 {};
3352 
3353 template< typename MT, bool SO >
3354 struct IsStrictlyUpper< DMatMapExpr<MT,Cbrt,SO> >
3355  : public BoolConstant< IsStrictlyUpper<MT>::value >
3356 {};
3357 
3358 template< typename MT, bool SO >
3359 struct IsStrictlyUpper< DMatMapExpr<MT,Sin,SO> >
3360  : public BoolConstant< IsStrictlyUpper<MT>::value >
3361 {};
3362 
3363 template< typename MT, bool SO >
3364 struct IsStrictlyUpper< DMatMapExpr<MT,Asin,SO> >
3365  : public BoolConstant< IsStrictlyUpper<MT>::value >
3366 {};
3367 
3368 template< typename MT, bool SO >
3369 struct IsStrictlyUpper< DMatMapExpr<MT,Sinh,SO> >
3370  : public BoolConstant< IsStrictlyUpper<MT>::value >
3371 {};
3372 
3373 template< typename MT, bool SO >
3374 struct IsStrictlyUpper< DMatMapExpr<MT,Asinh,SO> >
3375  : public BoolConstant< IsStrictlyUpper<MT>::value >
3376 {};
3377 
3378 template< typename MT, bool SO >
3379 struct IsStrictlyUpper< DMatMapExpr<MT,Tan,SO> >
3380  : public BoolConstant< IsStrictlyUpper<MT>::value >
3381 {};
3382 
3383 template< typename MT, bool SO >
3384 struct IsStrictlyUpper< DMatMapExpr<MT,Atan,SO> >
3385  : public BoolConstant< IsStrictlyUpper<MT>::value >
3386 {};
3387 
3388 template< typename MT, bool SO >
3389 struct IsStrictlyUpper< DMatMapExpr<MT,Tanh,SO> >
3390  : public BoolConstant< IsStrictlyUpper<MT>::value >
3391 {};
3392 
3393 template< typename MT, bool SO >
3394 struct IsStrictlyUpper< DMatMapExpr<MT,Atanh,SO> >
3395  : public BoolConstant< IsStrictlyUpper<MT>::value >
3396 {};
3397 
3398 template< typename MT, bool SO >
3399 struct IsStrictlyUpper< DMatMapExpr<MT,Erf,SO> >
3400  : public BoolConstant< IsStrictlyUpper<MT>::value >
3401 {};
3403 //*************************************************************************************************
3404 
3405 } // namespace blaze
3406 
3407 #endif
bool canAlias(const T *alias) const noexcept
Returns whether the expression can alias with the given address alias.
Definition: DMatMapExpr.h:576
Header file for the UnderlyingNumeric type trait.
Generic wrapper for the trunc() function.
Definition: Trunc.h:62
bool operator<(const ConstIterator &rhs) const
Less-than comparison between two ConstIterator objects.
Definition: DMatMapExpr.h:339
Pointer difference type of the Blaze library.
decltype(auto) acosh(const DenseMatrix< MT, SO > &dm)
Computes the inverse hyperbolic cosine for each single element of the dense matrix dm...
Definition: DMatMapExpr.h:2033
Header file for auxiliary alias declarations.
bool operator==(const ConstIterator &rhs) const
Equality comparison between two ConstIterator objects.
Definition: DMatMapExpr.h:317
Constraint on the data type.
Generic wrapper for the ceil() function.
Definition: Ceil.h:62
decltype(auto) exp10(const DenseMatrix< MT, SO > &dm)
Computes for each single element of the dense matrix dm.
Definition: DMatMapExpr.h:1696
Generic wrapper for the cbrt() function.
Definition: Cbrt.h:62
Header file for the Rows type trait.
Header file for the IsUniUpper type trait.
EnableIf_< IsDenseMatrix< MT1 > > smpSchurAssign(Matrix< MT1, SO1 > &lhs, const Matrix< MT2, SO2 > &rhs)
Default implementation of the SMP Schur product assignment of a matrix to dense matrix.
Definition: DenseMatrix.h:196
ConstIterator & operator+=(size_t inc)
Addition assignment operator.
Definition: DMatMapExpr.h:231
Header file for basic type definitions.
bool canSMPAssign() const noexcept
Returns whether the expression can be used in SMP assignments.
Definition: DMatMapExpr.h:608
Operand dm_
Dense matrix of the map expression.
Definition: DMatMapExpr.h:615
Generic wrapper for the sin() function.
Definition: Sin.h:62
OP Operation
Data type of the custom unary operation.
Definition: DMatMapExpr.h:186
Generic wrapper for the conj() function.
Definition: Conj.h:62
Generic wrapper for the invsqrt() function.
Definition: InvSqrt.h:62
bool isAligned() const noexcept
Returns whether the operands of the expression are properly aligned in memory.
Definition: DMatMapExpr.h:598
EnableIf_< IsDenseMatrix< MT1 > > smpSubAssign(Matrix< MT1, SO1 > &lhs, const Matrix< MT2, SO2 > &rhs)
Default implementation of the SMP subtraction assignment of a matrix to dense matrix.
Definition: DenseMatrix.h:164
Header file for the serial shim.
Expression object for dense matrix transpositions.The DMatTransExpr class represents the compile time...
Definition: DMatTransExpr.h:100
decltype(auto) real(const DenseMatrix< MT, SO > &dm)
Returns a matrix containing the real part of each single element of dm.
Definition: DMatMapExpr.h:1387
#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
Generic wrapper for a compile time constant integral value.The IntegralConstant class template repres...
Definition: IntegralConstant.h:71
#define BLAZE_CONSTRAINT_MUST_BE_DENSE_MATRIX_TYPE(T)
Constraint on the data type.In case the given data type T is not a dense, N-dimensional matrix type...
Definition: DenseMatrix.h:61
bool operator<=(const ConstIterator &rhs) const
Less-than comparison between two ConstIterator objects.
Definition: DMatMapExpr.h:361
Header file for the IsSame and IsStrictlySame type traits.
decltype(auto) ceil(const DenseMatrix< MT, SO > &dm)
Applies the ceil() function to each single element of the dense matrix dm.
Definition: DMatMapExpr.h:1234
Generic wrapper for the clamp() function.
Definition: Clamp.h:60
Generic wrapper for the acosh() function.
Definition: Acosh.h:62
decltype(auto) clamp(const DenseMatrix< MT, SO > &dm, const DT &min, const DT &max)
Restricts each single element of the dense matrix dm to the range .
Definition: DMatMapExpr.h:1576
IfTrue_< useAssign, const ResultType, const DMatMapExpr &> CompositeType
Data type for composite expression templates.
Definition: DMatMapExpr.h:180
Header file for the And class template.
const ElementType_< MT > min(const DenseMatrix< MT, SO > &dm)
Returns the smallest element of the dense matrix.
Definition: DenseMatrix.h:1762
Compile time check for lower triangular matrices.This type trait tests whether or not the given templ...
Definition: IsLower.h:88
const ConstIterator operator--(int)
Post-decrement operator.
Definition: DMatMapExpr.h:286
bool operator>(const ConstIterator &rhs) const
Greater-than comparison between two ConstIterator objects.
Definition: DMatMapExpr.h:350
ConstIterator & operator--()
Pre-decrement operator.
Definition: DMatMapExpr.h:275
ValueType value_type
Type of the underlying elements.
Definition: DMatMapExpr.h:204
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 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: IsSame.h:140
ElementType & ReferenceType
Reference return type.
Definition: DMatMapExpr.h:199
Compile time check for upper triangular matrices.This type trait tests whether or not the given templ...
Definition: IsUpper.h:88
Header file for the RequiresEvaluation type trait.
ConstIterator_< MT > IteratorType
ConstIterator type of the dense matrix expression.
Definition: DMatMapExpr.h:210
ReferenceType reference
Reference return type.
Definition: DMatMapExpr.h:206
Header file for the IsUniLower type trait.
typename T::ResultType ResultType_
Alias declaration for nested ResultType type definitions.The ResultType_ alias declaration provides a...
Definition: Aliases.h:343
const ElementType_< MT > max(const DenseMatrix< MT, SO > &dm)
Returns the largest element of the dense matrix.
Definition: DenseMatrix.h:1809
decltype(auto) acos(const DenseMatrix< MT, SO > &dm)
Computes the inverse cosine for each single element of the dense matrix dm.
Definition: DMatMapExpr.h:1972
EnableIf_< IsDenseMatrix< MT1 > > smpAddAssign(Matrix< MT1, SO1 > &lhs, const Matrix< MT2, SO2 > &rhs)
Default implementation of the SMP addition assignment of a matrix to a dense matrix.
Definition: DenseMatrix.h:133
ReturnType_< MT > RN
Return type of the dense matrix expression.
Definition: DMatMapExpr.h:116
BLAZE_CREATE_HAS_DATA_OR_FUNCTION_MEMBER_TYPE_TRAIT(HasSIMDEnabled, simdEnabled)
Definition of the HasSIMDEnabled type trait.
ConstIterator & operator++()
Pre-increment operator.
Definition: DMatMapExpr.h:254
Base class for dense matrices.The DenseMatrix class is a base class for all dense matrix classes...
Definition: DenseMatrix.h:78
Base class for sparse matrices.The SparseMatrix class is a base class for all sparse matrix classes...
Definition: Forward.h:129
Iterator over the elements of the dense matrix map expression.
Definition: DMatMapExpr.h:192
auto load() const noexcept
Access to the SIMD elements of the matrix.
Definition: DMatMapExpr.h:306
decltype(auto) erf(const DenseMatrix< MT, SO > &dm)
Computes the error function for each single element of the dense matrix dm.
Definition: DMatMapExpr.h:2184
typename IfTrue< Condition, T1, T2 >::Type IfTrue_
Auxiliary alias declaration for the IfTrue class template.The IfTrue_ alias declaration provides a co...
Definition: If.h:109
typename T::ReturnType ReturnType_
Alias declaration for nested ReturnType type definitions.The ReturnType_ alias declaration provides a...
Definition: Aliases.h:363
friend const ConstIterator operator-(const ConstIterator &it, size_t dec)
Subtraction between a ConstIterator and an integral value.
Definition: DMatMapExpr.h:419
Compile time check for the alignment of data types.This type trait tests whether the given data type ...
Definition: IsAligned.h:87
Constraint on the data type.
Generic wrapper for the abs() function.
Definition: Abs.h:62
Compile time check to query the requirement to evaluate an expression.Via this type trait it is possi...
Definition: RequiresEvaluation.h:72
ReturnType at(size_t i, size_t j) const
Checked access to the matrix elements.
Definition: DMatMapExpr.h:480
Header file for the MatMapExpr base class.
Operation operation() const
Returns a copy of the custom operation.
Definition: DMatMapExpr.h:564
friend const ConstIterator operator+(size_t inc, const ConstIterator &it)
Addition between an integral value and a ConstIterator.
Definition: DMatMapExpr.h:407
Compile time check for upper unitriangular matrices.This type trait tests whether or not the given te...
Definition: IsUniUpper.h:86
Generic wrapper for the sqrt() function.
Definition: Sqrt.h:62
ElementType ValueType
Type of the underlying elements.
Definition: DMatMapExpr.h:197
Header file for the IsStrictlyUpper type trait.
Header file for the unary map trait.
Header file for the IsSymmetric type trait.
decltype(auto) cos(const DenseMatrix< MT, SO > &dm)
Computes the cosine for each single element of the dense matrix dm.
Definition: DMatMapExpr.h:1940
bool isAliased(const T *alias) const noexcept
Returns whether the expression is aliased with the given address alias.
Definition: DMatMapExpr.h:588
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
decltype(auto) ctrans(const DenseMatrix< MT, SO > &dm)
Returns the conjugate transpose matrix of dm.
Definition: DMatMapExpr.h:1359
Header file for nested template disabiguation.
UnaryMapTrait_< RT, OP > ResultType
Result type for expression template evaluations.
Definition: DMatMapExpr.h:171
Header file for the If class template.
Generic wrapper for the imag() function.
Definition: Imag.h:59
Generic wrapper for the exp10() function.
Definition: Exp10.h:62
decltype(auto) exp2(const DenseMatrix< MT, SO > &dm)
Computes for each single element of the dense matrix dm.
Definition: DMatMapExpr.h:1667
decltype(auto) sinh(const DenseMatrix< MT, SO > &dm)
Computes the hyperbolic sine for each single element of the dense matrix dm.
Definition: DMatMapExpr.h:1882
If_< IsExpression< MT >, const MT, const MT &> Operand
Composite data type of the dense matrix expression.
Definition: DMatMapExpr.h:183
decltype(auto) asin(const DenseMatrix< MT, SO > &dm)
Computes the inverse sine for each single element of the dense matrix dm.
Definition: DMatMapExpr.h:1853
decltype(auto) cosh(const DenseMatrix< MT, SO > &dm)
Computes the hyperbolic cosine for each single element of the dense matrix dm.
Definition: DMatMapExpr.h:2001
Compile time check for data types with padding.This type trait tests whether the given data type empl...
Definition: IsPadded.h:76
EnableIf_< IsDenseMatrix< MT1 > > smpAssign(Matrix< MT1, SO1 > &lhs, const Matrix< MT2, SO2 > &rhs)
Default implementation of the SMP assignment of a matrix to a dense matrix.
Definition: DenseMatrix.h:102
ElementType_< ResultType > ElementType
Resulting element type.
Definition: DMatMapExpr.h:174
decltype(auto) cbrt(const DenseMatrix< MT, SO > &dm)
Computes the cubic root of each single element of the dense matrix dm.
Definition: DMatMapExpr.h:1512
#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.
Generic wrapper for the log10() function.
Definition: Log10.h:62
decltype(auto) trunc(const DenseMatrix< MT, SO > &dm)
Applies the trunc() function to each single element of the dense matrix dm.
Definition: DMatMapExpr.h:1263
Header file for the Not class template.
const Element * ConstIterator
Iterator over constant elements.
Definition: CompressedMatrix.h:3087
Header file for all functors.
typename T::ElementType ElementType_
Alias declaration for nested ElementType type definitions.The ElementType_ alias declaration provides...
Definition: Aliases.h:163
Header file for all SIMD functionality.
Operand operand() const noexcept
Returns the dense matrix operand.
Definition: DMatMapExpr.h:554
BLAZE_ALWAYS_INLINE auto load(size_t i, size_t j) const noexcept
Access to the SIMD elements of the matrix.
Definition: DMatMapExpr.h:498
Header file for the IsLower type trait.
Header file for the IsAligned type trait.
Generic wrapper for the exp2() function.
Definition: Exp2.h:62
Base class for all unary matrix map expression templates.The MatMapExpr class serves as a tag for all...
Definition: MatMapExpr.h:66
Generic wrapper for the asin() function.
Definition: Asin.h:62
Operation op_
The custom unary operation.
Definition: DMatMapExpr.h:616
decltype(auto) atan(const DenseMatrix< MT, SO > &dm)
Computes the inverse tangent for each single element of the dense matrix dm.
Definition: DMatMapExpr.h:2091
decltype(auto) asinh(const DenseMatrix< MT, SO > &dm)
Computes the inverse hyperbolic sine for each single element of the dense matrix dm.
Definition: DMatMapExpr.h:1911
Generic wrapper for the erf() function.
Definition: Erf.h:62
DifferenceType operator-(const ConstIterator &rhs) const
Calculating the number of elements between two iterators.
Definition: DMatMapExpr.h:383
std::random_access_iterator_tag IteratorCategory
The iterator category.
Definition: DMatMapExpr.h:196
Constraints on the storage order of matrix types.
Compile time check for symmetric matrices.This type trait tests whether or not the given template par...
Definition: IsSymmetric.h:85
Header file for the exception macros of the math module.
Compile time check for strictly upper triangular matrices.This type trait tests whether or not the gi...
Definition: IsStrictlyUpper.h:86
ReturnType operator()(size_t i, size_t j) const noexcept
2D-access to the matrix elements.
Definition: DMatMapExpr.h:465
ResultType_< MT > RT
Result type of the dense matrix expression.
Definition: DMatMapExpr.h:113
Constraint on the data type.
bool operator!=(const ConstIterator &rhs) const
Inequality comparison between two ConstIterator objects.
Definition: DMatMapExpr.h:328
Evaluation of the underlying numeric element type of a given data type.Via this type trait it is poss...
Definition: UnderlyingNumeric.h:81
Header file for all forward declarations for expression class templates.
Generic wrapper for the floor() function.
Definition: Floor.h:62
decltype(auto) exp(const DenseMatrix< MT, SO > &dm)
Computes for each single element of the dense matrix dm.
Definition: DMatMapExpr.h:1638
Header file for the EnableIf class template.
Header file for the IsStrictlyLower type trait.
Header file for the IsPadded type trait.
decltype(auto) abs(const DenseMatrix< MT, SO > &dm)
Applies the abs() function to each single element of the dense matrix dm.
Definition: DMatMapExpr.h:1176
decltype(auto) log(const DenseMatrix< MT, SO > &dm)
Computes the natural logarithm for each single element of the dense matrix dm.
Definition: DMatMapExpr.h:1728
Compile time check for lower unitriangular matrices.This type trait tests whether or not the given te...
Definition: IsUniLower.h:86
IteratorCategory iterator_category
The iterator category.
Definition: DMatMapExpr.h:203
ConstIterator(IteratorType it, OP op)
Constructor for the ConstIterator class.
Definition: DMatMapExpr.h:219
bool operator>=(const ConstIterator &rhs) const
Greater-than comparison between two ConstIterator objects.
Definition: DMatMapExpr.h:372
size_t columns() const noexcept
Returns the current number of columns of the matrix.
Definition: DMatMapExpr.h:544
decltype(auto) floor(const DenseMatrix< MT, SO > &dm)
Applies the floor() function to each single element of the dense matrix dm.
Definition: DMatMapExpr.h:1205
decltype(auto) pow(const DenseMatrix< MT, SO > &dm, ET exp)
Computes the exponential value for each single element of the dense matrix dm.
Definition: DMatMapExpr.h:1607
ElementType * PointerType
Pointer return type.
Definition: DMatMapExpr.h:198
decltype(auto) round(const DenseMatrix< MT, SO > &dm)
Applies the round() function to each single element of the dense matrix dm.
Definition: DMatMapExpr.h:1292
decltype(auto) tanh(const DenseMatrix< MT, SO > &dm)
Computes the hyperbolic tangent for each single element of the dense matrix dm.
Definition: DMatMapExpr.h:2123
decltype(auto) forEach(const DenseMatrix< MT, SO > &dm, OP op)
Evaluates the given custom operation on each single element of the dense matrix dm.
Definition: DMatMapExpr.h:1147
Header file for run time assertion macros.
Generic wrapper for the pow() function.
Definition: Forward.h:84
Generic wrapper for the atanh() function.
Definition: Atanh.h:62
Generic wrapper for the invcbrt() function.
Definition: InvCbrt.h:62
Generic wrapper for the real() function.
Definition: Real.h:59
ConstIterator & operator-=(size_t dec)
Subtraction assignment operator.
Definition: DMatMapExpr.h:243
Generic wrapper for the asinh() function.
Definition: Asinh.h:62
decltype(auto) invcbrt(const DenseMatrix< MT, SO > &dm)
Computes the inverse cubic root of each single element of the dense matrix dm.
Definition: DMatMapExpr.h:1544
typename If< T1, T2, T3 >::Type If_
Auxiliary alias declaration for the If class template.The If_ alias declaration provides a convenient...
Definition: If.h:154
ConstIterator begin(size_t i) const
Returns an iterator to the first non-zero element of row i.
Definition: DMatMapExpr.h:513
#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
Generic wrapper for the tan() function.
Definition: Tan.h:62
Generic wrapper for the log() function.
Definition: Log.h:62
decltype(auto) atanh(const DenseMatrix< MT, SO > &dm)
Computes the inverse hyperbolic tangent for each single element of the dense matrix dm...
Definition: DMatMapExpr.h:2155
SIMD characteristics of data types.The SIMDTrait class template provides the SIMD characteristics of ...
Definition: SIMDTrait.h:296
#define BLAZE_FUNCTION_TRACE
Function trace macro.This macro can be used to reliably trace function calls. In case function tracin...
Definition: FunctionTrace.h:94
Compile time type negation.The Not alias declaration negates the given compile time condition...
Definition: Not.h:70
Compile time check for Hermitian matrices.This type trait tests whether or not the given template par...
Definition: IsHermitian.h:85
IteratorType it_
Iterator to the current matrix element.
Definition: DMatMapExpr.h:426
OP op_
The custom unary operation.
Definition: DMatMapExpr.h:427
Generic wrapper for the erfc() function.
Definition: Erfc.h:62
decltype(auto) serial(const DenseMatrix< MT, SO > &dm)
Forces the serial evaluation of the given dense matrix expression dm.
Definition: DMatSerialExpr.h:819
Header file for the HasMember type traits.
Generic wrapper for the cos() function.
Definition: Cos.h:62
#define BLAZE_CONSTRAINT_MUST_NOT_REQUIRE_EVALUATION(T)
Constraint on the data type.In case the given data type T requires an intermediate evaluation within ...
Definition: RequiresEvaluation.h:81
typename EnableIf< Condition, T >::Type EnableIf_
Auxiliary alias declaration for the EnableIf class template.The EnableIf_ alias declaration provides ...
Definition: EnableIf.h:224
typename T::OppositeType OppositeType_
Alias declaration for nested OppositeType type definitions.The OppositeType_ alias declaration provid...
Definition: Aliases.h:263
#define BLAZE_CONSTRAINT_MATRICES_MUST_HAVE_SAME_STORAGE_ORDER(T1, T2)
Constraint on the data type.In case either of the two given data types T1 or T2 is not a matrix type ...
Definition: StorageOrder.h:84
OppositeType_< ResultType > OppositeType
Result type with opposite storage order for expression template evaluations.
Definition: DMatMapExpr.h:172
Compile time check for strictly lower triangular matrices.This type trait tests whether or not the gi...
Definition: IsStrictlyLower.h:86
ElementType_< MT > ET
Element type of the dense matrix expression.
Definition: DMatMapExpr.h:115
const Type & ReturnType
Return type for expression template evaluations.
Definition: CompressedMatrix.h:3082
typename T::ConstIterator ConstIterator_
Alias declaration for nested ConstIterator type definitions.The ConstIterator_ alias declaration prov...
Definition: Aliases.h:103
decltype(auto) trans(const DenseMatrix< MT, SO > &dm)
Calculation of the transpose of the given dense matrix.
Definition: DMatTransExpr.h:790
decltype(auto) sin(const DenseMatrix< MT, SO > &dm)
Computes the sine for each single element of the dense matrix dm.
Definition: DMatMapExpr.h:1821
decltype(auto) erfc(const DenseMatrix< MT, SO > &dm)
Computes the complementary error function for each single element of the dense matrix dm...
Definition: DMatMapExpr.h:2213
size_t rows() const noexcept
Returns the current number of rows of the matrix.
Definition: DMatMapExpr.h:534
OppositeType_< MT > OT
Opposite type of the dense matrix expression.
Definition: DMatMapExpr.h:114
typename UnaryMapTrait< T, OP >::Type UnaryMapTrait_
Auxiliary alias declaration for the UnaryMapTrait class template.The UnaryMapTrait_ alias declaration...
Definition: UnaryMapTrait.h:156
decltype(auto) sqrt(const DenseMatrix< MT, SO > &dm)
Computes the square root of each single element of the dense matrix dm.
Definition: DMatMapExpr.h:1448
PointerType pointer
Pointer return type.
Definition: DMatMapExpr.h:205
Header file for the IsBuiltin type trait.
Expression object for the dense matrix map() function.The DMatMapExpr class represents the compile ti...
Definition: DMatMapExpr.h:107
friend const ConstIterator operator+(const ConstIterator &it, size_t inc)
Addition between a ConstIterator and an integral value.
Definition: DMatMapExpr.h:395
Generic wrapper for the acos() function.
Definition: Acos.h:62
Base class for all compute expression templates.The Computation class serves as a tag for all computa...
Definition: Computation.h:66
decltype(auto) tan(const DenseMatrix< MT, SO > &dm)
Computes the tangent for each single element of the dense matrix dm.
Definition: DMatMapExpr.h:2062
Generic wrapper for the atan() function.
Definition: Atan.h:62
Generic wrapper for the round() function.
Definition: Round.h:62
TransposeType_< ResultType > TransposeType
Transpose type for expression template evaluations.
Definition: DMatMapExpr.h:173
Generic wrapper for the sinh() function.
Definition: Sinh.h:62
Header file for the IntegralConstant class template.
Compile time evaluation of the number of columns of a matrix.The Columns type trait evaluates the num...
Definition: Columns.h:75
Compile time evaluation of the number of rows of a matrix.The Rows type trait evaluates the number of...
Definition: Rows.h:75
decltype(auto) log10(const DenseMatrix< MT, SO > &dm)
Computes the common logarithm for each single element of the dense matrix dm.
Definition: DMatMapExpr.h:1792
Generic wrapper for the log2() function.
Definition: Log2.h:62
const ConstIterator operator++(int)
Post-increment operator.
Definition: DMatMapExpr.h:265
typename T::TransposeType TransposeType_
Alias declaration for nested TransposeType type definitions.The TransposeType_ alias declaration prov...
Definition: Aliases.h:423
decltype(auto) imag(const DenseMatrix< MT, SO > &dm)
Returns a matrix containing the imaginary part of each single element of dm.
Definition: DMatMapExpr.h:1416
Header file for the IsUpper type trait.
decltype(std::declval< OP >()(std::declval< RN >())) ReturnType
Return type for expression template evaluations.
Definition: DMatMapExpr.h:177
Generic wrapper for the cosh() function.
Definition: Cosh.h:62
decltype(auto) conj(const DenseMatrix< MT, SO > &dm)
Returns a matrix containing the complex conjugate of each single element of dm.
Definition: DMatMapExpr.h:1321
decltype(auto) log2(const DenseMatrix< MT, SO > &dm)
Computes the binary logarithm for each single element of the dense matrix dm.
Definition: DMatMapExpr.h:1760
decltype(auto) invsqrt(const DenseMatrix< MT, SO > &dm)
Computes the inverse square root of each single element of the dense matrix dm.
Definition: DMatMapExpr.h:1480
ReturnType operator*() const
Direct access to the element at the current iterator position.
Definition: DMatMapExpr.h:296
Generic wrapper for the tanh() function.
Definition: Tanh.h:62
Header file for the IsHermitian type trait.
ConstIterator end(size_t i) const
Returns an iterator just past the last non-zero element of row i.
Definition: DMatMapExpr.h:524
Generic wrapper for the exp() function.
Definition: Exp.h:62
System settings for the inline keywords.
#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
Compile time check whether the given type is an expression template.This type trait class tests wheth...
Definition: IsExpression.h:95
Header file for the IsExpression type trait class.
Header file for the function trace functionality.
DMatMapExpr(const MT &dm, OP op) noexcept
Constructor for the DMatMapExpr class.
Definition: DMatMapExpr.h:452
decltype(auto) map(const DenseMatrix< MT1, SO > &lhs, const DenseMatrix< MT2, SO > &rhs, OP op)
Evaluates the given binary operation on each single element of the dense matrices lhs and rhs...
Definition: DMatDMatMapExpr.h:1133