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>
74 #include <blaze/system/Inline.h>
75 #include <blaze/util/Assert.h>
76 #include <blaze/util/EnableIf.h>
78 #include <blaze/util/mpl/And.h>
79 #include <blaze/util/mpl/If.h>
80 #include <blaze/util/mpl/Not.h>
81 #include <blaze/util/Template.h>
82 #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 ST // Type of the scalar exponent
1607  , typename = EnableIf_< IsNumeric<ST> > >
1608 inline decltype(auto) pow( const DenseMatrix<MT,SO>& dm, ST exp )
1609 {
1611 
1612  using ScalarType = MultTrait_< UnderlyingBuiltin_<MT>, ST >;
1614  return ReturnType( ~dm, UnaryPow<ScalarType>( 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 // SIZE SPECIALIZATIONS
2435 //
2436 //=================================================================================================
2437 
2438 //*************************************************************************************************
2440 template< typename MT, typename OP, bool SO >
2441 struct Size< DMatMapExpr<MT,OP,SO>, 0UL >
2442  : public Size<MT,0UL>
2443 {};
2444 
2445 template< typename MT, typename OP, bool SO >
2446 struct Size< DMatMapExpr<MT,OP,SO>, 1UL >
2447  : public Size<MT,1UL>
2448 {};
2450 //*************************************************************************************************
2451 
2452 
2453 
2454 
2455 //=================================================================================================
2456 //
2457 // ISALIGNED SPECIALIZATIONS
2458 //
2459 //=================================================================================================
2460 
2461 //*************************************************************************************************
2463 template< typename MT, typename OP, bool SO >
2464 struct IsAligned< DMatMapExpr<MT,OP,SO> >
2465  : public IsAligned<MT>
2466 {};
2468 //*************************************************************************************************
2469 
2470 
2471 
2472 
2473 //=================================================================================================
2474 //
2475 // ISPADDED SPECIALIZATIONS
2476 //
2477 //=================================================================================================
2478 
2479 //*************************************************************************************************
2481 template< typename MT, typename OP, bool SO >
2482 struct IsPadded< DMatMapExpr<MT,OP,SO> >
2483  : public IsPadded<MT>
2484 {};
2486 //*************************************************************************************************
2487 
2488 
2489 
2490 
2491 //=================================================================================================
2492 //
2493 // ISSYMMETRIC SPECIALIZATIONS
2494 //
2495 //=================================================================================================
2496 
2497 //*************************************************************************************************
2499 template< typename MT, bool SO >
2500 struct IsSymmetric< DMatMapExpr<MT,Abs,SO> >
2501  : public IsSymmetric<MT>
2502 {};
2503 
2504 template< typename MT, bool SO >
2505 struct IsSymmetric< DMatMapExpr<MT,Floor,SO> >
2506  : public IsSymmetric<MT>
2507 {};
2508 
2509 template< typename MT, bool SO >
2510 struct IsSymmetric< DMatMapExpr<MT,Ceil,SO> >
2511  : public IsSymmetric<MT>
2512 {};
2513 
2514 template< typename MT, bool SO >
2515 struct IsSymmetric< DMatMapExpr<MT,Trunc,SO> >
2516  : public IsSymmetric<MT>
2517 {};
2518 
2519 template< typename MT, bool SO >
2520 struct IsSymmetric< DMatMapExpr<MT,Round,SO> >
2521  : public IsSymmetric<MT>
2522 {};
2523 
2524 template< typename MT, bool SO >
2525 struct IsSymmetric< DMatMapExpr<MT,Conj,SO> >
2526  : public IsSymmetric<MT>
2527 {};
2528 
2529 template< typename MT, bool SO >
2530 struct IsSymmetric< DMatMapExpr<MT,Real,SO> >
2531  : public IsSymmetric<MT>
2532 {};
2533 
2534 template< typename MT, bool SO >
2535 struct IsSymmetric< DMatMapExpr<MT,Imag,SO> >
2536  : public IsSymmetric<MT>
2537 {};
2538 
2539 template< typename MT, bool SO >
2540 struct IsSymmetric< DMatMapExpr<MT,Sqrt,SO> >
2541  : public IsSymmetric<MT>
2542 {};
2543 
2544 template< typename MT, bool SO >
2545 struct IsSymmetric< DMatMapExpr<MT,InvSqrt,SO> >
2546  : public IsSymmetric<MT>
2547 {};
2548 
2549 template< typename MT, bool SO >
2550 struct IsSymmetric< DMatMapExpr<MT,Cbrt,SO> >
2551  : public IsSymmetric<MT>
2552 {};
2553 
2554 template< typename MT, bool SO >
2555 struct IsSymmetric< DMatMapExpr<MT,InvCbrt,SO> >
2556  : public IsSymmetric<MT>
2557 {};
2558 
2559 template< typename MT, typename ET, bool SO >
2560 struct IsSymmetric< DMatMapExpr<MT,UnaryPow<ET>,SO> >
2561  : public IsSymmetric<MT>
2562 {};
2563 
2564 template< typename MT, bool SO >
2565 struct IsSymmetric< DMatMapExpr<MT,Exp,SO> >
2566  : public IsSymmetric<MT>
2567 {};
2568 
2569 template< typename MT, bool SO >
2570 struct IsSymmetric< DMatMapExpr<MT,Exp2,SO> >
2571  : public IsSymmetric<MT>
2572 {};
2573 
2574 template< typename MT, bool SO >
2575 struct IsSymmetric< DMatMapExpr<MT,Exp10,SO> >
2576  : public IsSymmetric<MT>
2577 {};
2578 
2579 template< typename MT, bool SO >
2580 struct IsSymmetric< DMatMapExpr<MT,Log,SO> >
2581  : public IsSymmetric<MT>
2582 {};
2583 
2584 template< typename MT, bool SO >
2585 struct IsSymmetric< DMatMapExpr<MT,Log2,SO> >
2586  : public IsSymmetric<MT>
2587 {};
2588 
2589 template< typename MT, bool SO >
2590 struct IsSymmetric< DMatMapExpr<MT,Log10,SO> >
2591  : public IsSymmetric<MT>
2592 {};
2593 
2594 template< typename MT, bool SO >
2595 struct IsSymmetric< DMatMapExpr<MT,Sin,SO> >
2596  : public IsSymmetric<MT>
2597 {};
2598 
2599 template< typename MT, bool SO >
2600 struct IsSymmetric< DMatMapExpr<MT,Asin,SO> >
2601  : public IsSymmetric<MT>
2602 {};
2603 
2604 template< typename MT, bool SO >
2605 struct IsSymmetric< DMatMapExpr<MT,Sinh,SO> >
2606  : public IsSymmetric<MT>
2607 {};
2608 
2609 template< typename MT, bool SO >
2610 struct IsSymmetric< DMatMapExpr<MT,Asinh,SO> >
2611  : public IsSymmetric<MT>
2612 {};
2613 
2614 template< typename MT, bool SO >
2615 struct IsSymmetric< DMatMapExpr<MT,Cos,SO> >
2616  : public IsSymmetric<MT>
2617 {};
2618 
2619 template< typename MT, bool SO >
2620 struct IsSymmetric< DMatMapExpr<MT,Acos,SO> >
2621  : public IsSymmetric<MT>
2622 {};
2623 
2624 template< typename MT, bool SO >
2625 struct IsSymmetric< DMatMapExpr<MT,Cosh,SO> >
2626  : public IsSymmetric<MT>
2627 {};
2628 
2629 template< typename MT, bool SO >
2630 struct IsSymmetric< DMatMapExpr<MT,Acosh,SO> >
2631  : public IsSymmetric<MT>
2632 {};
2633 
2634 template< typename MT, bool SO >
2635 struct IsSymmetric< DMatMapExpr<MT,Tan,SO> >
2636  : public IsSymmetric<MT>
2637 {};
2638 
2639 template< typename MT, bool SO >
2640 struct IsSymmetric< DMatMapExpr<MT,Atan,SO> >
2641  : public IsSymmetric<MT>
2642 {};
2643 
2644 template< typename MT, bool SO >
2645 struct IsSymmetric< DMatMapExpr<MT,Tanh,SO> >
2646  : public IsSymmetric<MT>
2647 {};
2648 
2649 template< typename MT, bool SO >
2650 struct IsSymmetric< DMatMapExpr<MT,Atanh,SO> >
2651  : public IsSymmetric<MT>
2652 {};
2653 
2654 template< typename MT, bool SO >
2655 struct IsSymmetric< DMatMapExpr<MT,Erf,SO> >
2656  : public IsSymmetric<MT>
2657 {};
2658 
2659 template< typename MT, bool SO >
2660 struct IsSymmetric< DMatMapExpr<MT,Erfc,SO> >
2661  : public IsSymmetric<MT>
2662 {};
2664 //*************************************************************************************************
2665 
2666 
2667 
2668 
2669 //=================================================================================================
2670 //
2671 // ISHERMITIAN SPECIALIZATIONS
2672 //
2673 //=================================================================================================
2674 
2675 //*************************************************************************************************
2677 template< typename MT, bool SO >
2678 struct IsHermitian< DMatMapExpr<MT,Abs,SO> >
2679  : public IsHermitian<MT>
2680 {};
2681 
2682 template< typename MT, bool SO >
2683 struct IsHermitian< DMatMapExpr<MT,Floor,SO> >
2684  : public IsHermitian<MT>
2685 {};
2686 
2687 template< typename MT, bool SO >
2688 struct IsHermitian< DMatMapExpr<MT,Ceil,SO> >
2689  : public IsHermitian<MT>
2690 {};
2691 
2692 template< typename MT, bool SO >
2693 struct IsHermitian< DMatMapExpr<MT,Trunc,SO> >
2694  : public IsHermitian<MT>
2695 {};
2696 
2697 template< typename MT, bool SO >
2698 struct IsHermitian< DMatMapExpr<MT,Round,SO> >
2699  : public IsHermitian<MT>
2700 {};
2701 
2702 template< typename MT, bool SO >
2703 struct IsHermitian< DMatMapExpr<MT,Conj,SO> >
2704  : public IsHermitian<MT>
2705 {};
2706 
2707 template< typename MT, bool SO >
2708 struct IsHermitian< DMatMapExpr<MT,Real,SO> >
2709  : public IsHermitian<MT>
2710 {};
2711 
2712 template< typename MT, bool SO >
2713 struct IsHermitian< DMatMapExpr<MT,Imag,SO> >
2714  : public IsBuiltin< ElementType_<MT> >
2715 {};
2716 
2717 template< typename MT, bool SO >
2718 struct IsHermitian< DMatMapExpr<MT,Sqrt,SO> >
2719  : public IsHermitian<MT>
2720 {};
2721 
2722 template< typename MT, bool SO >
2723 struct IsHermitian< DMatMapExpr<MT,InvSqrt,SO> >
2724  : public IsHermitian<MT>
2725 {};
2726 
2727 template< typename MT, bool SO >
2728 struct IsHermitian< DMatMapExpr<MT,Cbrt,SO> >
2729  : public IsHermitian<MT>
2730 {};
2731 
2732 template< typename MT, bool SO >
2733 struct IsHermitian< DMatMapExpr<MT,InvCbrt,SO> >
2734  : public IsHermitian<MT>
2735 {};
2736 
2737 template< typename MT, typename ET, bool SO >
2738 struct IsHermitian< DMatMapExpr<MT,UnaryPow<ET>,SO> >
2739  : public IsHermitian<MT>
2740 {};
2741 
2742 template< typename MT, bool SO >
2743 struct IsHermitian< DMatMapExpr<MT,Exp,SO> >
2744  : public IsHermitian<MT>
2745 {};
2746 
2747 template< typename MT, bool SO >
2748 struct IsHermitian< DMatMapExpr<MT,Exp2,SO> >
2749  : public IsHermitian<MT>
2750 {};
2751 
2752 template< typename MT, bool SO >
2753 struct IsHermitian< DMatMapExpr<MT,Exp10,SO> >
2754  : public IsHermitian<MT>
2755 {};
2756 
2757 template< typename MT, bool SO >
2758 struct IsHermitian< DMatMapExpr<MT,Log,SO> >
2759  : public IsHermitian<MT>
2760 {};
2761 
2762 template< typename MT, bool SO >
2763 struct IsHermitian< DMatMapExpr<MT,Log2,SO> >
2764  : public IsHermitian<MT>
2765 {};
2766 
2767 template< typename MT, bool SO >
2768 struct IsHermitian< DMatMapExpr<MT,Log10,SO> >
2769  : public IsHermitian<MT>
2770 {};
2771 
2772 template< typename MT, bool SO >
2773 struct IsHermitian< DMatMapExpr<MT,Sin,SO> >
2774  : public IsHermitian<MT>
2775 {};
2776 
2777 template< typename MT, bool SO >
2778 struct IsHermitian< DMatMapExpr<MT,Asin,SO> >
2779  : public IsHermitian<MT>
2780 {};
2781 
2782 template< typename MT, bool SO >
2783 struct IsHermitian< DMatMapExpr<MT,Sinh,SO> >
2784  : public IsHermitian<MT>
2785 {};
2786 
2787 template< typename MT, bool SO >
2788 struct IsHermitian< DMatMapExpr<MT,Asinh,SO> >
2789  : public IsHermitian<MT>
2790 {};
2791 
2792 template< typename MT, bool SO >
2793 struct IsHermitian< DMatMapExpr<MT,Cos,SO> >
2794  : public IsHermitian<MT>
2795 {};
2796 
2797 template< typename MT, bool SO >
2798 struct IsHermitian< DMatMapExpr<MT,Acos,SO> >
2799  : public IsHermitian<MT>
2800 {};
2801 
2802 template< typename MT, bool SO >
2803 struct IsHermitian< DMatMapExpr<MT,Cosh,SO> >
2804  : public IsHermitian<MT>
2805 {};
2806 
2807 template< typename MT, bool SO >
2808 struct IsHermitian< DMatMapExpr<MT,Acosh,SO> >
2809  : public IsHermitian<MT>
2810 {};
2811 
2812 template< typename MT, bool SO >
2813 struct IsHermitian< DMatMapExpr<MT,Tan,SO> >
2814  : public IsHermitian<MT>
2815 {};
2816 
2817 template< typename MT, bool SO >
2818 struct IsHermitian< DMatMapExpr<MT,Atan,SO> >
2819  : public IsHermitian<MT>
2820 {};
2821 
2822 template< typename MT, bool SO >
2823 struct IsHermitian< DMatMapExpr<MT,Tanh,SO> >
2824  : public IsHermitian<MT>
2825 {};
2826 
2827 template< typename MT, bool SO >
2828 struct IsHermitian< DMatMapExpr<MT,Atanh,SO> >
2829  : public IsHermitian<MT>
2830 {};
2831 
2832 template< typename MT, bool SO >
2833 struct IsHermitian< DMatMapExpr<MT,Erf,SO> >
2834  : public IsHermitian<MT>
2835 {};
2836 
2837 template< typename MT, bool SO >
2838 struct IsHermitian< DMatMapExpr<MT,Erfc,SO> >
2839  : public IsHermitian<MT>
2840 {};
2842 //*************************************************************************************************
2843 
2844 
2845 
2846 
2847 //=================================================================================================
2848 //
2849 // ISLOWER SPECIALIZATIONS
2850 //
2851 //=================================================================================================
2852 
2853 //*************************************************************************************************
2855 template< typename MT, bool SO >
2856 struct IsLower< DMatMapExpr<MT,Abs,SO> >
2857  : public IsLower<MT>
2858 {};
2859 
2860 template< typename MT, bool SO >
2861 struct IsLower< DMatMapExpr<MT,Floor,SO> >
2862  : public IsLower<MT>
2863 {};
2864 
2865 template< typename MT, bool SO >
2866 struct IsLower< DMatMapExpr<MT,Ceil,SO> >
2867  : public IsLower<MT>
2868 {};
2869 
2870 template< typename MT, bool SO >
2871 struct IsLower< DMatMapExpr<MT,Trunc,SO> >
2872  : public IsLower<MT>
2873 {};
2874 
2875 template< typename MT, bool SO >
2876 struct IsLower< DMatMapExpr<MT,Round,SO> >
2877  : public IsLower<MT>
2878 {};
2879 
2880 template< typename MT, bool SO >
2881 struct IsLower< DMatMapExpr<MT,Conj,SO> >
2882  : public IsLower<MT>
2883 {};
2884 
2885 template< typename MT, bool SO >
2886 struct IsLower< DMatMapExpr<MT,Real,SO> >
2887  : public IsLower<MT>
2888 {};
2889 
2890 template< typename MT, bool SO >
2891 struct IsLower< DMatMapExpr<MT,Imag,SO> >
2892  : public IsLower<MT>
2893 {};
2894 
2895 template< typename MT, bool SO >
2896 struct IsLower< DMatMapExpr<MT,Sqrt,SO> >
2897  : public IsLower<MT>
2898 {};
2899 
2900 template< typename MT, bool SO >
2901 struct IsLower< DMatMapExpr<MT,Cbrt,SO> >
2902  : public IsLower<MT>
2903 {};
2904 
2905 template< typename MT, bool SO >
2906 struct IsLower< DMatMapExpr<MT,Sin,SO> >
2907  : public IsLower<MT>
2908 {};
2909 
2910 template< typename MT, bool SO >
2911 struct IsLower< DMatMapExpr<MT,Asin,SO> >
2912  : public IsLower<MT>
2913 {};
2914 
2915 template< typename MT, bool SO >
2916 struct IsLower< DMatMapExpr<MT,Sinh,SO> >
2917  : public IsLower<MT>
2918 {};
2919 
2920 template< typename MT, bool SO >
2921 struct IsLower< DMatMapExpr<MT,Asinh,SO> >
2922  : public IsLower<MT>
2923 {};
2924 
2925 template< typename MT, bool SO >
2926 struct IsLower< DMatMapExpr<MT,Tan,SO> >
2927  : public IsLower<MT>
2928 {};
2929 
2930 template< typename MT, bool SO >
2931 struct IsLower< DMatMapExpr<MT,Atan,SO> >
2932  : public IsLower<MT>
2933 {};
2934 
2935 template< typename MT, bool SO >
2936 struct IsLower< DMatMapExpr<MT,Tanh,SO> >
2937  : public IsLower<MT>
2938 {};
2939 
2940 template< typename MT, bool SO >
2941 struct IsLower< DMatMapExpr<MT,Atanh,SO> >
2942  : public IsLower<MT>
2943 {};
2944 
2945 template< typename MT, bool SO >
2946 struct IsLower< DMatMapExpr<MT,Erf,SO> >
2947  : public IsLower<MT>
2948 {};
2950 //*************************************************************************************************
2951 
2952 
2953 
2954 
2955 //=================================================================================================
2956 //
2957 // ISUNILOWER SPECIALIZATIONS
2958 //
2959 //=================================================================================================
2960 
2961 //*************************************************************************************************
2963 template< typename MT, bool SO >
2964 struct IsUniLower< DMatMapExpr<MT,Abs,SO> >
2965  : public IsUniLower<MT>
2966 {};
2967 
2968 template< typename MT, bool SO >
2969 struct IsUniLower< DMatMapExpr<MT,Floor,SO> >
2970  : public IsUniLower<MT>
2971 {};
2972 
2973 template< typename MT, bool SO >
2974 struct IsUniLower< DMatMapExpr<MT,Ceil,SO> >
2975  : public IsUniLower<MT>
2976 {};
2977 
2978 template< typename MT, bool SO >
2979 struct IsUniLower< DMatMapExpr<MT,Trunc,SO> >
2980  : public IsUniLower<MT>
2981 {};
2982 
2983 template< typename MT, bool SO >
2984 struct IsUniLower< DMatMapExpr<MT,Round,SO> >
2985  : public IsUniLower<MT>
2986 {};
2987 
2988 template< typename MT, bool SO >
2989 struct IsUniLower< DMatMapExpr<MT,Conj,SO> >
2990  : public IsUniLower<MT>
2991 {};
2992 
2993 template< typename MT, bool SO >
2994 struct IsUniLower< DMatMapExpr<MT,Real,SO> >
2995  : public IsUniLower<MT>
2996 {};
2997 
2998 template< typename MT, bool SO >
2999 struct IsUniLower< DMatMapExpr<MT,Sqrt,SO> >
3000  : public IsUniLower<MT>
3001 {};
3002 
3003 template< typename MT, bool SO >
3004 struct IsUniLower< DMatMapExpr<MT,Cbrt,SO> >
3005  : public IsUniLower<MT>
3006 {};
3007 
3008 template< typename MT, typename ET, bool SO >
3009 struct IsUniLower< DMatMapExpr<MT,UnaryPow<ET>,SO> >
3010  : public IsUniLower<MT>
3011 {};
3013 //*************************************************************************************************
3014 
3015 
3016 
3017 
3018 //=================================================================================================
3019 //
3020 // ISSTRICTLYLOWER SPECIALIZATIONS
3021 //
3022 //=================================================================================================
3023 
3024 //*************************************************************************************************
3026 template< typename MT, bool SO >
3027 struct IsStrictlyLower< DMatMapExpr<MT,Abs,SO> >
3028  : public IsStrictlyLower<MT>
3029 {};
3030 
3031 template< typename MT, bool SO >
3032 struct IsStrictlyLower< DMatMapExpr<MT,Floor,SO> >
3033  : public IsStrictlyLower<MT>
3034 {};
3035 
3036 template< typename MT, bool SO >
3037 struct IsStrictlyLower< DMatMapExpr<MT,Ceil,SO> >
3038  : public IsStrictlyLower<MT>
3039 {};
3040 
3041 template< typename MT, bool SO >
3042 struct IsStrictlyLower< DMatMapExpr<MT,Trunc,SO> >
3043  : public IsStrictlyLower<MT>
3044 {};
3045 
3046 template< typename MT, bool SO >
3047 struct IsStrictlyLower< DMatMapExpr<MT,Round,SO> >
3048  : public IsStrictlyLower<MT>
3049 {};
3050 
3051 template< typename MT, bool SO >
3052 struct IsStrictlyLower< DMatMapExpr<MT,Conj,SO> >
3053  : public IsStrictlyLower<MT>
3054 {};
3055 
3056 template< typename MT, bool SO >
3057 struct IsStrictlyLower< DMatMapExpr<MT,Real,SO> >
3058  : public IsStrictlyLower<MT>
3059 {};
3060 
3061 template< typename MT, bool SO >
3062 struct IsStrictlyLower< DMatMapExpr<MT,Imag,SO> >
3063  : public IsStrictlyLower<MT>
3064 {};
3065 
3066 template< typename MT, bool SO >
3067 struct IsStrictlyLower< DMatMapExpr<MT,Sin,SO> >
3068  : public IsStrictlyLower<MT>
3069 {};
3070 
3071 template< typename MT, bool SO >
3072 struct IsStrictlyLower< DMatMapExpr<MT,Asin,SO> >
3073  : public IsStrictlyLower<MT>
3074 {};
3075 
3076 template< typename MT, bool SO >
3077 struct IsStrictlyLower< DMatMapExpr<MT,Sinh,SO> >
3078  : public IsStrictlyLower<MT>
3079 {};
3080 
3081 template< typename MT, bool SO >
3082 struct IsStrictlyLower< DMatMapExpr<MT,Asinh,SO> >
3083  : public IsStrictlyLower<MT>
3084 {};
3085 
3086 template< typename MT, bool SO >
3087 struct IsStrictlyLower< DMatMapExpr<MT,Tan,SO> >
3088  : public IsStrictlyLower<MT>
3089 {};
3090 
3091 template< typename MT, bool SO >
3092 struct IsStrictlyLower< DMatMapExpr<MT,Atan,SO> >
3093  : public IsStrictlyLower<MT>
3094 {};
3095 
3096 template< typename MT, bool SO >
3097 struct IsStrictlyLower< DMatMapExpr<MT,Tanh,SO> >
3098  : public IsStrictlyLower<MT>
3099 {};
3100 
3101 template< typename MT, bool SO >
3102 struct IsStrictlyLower< DMatMapExpr<MT,Atanh,SO> >
3103  : public IsStrictlyLower<MT>
3104 {};
3105 
3106 template< typename MT, bool SO >
3107 struct IsStrictlyLower< DMatMapExpr<MT,Erf,SO> >
3108  : public IsStrictlyLower<MT>
3109 {};
3111 //*************************************************************************************************
3112 
3113 
3114 
3115 
3116 //=================================================================================================
3117 //
3118 // ISUPPER SPECIALIZATIONS
3119 //
3120 //=================================================================================================
3121 
3122 //*************************************************************************************************
3124 template< typename MT, bool SO >
3125 struct IsUpper< DMatMapExpr<MT,Abs,SO> >
3126  : public IsUpper<MT>
3127 {};
3128 
3129 template< typename MT, bool SO >
3130 struct IsUpper< DMatMapExpr<MT,Floor,SO> >
3131  : public IsUpper<MT>
3132 {};
3133 
3134 template< typename MT, bool SO >
3135 struct IsUpper< DMatMapExpr<MT,Ceil,SO> >
3136  : public IsUpper<MT>
3137 {};
3138 
3139 template< typename MT, bool SO >
3140 struct IsUpper< DMatMapExpr<MT,Trunc,SO> >
3141  : public IsUpper<MT>
3142 {};
3143 
3144 template< typename MT, bool SO >
3145 struct IsUpper< DMatMapExpr<MT,Round,SO> >
3146  : public IsUpper<MT>
3147 {};
3148 
3149 template< typename MT, bool SO >
3150 struct IsUpper< DMatMapExpr<MT,Conj,SO> >
3151  : public IsUpper<MT>
3152 {};
3153 
3154 template< typename MT, bool SO >
3155 struct IsUpper< DMatMapExpr<MT,Real,SO> >
3156  : public IsUpper<MT>
3157 {};
3158 
3159 template< typename MT, bool SO >
3160 struct IsUpper< DMatMapExpr<MT,Imag,SO> >
3161  : public IsUpper<MT>
3162 {};
3163 
3164 template< typename MT, bool SO >
3165 struct IsUpper< DMatMapExpr<MT,Sqrt,SO> >
3166  : public IsUpper<MT>
3167 {};
3168 
3169 template< typename MT, bool SO >
3170 struct IsUpper< DMatMapExpr<MT,Cbrt,SO> >
3171  : public IsUpper<MT>
3172 {};
3173 
3174 template< typename MT, bool SO >
3175 struct IsUpper< DMatMapExpr<MT,Sin,SO> >
3176  : public IsUpper<MT>
3177 {};
3178 
3179 template< typename MT, bool SO >
3180 struct IsUpper< DMatMapExpr<MT,Asin,SO> >
3181  : public IsUpper<MT>
3182 {};
3183 
3184 template< typename MT, bool SO >
3185 struct IsUpper< DMatMapExpr<MT,Sinh,SO> >
3186  : public IsUpper<MT>
3187 {};
3188 
3189 template< typename MT, bool SO >
3190 struct IsUpper< DMatMapExpr<MT,Asinh,SO> >
3191  : public IsUpper<MT>
3192 {};
3193 
3194 template< typename MT, bool SO >
3195 struct IsUpper< DMatMapExpr<MT,Tan,SO> >
3196  : public IsUpper<MT>
3197 {};
3198 
3199 template< typename MT, bool SO >
3200 struct IsUpper< DMatMapExpr<MT,Atan,SO> >
3201  : public IsUpper<MT>
3202 {};
3203 
3204 template< typename MT, bool SO >
3205 struct IsUpper< DMatMapExpr<MT,Tanh,SO> >
3206  : public IsUpper<MT>
3207 {};
3208 
3209 template< typename MT, bool SO >
3210 struct IsUpper< DMatMapExpr<MT,Atanh,SO> >
3211  : public IsUpper<MT>
3212 {};
3213 
3214 template< typename MT, bool SO >
3215 struct IsUpper< DMatMapExpr<MT,Erf,SO> >
3216  : public IsUpper<MT>
3217 {};
3219 //*************************************************************************************************
3220 
3221 
3222 
3223 
3224 //=================================================================================================
3225 //
3226 // ISUNIUPPER SPECIALIZATIONS
3227 //
3228 //=================================================================================================
3229 
3230 //*************************************************************************************************
3232 template< typename MT, bool SO >
3233 struct IsUniUpper< DMatMapExpr<MT,Abs,SO> >
3234  : public IsUniUpper<MT>
3235 {};
3236 
3237 template< typename MT, bool SO >
3238 struct IsUniUpper< DMatMapExpr<MT,Floor,SO> >
3239  : public IsUniUpper<MT>
3240 {};
3241 
3242 template< typename MT, bool SO >
3243 struct IsUniUpper< DMatMapExpr<MT,Ceil,SO> >
3244  : public IsUniUpper<MT>
3245 {};
3246 
3247 template< typename MT, bool SO >
3248 struct IsUniUpper< DMatMapExpr<MT,Trunc,SO> >
3249  : public IsUniUpper<MT>
3250 {};
3251 
3252 template< typename MT, bool SO >
3253 struct IsUniUpper< DMatMapExpr<MT,Round,SO> >
3254  : public IsUniUpper<MT>
3255 {};
3256 
3257 template< typename MT, bool SO >
3258 struct IsUniUpper< DMatMapExpr<MT,Conj,SO> >
3259  : public IsUniUpper<MT>
3260 {};
3261 
3262 template< typename MT, bool SO >
3263 struct IsUniUpper< DMatMapExpr<MT,Real,SO> >
3264  : public IsUniUpper<MT>
3265 {};
3266 
3267 template< typename MT, bool SO >
3268 struct IsUniUpper< DMatMapExpr<MT,Sqrt,SO> >
3269  : public IsUniUpper<MT>
3270 {};
3271 
3272 template< typename MT, bool SO >
3273 struct IsUniUpper< DMatMapExpr<MT,Cbrt,SO> >
3274  : public IsUniUpper<MT>
3275 {};
3276 
3277 template< typename MT, typename ET, bool SO >
3278 struct IsUniUpper< DMatMapExpr<MT,UnaryPow<ET>,SO> >
3279  : public IsUniUpper<MT>
3280 {};
3282 //*************************************************************************************************
3283 
3284 
3285 
3286 
3287 //=================================================================================================
3288 //
3289 // ISSTRICTLYUPPER SPECIALIZATIONS
3290 //
3291 //=================================================================================================
3292 
3293 //*************************************************************************************************
3295 template< typename MT, bool SO >
3296 struct IsStrictlyUpper< DMatMapExpr<MT,Abs,SO> >
3297  : public IsStrictlyUpper<MT>
3298 {};
3299 
3300 template< typename MT, bool SO >
3301 struct IsStrictlyUpper< DMatMapExpr<MT,Floor,SO> >
3302  : public IsStrictlyUpper<MT>
3303 {};
3304 
3305 template< typename MT, bool SO >
3306 struct IsStrictlyUpper< DMatMapExpr<MT,Ceil,SO> >
3307  : public IsStrictlyUpper<MT>
3308 {};
3309 
3310 template< typename MT, bool SO >
3311 struct IsStrictlyUpper< DMatMapExpr<MT,Trunc,SO> >
3312  : public IsStrictlyUpper<MT>
3313 {};
3314 
3315 template< typename MT, bool SO >
3316 struct IsStrictlyUpper< DMatMapExpr<MT,Round,SO> >
3317  : public IsStrictlyUpper<MT>
3318 {};
3319 
3320 template< typename MT, bool SO >
3321 struct IsStrictlyUpper< DMatMapExpr<MT,Conj,SO> >
3322  : public IsStrictlyUpper<MT>
3323 {};
3324 
3325 template< typename MT, bool SO >
3326 struct IsStrictlyUpper< DMatMapExpr<MT,Real,SO> >
3327  : public IsStrictlyUpper<MT>
3328 {};
3329 
3330 template< typename MT, bool SO >
3331 struct IsStrictlyUpper< DMatMapExpr<MT,Imag,SO> >
3332  : public IsStrictlyUpper<MT>
3333 {};
3334 
3335 template< typename MT, bool SO >
3336 struct IsStrictlyUpper< DMatMapExpr<MT,Sqrt,SO> >
3337  : public IsStrictlyUpper<MT>
3338 {};
3339 
3340 template< typename MT, bool SO >
3341 struct IsStrictlyUpper< DMatMapExpr<MT,Cbrt,SO> >
3342  : public IsStrictlyUpper<MT>
3343 {};
3344 
3345 template< typename MT, bool SO >
3346 struct IsStrictlyUpper< DMatMapExpr<MT,Sin,SO> >
3347  : public IsStrictlyUpper<MT>
3348 {};
3349 
3350 template< typename MT, bool SO >
3351 struct IsStrictlyUpper< DMatMapExpr<MT,Asin,SO> >
3352  : public IsStrictlyUpper<MT>
3353 {};
3354 
3355 template< typename MT, bool SO >
3356 struct IsStrictlyUpper< DMatMapExpr<MT,Sinh,SO> >
3357  : public IsStrictlyUpper<MT>
3358 {};
3359 
3360 template< typename MT, bool SO >
3361 struct IsStrictlyUpper< DMatMapExpr<MT,Asinh,SO> >
3362  : public IsStrictlyUpper<MT>
3363 {};
3364 
3365 template< typename MT, bool SO >
3366 struct IsStrictlyUpper< DMatMapExpr<MT,Tan,SO> >
3367  : public IsStrictlyUpper<MT>
3368 {};
3369 
3370 template< typename MT, bool SO >
3371 struct IsStrictlyUpper< DMatMapExpr<MT,Atan,SO> >
3372  : public IsStrictlyUpper<MT>
3373 {};
3374 
3375 template< typename MT, bool SO >
3376 struct IsStrictlyUpper< DMatMapExpr<MT,Tanh,SO> >
3377  : public IsStrictlyUpper<MT>
3378 {};
3379 
3380 template< typename MT, bool SO >
3381 struct IsStrictlyUpper< DMatMapExpr<MT,Atanh,SO> >
3382  : public IsStrictlyUpper<MT>
3383 {};
3384 
3385 template< typename MT, bool SO >
3386 struct IsStrictlyUpper< DMatMapExpr<MT,Erf,SO> >
3387  : public IsStrictlyUpper<MT>
3388 {};
3390 //*************************************************************************************************
3391 
3392 } // namespace blaze
3393 
3394 #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
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 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:99
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
#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
decltype(auto) pow(const DenseMatrix< MT1, SO1 > &lhs, const DenseMatrix< MT2, SO2 > &rhs)
Computes the componentwise exponential value for the dense matrices lhs and rhs.
Definition: DMatDMatMapExpr.h:1267
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:1903
Compile time check for lower triangular matrices.This type trait tests whether or not the given templ...
Definition: IsLower.h:87
Generic wrapper for the pow() function with fixed exponent.
Definition: Forward.h:119
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
typename MultTrait< T1, T2 >::Type MultTrait_
Auxiliary alias declaration for the MultTrait class template.The MultTrait_ alias declaration provide...
Definition: MultTrait.h:291
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:87
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:1950
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:80
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:71
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 multiplication trait.
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:58
#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
Header file for the UnderlyingBuiltin type trait.
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.
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:3085
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
Header file for the IsNumeric type trait.
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
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 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
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
Compile time check for built-in data types.This type trait tests whether or not the given template pa...
Definition: IsBuiltin.h:75
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:816
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:3080
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:789
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:134
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
Compile time evaluation of the size of vectors and matrices.The Size type trait evaluates the size of...
Definition: Size.h:80
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
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.
Header file for the Size type trait.
#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:1134