SMatTSMatSchurExpr.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_EXPRESSIONS_SMATTSMATSCHUREXPR_H_
36 #define _BLAZE_MATH_EXPRESSIONS_SMATTSMATSCHUREXPR_H_
37 
38 
39 //*************************************************************************************************
40 // Includes
41 //*************************************************************************************************
42 
43 #include <blaze/math/Aliases.h>
50 #include <blaze/math/Exception.h>
73 #include <blaze/util/Assert.h>
74 #include <blaze/util/DisableIf.h>
75 #include <blaze/util/EnableIf.h>
77 #include <blaze/util/mpl/And.h>
78 #include <blaze/util/mpl/If.h>
79 #include <blaze/util/mpl/Maximum.h>
80 #include <blaze/util/mpl/Or.h>
81 #include <blaze/util/Types.h>
83 #include <blaze/util/Unused.h>
84 
85 
86 namespace blaze {
87 
88 //=================================================================================================
89 //
90 // CLASS SMATTSMATSCHUREXPR
91 //
92 //=================================================================================================
93 
94 //*************************************************************************************************
101 template< typename MT1 // Type of the left-hand side sparse matrix
102  , typename MT2 > // Type of the right-hand side sparse matrix
103 class SMatTSMatSchurExpr
104  : public SchurExpr< SparseMatrix< SMatTSMatSchurExpr<MT1,MT2>, false > >
105  , private Computation
106 {
107  private:
108  //**Type definitions****************************************************************************
115  //**********************************************************************************************
116 
117  //**Return type evaluation**********************************************************************
119 
124  enum : bool { returnExpr = !IsTemporary<RN1>::value && !IsTemporary<RN2>::value };
125 
128  //**********************************************************************************************
129 
130  //**Serial evaluation strategy******************************************************************
132 
138  template< typename T1, typename T2 >
139  struct UseSymmetricKernel {
141  enum : bool { value = IsSymmetric<T2>::value };
142  };
144  //**********************************************************************************************
145 
146  public:
147  //**Type definitions****************************************************************************
153 
156 
158  using CompositeType = const ResultType;
159 
161  using LeftOperand = If_< IsExpression<MT1>, const MT1, const MT1& >;
162 
164  using RightOperand = If_< IsExpression<MT2>, const MT2, const MT2& >;
165  //**********************************************************************************************
166 
167  //**Compilation flags***************************************************************************
169  enum : bool { smpAssignable = false };
170  //**********************************************************************************************
171 
172  //**Constructor*********************************************************************************
178  explicit inline SMatTSMatSchurExpr( const MT1& lhs, const MT2& rhs ) noexcept
179  : lhs_( lhs ) // Left-hand side sparse matrix of the Schur product expression
180  , rhs_( rhs ) // Right-hand side sparse matrix of the Schur product expression
181  {
182  BLAZE_INTERNAL_ASSERT( lhs.rows() == rhs.rows() , "Invalid number of rows" );
183  BLAZE_INTERNAL_ASSERT( lhs.columns() == rhs.columns(), "Invalid number of columns" );
184  }
185  //**********************************************************************************************
186 
187  //**Access operator*****************************************************************************
194  inline ReturnType operator()( size_t i, size_t j ) const {
195  BLAZE_INTERNAL_ASSERT( i < lhs_.rows() , "Invalid row access index" );
196  BLAZE_INTERNAL_ASSERT( j < lhs_.columns(), "Invalid column access index" );
197  return lhs_(i,j) * rhs_(i,j);
198  }
199  //**********************************************************************************************
200 
201  //**At function*********************************************************************************
209  inline ReturnType at( size_t i, size_t j ) const {
210  if( i >= lhs_.rows() ) {
211  BLAZE_THROW_OUT_OF_RANGE( "Invalid row access index" );
212  }
213  if( j >= lhs_.columns() ) {
214  BLAZE_THROW_OUT_OF_RANGE( "Invalid column access index" );
215  }
216  return (*this)(i,j);
217  }
218  //**********************************************************************************************
219 
220  //**Rows function*******************************************************************************
225  inline size_t rows() const noexcept {
226  return lhs_.rows();
227  }
228  //**********************************************************************************************
229 
230  //**Columns function****************************************************************************
235  inline size_t columns() const noexcept {
236  return lhs_.columns();
237  }
238  //**********************************************************************************************
239 
240  //**NonZeros function***************************************************************************
245  inline size_t nonZeros() const {
246  return min( lhs_.nonZeros(), rhs_.nonZeros() );
247  }
248  //**********************************************************************************************
249 
250  //**NonZeros function***************************************************************************
256  inline size_t nonZeros( size_t i ) const {
257  return min( lhs_.nonZeros(i), rhs_.nonZeros(i) );
258  }
259  //**********************************************************************************************
260 
261  //**Left operand access*************************************************************************
266  inline LeftOperand leftOperand() const noexcept {
267  return lhs_;
268  }
269  //**********************************************************************************************
270 
271  //**Right operand access************************************************************************
276  inline RightOperand rightOperand() const noexcept {
277  return rhs_;
278  }
279  //**********************************************************************************************
280 
281  //**********************************************************************************************
287  template< typename T >
288  inline bool canAlias( const T* alias ) const noexcept {
289  return ( lhs_.canAlias( alias ) || rhs_.canAlias( alias ) );
290  }
291  //**********************************************************************************************
292 
293  //**********************************************************************************************
299  template< typename T >
300  inline bool isAliased( const T* alias ) const noexcept {
301  return ( lhs_.isAliased( alias ) || rhs_.isAliased( alias ) );
302  }
303  //**********************************************************************************************
304 
305  private:
306  //**Member variables****************************************************************************
309  //**********************************************************************************************
310 
311  //**Assignment to row-major dense matrices******************************************************
324  template< typename MT > // Type of the target dense matrix
326  assign( DenseMatrix<MT,false>& lhs, const SMatTSMatSchurExpr& rhs )
327  {
329 
330  BLAZE_INTERNAL_ASSERT( (~lhs).rows() == rhs.rows() , "Invalid number of rows" );
331  BLAZE_INTERNAL_ASSERT( (~lhs).columns() == rhs.columns(), "Invalid number of columns" );
332 
333  // Evaluation of the left-hand side sparse matrix operand
334  CT1 A( serial( rhs.lhs_ ) );
335 
336  // Evaluation of the right-hand side sparse matrix operand
337  const OppositeType_<RT2> B( serial( rhs.rhs_ ) );
338 
339  BLAZE_INTERNAL_ASSERT( A.rows() == rhs.lhs_.rows() , "Invalid number of rows" );
340  BLAZE_INTERNAL_ASSERT( A.columns() == rhs.lhs_.columns(), "Invalid number of columns" );
341  BLAZE_INTERNAL_ASSERT( B.rows() == rhs.rhs_.rows() , "Invalid number of rows" );
342  BLAZE_INTERNAL_ASSERT( B.columns() == rhs.rhs_.columns(), "Invalid number of columns" );
343  BLAZE_INTERNAL_ASSERT( A.rows() == (~lhs).rows() , "Invalid number of rows" );
344  BLAZE_INTERNAL_ASSERT( A.columns() == (~lhs).columns() , "Invalid number of columns" );
345 
346  assign( ~lhs, A % B );
347  }
349  //**********************************************************************************************
350 
351  //**Assignment to column-major dense matrices***************************************************
364  template< typename MT > // Type of the target dense matrix
366  assign( DenseMatrix<MT,true>& lhs, const SMatTSMatSchurExpr& rhs )
367  {
369 
371 
372  BLAZE_INTERNAL_ASSERT( (~lhs).rows() == rhs.rows() , "Invalid number of rows" );
373  BLAZE_INTERNAL_ASSERT( (~lhs).columns() == rhs.columns(), "Invalid number of columns" );
374 
375  // Evaluation of the left-hand side sparse matrix operand
376  const OppositeType_<RT1> A( serial( rhs.lhs_ ) );
377 
378  // Evaluation of the right-hand side sparse matrix operand
379  CT2 B( serial( rhs.rhs_ ) );
380 
381  BLAZE_INTERNAL_ASSERT( A.rows() == rhs.lhs_.rows() , "Invalid number of rows" );
382  BLAZE_INTERNAL_ASSERT( A.columns() == rhs.lhs_.columns(), "Invalid number of columns" );
383  BLAZE_INTERNAL_ASSERT( B.rows() == rhs.rhs_.rows() , "Invalid number of rows" );
384  BLAZE_INTERNAL_ASSERT( B.columns() == rhs.rhs_.columns(), "Invalid number of columns" );
385  BLAZE_INTERNAL_ASSERT( A.rows() == (~lhs).rows() , "Invalid number of rows" );
386  BLAZE_INTERNAL_ASSERT( A.columns() == (~lhs).columns() , "Invalid number of columns" );
387 
388  assign( ~lhs, A % B );
389  }
391  //**********************************************************************************************
392 
393  //**Assignment to row-major sparse matrices*****************************************************
406  template< typename MT > // Type of the target sparse matrix
408  assign( SparseMatrix<MT,false>& lhs, const SMatTSMatSchurExpr& rhs )
409  {
411 
412  BLAZE_INTERNAL_ASSERT( (~lhs).rows() == rhs.rows() , "Invalid number of rows" );
413  BLAZE_INTERNAL_ASSERT( (~lhs).columns() == rhs.columns(), "Invalid number of columns" );
414 
415  // Evaluation of the left-hand side sparse matrix operand
416  CT1 A( serial( rhs.lhs_ ) );
417 
418  // Evaluation of the right-hand side sparse matrix operand
419  const OppositeType_<RT2> B( serial( rhs.rhs_ ) );
420 
421  BLAZE_INTERNAL_ASSERT( A.rows() == rhs.lhs_.rows() , "Invalid number of rows" );
422  BLAZE_INTERNAL_ASSERT( A.columns() == rhs.lhs_.columns(), "Invalid number of columns" );
423  BLAZE_INTERNAL_ASSERT( B.rows() == rhs.rhs_.rows() , "Invalid number of rows" );
424  BLAZE_INTERNAL_ASSERT( B.columns() == rhs.rhs_.columns(), "Invalid number of columns" );
425  BLAZE_INTERNAL_ASSERT( A.rows() == (~lhs).rows() , "Invalid number of rows" );
426  BLAZE_INTERNAL_ASSERT( A.columns() == (~lhs).columns() , "Invalid number of columns" );
427 
428  assign( ~lhs, A % B );
429  }
431  //**********************************************************************************************
432 
433  //**Assignment to column-major sparse matrices**************************************************
446  template< typename MT > // Type of the target sparse matrix
448  assign( SparseMatrix<MT,true>& lhs, const SMatTSMatSchurExpr& rhs )
449  {
451 
453 
454  BLAZE_INTERNAL_ASSERT( (~lhs).rows() == rhs.rows() , "Invalid number of rows" );
455  BLAZE_INTERNAL_ASSERT( (~lhs).columns() == rhs.columns(), "Invalid number of columns" );
456 
457  // Evaluation of the left-hand side sparse matrix operand
458  const OppositeType_<RT1> A( serial( rhs.lhs_ ) );
459 
460  // Evaluation of the right-hand side sparse matrix operand
461  CT2 B( serial( rhs.rhs_ ) );
462 
463  BLAZE_INTERNAL_ASSERT( A.rows() == rhs.lhs_.rows() , "Invalid number of rows" );
464  BLAZE_INTERNAL_ASSERT( A.columns() == rhs.lhs_.columns(), "Invalid number of columns" );
465  BLAZE_INTERNAL_ASSERT( B.rows() == rhs.rhs_.rows() , "Invalid number of rows" );
466  BLAZE_INTERNAL_ASSERT( B.columns() == rhs.rhs_.columns(), "Invalid number of columns" );
467  BLAZE_INTERNAL_ASSERT( A.rows() == (~lhs).rows() , "Invalid number of rows" );
468  BLAZE_INTERNAL_ASSERT( A.columns() == (~lhs).columns() , "Invalid number of columns" );
469 
470  assign( ~lhs, A % B );
471  }
473  //**********************************************************************************************
474 
475  //**Restructuring assignment to row-major matrices**********************************************
488  template< typename MT > // Type of the target sparse matrix
490  assign( Matrix<MT,false>& lhs, const SMatTSMatSchurExpr& rhs )
491  {
493 
494  BLAZE_INTERNAL_ASSERT( (~lhs).rows() == rhs.rows() , "Invalid number of rows" );
495  BLAZE_INTERNAL_ASSERT( (~lhs).columns() == rhs.columns(), "Invalid number of columns" );
496 
497  assign( ~lhs, rhs.lhs_ % trans( rhs.rhs_ ) );
498  }
500  //**********************************************************************************************
501 
502  //**Restructuring assignment to column-major matrices*******************************************
515  template< typename MT > // Type of the target sparse matrix
517  assign( Matrix<MT,true>& lhs, const SMatTSMatSchurExpr& rhs )
518  {
520 
522 
523  BLAZE_INTERNAL_ASSERT( (~lhs).rows() == rhs.rows() , "Invalid number of rows" );
524  BLAZE_INTERNAL_ASSERT( (~lhs).columns() == rhs.columns(), "Invalid number of columns" );
525 
526  assign( ~lhs, trans( rhs.lhs_ ) % rhs.rhs_ );
527  }
529  //**********************************************************************************************
530 
531  //**Addition assignment to row-major dense matrices*********************************************
544  template< typename MT > // Type of the target dense matrix
546  addAssign( DenseMatrix<MT,false>& lhs, const SMatTSMatSchurExpr& rhs )
547  {
549 
550  BLAZE_INTERNAL_ASSERT( (~lhs).rows() == rhs.rows() , "Invalid number of rows" );
551  BLAZE_INTERNAL_ASSERT( (~lhs).columns() == rhs.columns(), "Invalid number of columns" );
552 
553  // Evaluation of the left-hand side sparse matrix operand
554  CT1 A( serial( rhs.lhs_ ) );
555 
556  // Evaluation of the right-hand side sparse matrix operand
557  const OppositeType_<RT2> B( serial( rhs.rhs_ ) );
558 
559  BLAZE_INTERNAL_ASSERT( A.rows() == rhs.lhs_.rows() , "Invalid number of rows" );
560  BLAZE_INTERNAL_ASSERT( A.columns() == rhs.lhs_.columns(), "Invalid number of columns" );
561  BLAZE_INTERNAL_ASSERT( B.rows() == rhs.rhs_.rows() , "Invalid number of rows" );
562  BLAZE_INTERNAL_ASSERT( B.columns() == rhs.rhs_.columns(), "Invalid number of columns" );
563  BLAZE_INTERNAL_ASSERT( A.rows() == (~lhs).rows() , "Invalid number of rows" );
564  BLAZE_INTERNAL_ASSERT( A.columns() == (~lhs).columns() , "Invalid number of columns" );
565 
566  addAssign( ~lhs, A % B );
567  }
569  //**********************************************************************************************
570 
571  //**Addition assignment to column-major dense matrices******************************************
584  template< typename MT > // Type of the target dense matrix
586  addAssign( DenseMatrix<MT,true>& lhs, const SMatTSMatSchurExpr& rhs )
587  {
589 
591 
592  BLAZE_INTERNAL_ASSERT( (~lhs).rows() == rhs.rows() , "Invalid number of rows" );
593  BLAZE_INTERNAL_ASSERT( (~lhs).columns() == rhs.columns(), "Invalid number of columns" );
594 
595  // Evaluation of the left-hand side sparse matrix operand
596  const OppositeType_<RT1> A( serial( rhs.lhs_ ) );
597 
598  // Evaluation of the right-hand side sparse matrix operand
599  CT2 B( serial( rhs.rhs_ ) );
600 
601  BLAZE_INTERNAL_ASSERT( A.rows() == rhs.lhs_.rows() , "Invalid number of rows" );
602  BLAZE_INTERNAL_ASSERT( A.columns() == rhs.lhs_.columns(), "Invalid number of columns" );
603  BLAZE_INTERNAL_ASSERT( B.rows() == rhs.rhs_.rows() , "Invalid number of rows" );
604  BLAZE_INTERNAL_ASSERT( B.columns() == rhs.rhs_.columns(), "Invalid number of columns" );
605  BLAZE_INTERNAL_ASSERT( A.rows() == (~lhs).rows() , "Invalid number of rows" );
606  BLAZE_INTERNAL_ASSERT( A.columns() == (~lhs).columns() , "Invalid number of columns" );
607 
608  addAssign( ~lhs, A % B );
609  }
611  //**********************************************************************************************
612 
613  //**Restructuring addition assignment to row-major matrices*************************************
626  template< typename MT > // Type of the target sparse matrix
628  addAssign( Matrix<MT,false>& lhs, const SMatTSMatSchurExpr& rhs )
629  {
631 
632  BLAZE_INTERNAL_ASSERT( (~lhs).rows() == rhs.rows() , "Invalid number of rows" );
633  BLAZE_INTERNAL_ASSERT( (~lhs).columns() == rhs.columns(), "Invalid number of columns" );
634 
635  addAssign( ~lhs, rhs.lhs_ % trans( rhs.rhs_ ) );
636  }
638  //**********************************************************************************************
639 
640  //**Restructuring addition assignment to column-major matrices**********************************
653  template< typename MT > // Type of the target sparse matrix
655  addAssign( Matrix<MT,true>& lhs, const SMatTSMatSchurExpr& rhs )
656  {
658 
660 
661  BLAZE_INTERNAL_ASSERT( (~lhs).rows() == rhs.rows() , "Invalid number of rows" );
662  BLAZE_INTERNAL_ASSERT( (~lhs).columns() == rhs.columns(), "Invalid number of columns" );
663 
664  addAssign( ~lhs, trans( rhs.lhs_ ) % rhs.rhs_ );
665  }
667  //**********************************************************************************************
668 
669  //**Addition assignment to sparse matrices******************************************************
670  // No special implementation for the addition assignment to sparse matrices.
671  //**********************************************************************************************
672 
673  //**Subtraction assignment to row-major dense matrices******************************************
686  template< typename MT > // Type of the target dense matrix
688  subAssign( DenseMatrix<MT,false>& lhs, const SMatTSMatSchurExpr& rhs )
689  {
691 
692  BLAZE_INTERNAL_ASSERT( (~lhs).rows() == rhs.rows() , "Invalid number of rows" );
693  BLAZE_INTERNAL_ASSERT( (~lhs).columns() == rhs.columns(), "Invalid number of columns" );
694 
695  // Evaluation of the left-hand side sparse matrix operand
696  CT1 A( serial( rhs.lhs_ ) );
697 
698  // Evaluation of the right-hand side sparse matrix operand
699  const OppositeType_<RT2> B( serial( rhs.rhs_ ) );
700 
701  BLAZE_INTERNAL_ASSERT( A.rows() == rhs.lhs_.rows() , "Invalid number of rows" );
702  BLAZE_INTERNAL_ASSERT( A.columns() == rhs.lhs_.columns(), "Invalid number of columns" );
703  BLAZE_INTERNAL_ASSERT( B.rows() == rhs.rhs_.rows() , "Invalid number of rows" );
704  BLAZE_INTERNAL_ASSERT( B.columns() == rhs.rhs_.columns(), "Invalid number of columns" );
705  BLAZE_INTERNAL_ASSERT( A.rows() == (~lhs).rows() , "Invalid number of rows" );
706  BLAZE_INTERNAL_ASSERT( A.columns() == (~lhs).columns() , "Invalid number of columns" );
707 
708  subAssign( ~lhs, A % B );
709  }
711  //**********************************************************************************************
712 
713  //**Subtraction assignment to column-major dense matrices***************************************
726  template< typename MT > // Type of the target dense matrix
728  subAssign( DenseMatrix<MT,true>& lhs, const SMatTSMatSchurExpr& rhs )
729  {
731 
733 
734  BLAZE_INTERNAL_ASSERT( (~lhs).rows() == rhs.rows() , "Invalid number of rows" );
735  BLAZE_INTERNAL_ASSERT( (~lhs).columns() == rhs.columns(), "Invalid number of columns" );
736 
737  // Evaluation of the left-hand side sparse matrix operand
738  const OppositeType_<RT1> A( serial( rhs.lhs_ ) );
739 
740  // Evaluation of the right-hand side sparse matrix operand
741  CT2 B( serial( rhs.rhs_ ) );
742 
743  BLAZE_INTERNAL_ASSERT( A.rows() == rhs.lhs_.rows() , "Invalid number of rows" );
744  BLAZE_INTERNAL_ASSERT( A.columns() == rhs.lhs_.columns(), "Invalid number of columns" );
745  BLAZE_INTERNAL_ASSERT( B.rows() == rhs.rhs_.rows() , "Invalid number of rows" );
746  BLAZE_INTERNAL_ASSERT( B.columns() == rhs.rhs_.columns(), "Invalid number of columns" );
747  BLAZE_INTERNAL_ASSERT( A.rows() == (~lhs).rows() , "Invalid number of rows" );
748  BLAZE_INTERNAL_ASSERT( A.columns() == (~lhs).columns() , "Invalid number of columns" );
749 
750  subAssign( ~lhs, A % B );
751  }
753  //**********************************************************************************************
754 
755  //**Restructuring subtraction assignment to row-major matrices**********************************
768  template< typename MT > // Type of the target sparse matrix
770  subAssign( Matrix<MT,false>& lhs, const SMatTSMatSchurExpr& rhs )
771  {
773 
774  BLAZE_INTERNAL_ASSERT( (~lhs).rows() == rhs.rows() , "Invalid number of rows" );
775  BLAZE_INTERNAL_ASSERT( (~lhs).columns() == rhs.columns(), "Invalid number of columns" );
776 
777  subAssign( ~lhs, rhs.lhs_ % trans( rhs.rhs_ ) );
778  }
780  //**********************************************************************************************
781 
782  //**Restructuring subtraction assignment to column-major matrices*******************************
795  template< typename MT > // Type of the target sparse matrix
797  subAssign( Matrix<MT,true>& lhs, const SMatTSMatSchurExpr& rhs )
798  {
800 
802 
803  BLAZE_INTERNAL_ASSERT( (~lhs).rows() == rhs.rows() , "Invalid number of rows" );
804  BLAZE_INTERNAL_ASSERT( (~lhs).columns() == rhs.columns(), "Invalid number of columns" );
805 
806  subAssign( ~lhs, trans( rhs.lhs_ ) % rhs.rhs_ );
807  }
809  //**********************************************************************************************
810 
811  //**Subtraction assignment to sparse matrices***************************************************
812  // No special implementation for the subtraction assignment to sparse matrices.
813  //**********************************************************************************************
814 
815  //**Schur product assignment to row-major dense matrices****************************************
828  template< typename MT > // Type of the target dense matrix
830  schurAssign( DenseMatrix<MT,false>& lhs, const SMatTSMatSchurExpr& rhs )
831  {
833 
834  BLAZE_INTERNAL_ASSERT( (~lhs).rows() == rhs.rows() , "Invalid number of rows" );
835  BLAZE_INTERNAL_ASSERT( (~lhs).columns() == rhs.columns(), "Invalid number of columns" );
836 
837  // Evaluation of the left-hand side sparse matrix operand
838  CT1 A( serial( rhs.lhs_ ) );
839 
840  // Evaluation of the right-hand side sparse matrix operand
841  const OppositeType_<RT2> B( serial( rhs.rhs_ ) );
842 
843  BLAZE_INTERNAL_ASSERT( A.rows() == rhs.lhs_.rows() , "Invalid number of rows" );
844  BLAZE_INTERNAL_ASSERT( A.columns() == rhs.lhs_.columns(), "Invalid number of columns" );
845  BLAZE_INTERNAL_ASSERT( B.rows() == rhs.rhs_.rows() , "Invalid number of rows" );
846  BLAZE_INTERNAL_ASSERT( B.columns() == rhs.rhs_.columns(), "Invalid number of columns" );
847  BLAZE_INTERNAL_ASSERT( A.rows() == (~lhs).rows() , "Invalid number of rows" );
848  BLAZE_INTERNAL_ASSERT( A.columns() == (~lhs).columns() , "Invalid number of columns" );
849 
850  schurAssign( ~lhs, A % B );
851  }
853  //**********************************************************************************************
854 
855  //**Schur product assignment to column-major dense matrices*************************************
868  template< typename MT > // Type of the target dense matrix
870  schurAssign( DenseMatrix<MT,true>& lhs, const SMatTSMatSchurExpr& rhs )
871  {
873 
875 
876  BLAZE_INTERNAL_ASSERT( (~lhs).rows() == rhs.rows() , "Invalid number of rows" );
877  BLAZE_INTERNAL_ASSERT( (~lhs).columns() == rhs.columns(), "Invalid number of columns" );
878 
879  // Evaluation of the left-hand side sparse matrix operand
880  const OppositeType_<RT1> A( serial( rhs.lhs_ ) );
881 
882  // Evaluation of the right-hand side sparse matrix operand
883  CT2 B( serial( rhs.rhs_ ) );
884 
885  BLAZE_INTERNAL_ASSERT( A.rows() == rhs.lhs_.rows() , "Invalid number of rows" );
886  BLAZE_INTERNAL_ASSERT( A.columns() == rhs.lhs_.columns(), "Invalid number of columns" );
887  BLAZE_INTERNAL_ASSERT( B.rows() == rhs.rhs_.rows() , "Invalid number of rows" );
888  BLAZE_INTERNAL_ASSERT( B.columns() == rhs.rhs_.columns(), "Invalid number of columns" );
889  BLAZE_INTERNAL_ASSERT( A.rows() == (~lhs).rows() , "Invalid number of rows" );
890  BLAZE_INTERNAL_ASSERT( A.columns() == (~lhs).columns() , "Invalid number of columns" );
891 
892  schurAssign( ~lhs, A % B );
893  }
895  //**********************************************************************************************
896 
897  //**Restructuring Schur product assignment to row-major matrices********************************
910  template< typename MT > // Type of the target sparse matrix
912  schurAssign( Matrix<MT,false>& lhs, const SMatTSMatSchurExpr& rhs )
913  {
915 
916  BLAZE_INTERNAL_ASSERT( (~lhs).rows() == rhs.rows() , "Invalid number of rows" );
917  BLAZE_INTERNAL_ASSERT( (~lhs).columns() == rhs.columns(), "Invalid number of columns" );
918 
919  schurAssign( ~lhs, rhs.lhs_ % trans( rhs.rhs_ ) );
920  }
922  //**********************************************************************************************
923 
924  //**Restructuring Schur product assignment to column-major matrices*****************************
937  template< typename MT > // Type of the target sparse matrix
939  schurAssign( Matrix<MT,true>& lhs, const SMatTSMatSchurExpr& rhs )
940  {
942 
944 
945  BLAZE_INTERNAL_ASSERT( (~lhs).rows() == rhs.rows() , "Invalid number of rows" );
946  BLAZE_INTERNAL_ASSERT( (~lhs).columns() == rhs.columns(), "Invalid number of columns" );
947 
948  schurAssign( ~lhs, trans( rhs.lhs_ ) % rhs.rhs_ );
949  }
951  //**********************************************************************************************
952 
953  //**Multiplication assignment to dense matrices*************************************************
954  // No special implementation for the multiplication assignment to dense matrices.
955  //**********************************************************************************************
956 
957  //**Multiplication assignment to sparse matrices************************************************
958  // No special implementation for the multiplication assignment to sparse matrices.
959  //**********************************************************************************************
960 
961  //**SMP assignment to dense matrices************************************************************
962  // No special implementation for the SMP assignment to dense matrices.
963  //**********************************************************************************************
964 
965  //**SMP assignment to sparse matrices***********************************************************
966  // No special implementation for the SMP assignment to sparse matrices.
967  //**********************************************************************************************
968 
969  //**SMP addition assignment to dense matrices***************************************************
970  // No special implementation for the SMP addition assignment to dense matrices.
971  //**********************************************************************************************
972 
973  //**SMP addition assignment to sparse matrices**************************************************
974  // No special implementation for the SMP addition assignment to sparse matrices.
975  //**********************************************************************************************
976 
977  //**SMP subtraction assignment to dense matrices************************************************
978  // No special implementation for the SMP subtraction assignment to dense matrices.
979  //**********************************************************************************************
980 
981  //**SMP subtraction assignment to sparse matrices***********************************************
982  // No special implementation for the SMP subtraction assignment to sparse matrices.
983  //**********************************************************************************************
984 
985  //**SMP Schur product assignment to dense matrices**********************************************
998  template< typename MT // Type of the target dense matrix
999  , bool SO > // Storage order of the target dense matrix
1000  friend inline void smpSchurAssign( DenseMatrix<MT,SO>& lhs, const SMatTSMatSchurExpr& rhs )
1001  {
1003 
1004  BLAZE_INTERNAL_ASSERT( (~lhs).rows() == rhs.rows() , "Invalid number of rows" );
1005  BLAZE_INTERNAL_ASSERT( (~lhs).columns() == rhs.columns(), "Invalid number of columns" );
1006 
1007  smpSchurAssign( ~lhs, rhs.lhs_ );
1008  smpSchurAssign( ~lhs, rhs.rhs_ );
1009  }
1011  //**********************************************************************************************
1012 
1013  //**SMP Schur product assignment to sparse matrices*********************************************
1014  // No special implementation for the SMP Schur product assignment to sparse matrices.
1015  //**********************************************************************************************
1016 
1017  //**SMP multiplication assignment to dense matrices*********************************************
1018  // No special implementation for the SMP multiplication assignment to dense matrices.
1019  //**********************************************************************************************
1020 
1021  //**SMP multiplication assignment to sparse matrices********************************************
1022  // No special implementation for the SMP multiplication assignment to sparse matrices.
1023  //**********************************************************************************************
1024 
1025  //**Compile time checks*************************************************************************
1033  //**********************************************************************************************
1034 };
1035 //*************************************************************************************************
1036 
1037 
1038 
1039 
1040 //=================================================================================================
1041 //
1042 // GLOBAL BINARY ARITHMETIC OPERATORS
1043 //
1044 //=================================================================================================
1045 
1046 //*************************************************************************************************
1059 template< typename MT1 // Type of the left-hand side sparse matrix
1060  , typename MT2 // Type of the right-hand side sparse matrix
1063 inline const SMatTSMatSchurExpr<MT1,MT2>
1064  smattsmatschur( const SparseMatrix<MT1,false>& lhs, const SparseMatrix<MT2,true>& rhs )
1065 {
1067 
1068  BLAZE_INTERNAL_ASSERT( (~lhs).rows() == (~rhs).rows() , "Invalid number of rows" );
1069  BLAZE_INTERNAL_ASSERT( (~lhs).columns() == (~rhs).columns(), "Invalid number of columns" );
1070 
1071  return SMatTSMatSchurExpr<MT1,MT2>( ~lhs, ~rhs );
1072 }
1074 //*************************************************************************************************
1075 
1076 
1077 //*************************************************************************************************
1090 template< typename MT1 // Type of the left-hand side sparse matrix
1091  , typename MT2 // Type of the right-hand side sparse matrix
1092  , typename = EnableIf_< Or< And< IsUniLower<MT1>, IsUniUpper<MT2> >
1093  , And< IsUniUpper<MT1>, IsUniLower<MT2> > > > >
1095  smattsmatschur( const SparseMatrix<MT1,false>& lhs, const SparseMatrix<MT2,true>& rhs )
1096 {
1098 
1099  UNUSED_PARAMETER( rhs );
1100 
1101  BLAZE_INTERNAL_ASSERT( (~lhs).rows() == (~rhs).rows() , "Invalid number of rows" );
1102  BLAZE_INTERNAL_ASSERT( (~lhs).columns() == (~rhs).columns(), "Invalid number of columns" );
1103 
1104  return IdentityMatrix< MultTrait_< ElementType_<MT1>, ElementType_<MT2> >, false >( (~lhs).rows() );
1105 }
1107 //*************************************************************************************************
1108 
1109 
1110 //*************************************************************************************************
1139 template< typename MT1 // Type of the left-hand side sparse matrix
1140  , typename MT2 > // Type of the right-hand side sparse matrix
1141 inline decltype(auto)
1142  operator%( const SparseMatrix<MT1,false>& lhs, const SparseMatrix<MT2,true>& rhs )
1143 {
1145 
1146  if( (~lhs).rows() != (~rhs).rows() || (~lhs).columns() != (~rhs).columns() ) {
1147  BLAZE_THROW_INVALID_ARGUMENT( "Matrix sizes do not match" );
1148  }
1149 
1150  return smattsmatschur( ~lhs, ~rhs );
1151 }
1152 //*************************************************************************************************
1153 
1154 
1155 
1156 
1157 //=================================================================================================
1158 //
1159 // SIZE SPECIALIZATIONS
1160 //
1161 //=================================================================================================
1162 
1163 //*************************************************************************************************
1165 template< typename MT1, typename MT2 >
1166 struct Size< SMatTSMatSchurExpr<MT1,MT2>, 0UL >
1167  : public Maximum< Size<MT1,0UL>, Size<MT2,0UL> >
1168 {};
1169 
1170 template< typename MT1, typename MT2 >
1171 struct Size< SMatTSMatSchurExpr<MT1,MT2>, 1UL >
1172  : public Maximum< Size<MT1,1UL>, Size<MT2,1UL> >
1173 {};
1175 //*************************************************************************************************
1176 
1177 
1178 
1179 
1180 //=================================================================================================
1181 //
1182 // ISSYMMETRIC SPECIALIZATIONS
1183 //
1184 //=================================================================================================
1185 
1186 //*************************************************************************************************
1188 template< typename MT1, typename MT2 >
1189 struct IsSymmetric< SMatTSMatSchurExpr<MT1,MT2> >
1190  : public And< IsSymmetric<MT1>, IsSymmetric<MT2> >
1191 {};
1193 //*************************************************************************************************
1194 
1195 
1196 
1197 
1198 //=================================================================================================
1199 //
1200 // ISHERMITIAN SPECIALIZATIONS
1201 //
1202 //=================================================================================================
1203 
1204 //*************************************************************************************************
1206 template< typename MT1, typename MT2 >
1207 struct IsHermitian< SMatTSMatSchurExpr<MT1,MT2> >
1208  : public And< IsHermitian<MT1>, IsHermitian<MT2> >
1209 {};
1211 //*************************************************************************************************
1212 
1213 
1214 
1215 
1216 //=================================================================================================
1217 //
1218 // ISLOWER SPECIALIZATIONS
1219 //
1220 //=================================================================================================
1221 
1222 //*************************************************************************************************
1224 template< typename MT1, typename MT2 >
1225 struct IsLower< SMatTSMatSchurExpr<MT1,MT2> >
1226  : public Or< IsLower<MT1>, IsLower<MT2> >
1227 {};
1229 //*************************************************************************************************
1230 
1231 
1232 
1233 
1234 //=================================================================================================
1235 //
1236 // ISUNILOWER SPECIALIZATIONS
1237 //
1238 //=================================================================================================
1239 
1240 //*************************************************************************************************
1242 template< typename MT1, typename MT2 >
1243 struct IsUniLower< SMatTSMatSchurExpr<MT1,MT2> >
1244  : public And< IsUniLower<MT1>, IsUniLower<MT2> >
1245 {};
1247 //*************************************************************************************************
1248 
1249 
1250 
1251 
1252 //=================================================================================================
1253 //
1254 // ISSTRICTLYLOWER SPECIALIZATIONS
1255 //
1256 //=================================================================================================
1257 
1258 //*************************************************************************************************
1260 template< typename MT1, typename MT2 >
1261 struct IsStrictlyLower< SMatTSMatSchurExpr<MT1,MT2> >
1262  : public Or< IsStrictlyLower<MT1>, IsStrictlyLower<MT2> >
1263 {};
1265 //*************************************************************************************************
1266 
1267 
1268 
1269 
1270 //=================================================================================================
1271 //
1272 // ISUPPER SPECIALIZATIONS
1273 //
1274 //=================================================================================================
1275 
1276 //*************************************************************************************************
1278 template< typename MT1, typename MT2 >
1279 struct IsUpper< SMatTSMatSchurExpr<MT1,MT2> >
1280  : public Or< IsUpper<MT1>, IsUpper<MT2> >
1281 {};
1283 //*************************************************************************************************
1284 
1285 
1286 
1287 
1288 //=================================================================================================
1289 //
1290 // ISUNIUPPER SPECIALIZATIONS
1291 //
1292 //=================================================================================================
1293 
1294 //*************************************************************************************************
1296 template< typename MT1, typename MT2 >
1297 struct IsUniUpper< SMatTSMatSchurExpr<MT1,MT2> >
1298  : public And< IsUniUpper<MT1>, IsUniUpper<MT2> >
1299 {};
1301 //*************************************************************************************************
1302 
1303 
1304 
1305 
1306 //=================================================================================================
1307 //
1308 // ISSTRICTLYUPPER SPECIALIZATIONS
1309 //
1310 //=================================================================================================
1311 
1312 //*************************************************************************************************
1314 template< typename MT1, typename MT2 >
1315 struct IsStrictlyUpper< SMatTSMatSchurExpr<MT1,MT2> >
1316  : public Or< IsStrictlyUpper<MT1>, IsStrictlyUpper<MT2> >
1317 {};
1319 //*************************************************************************************************
1320 
1321 } // namespace blaze
1322 
1323 #endif
#define BLAZE_THROW_INVALID_ARGUMENT(MESSAGE)
Macro for the emission of a std::invalid_argument exception.This macro encapsulates the default way o...
Definition: Exception.h:235
Header file for auxiliary alias declarations.
Headerfile for the generic min algorithm.
bool isAliased(const T *alias) const noexcept
Returns whether the expression is aliased with the given address alias.
Definition: SMatTSMatSchurExpr.h:300
Header file for the Schur product trait.
Compile time check whether the given type is a temporary vector or matrix type.This type trait class ...
Definition: IsTemporary.h:69
Header file for the UNUSED_PARAMETER function template.
Header file for the IsUniUpper type trait.
EnableIf_< IsDenseMatrix< MT1 > > smpSchurAssign(Matrix< MT1, SO1 > &lhs, const Matrix< MT2, SO2 > &rhs)
Default implementation of the SMP Schur product assignment of a matrix to dense matrix.
Definition: DenseMatrix.h:196
RightOperand rightOperand() const noexcept
Returns the right-hand side transpose sparse matrix operand.
Definition: SMatTSMatSchurExpr.h:276
Header file for basic type definitions.
ReturnType_< MT2 > RN2
Return type of the right-hand side sparse matrix expression.
Definition: SMatTSMatSchurExpr.h:112
Header file for the serial shim.
size_t rows() const noexcept
Returns the current number of rows of the matrix.
Definition: SMatTSMatSchurExpr.h:225
ReturnType operator()(size_t i, size_t j) const
2D-access to the matrix elements.
Definition: SMatTSMatSchurExpr.h:194
typename DisableIf< Condition, T >::Type DisableIf_
Auxiliary type for the DisableIf class template.The DisableIf_ alias declaration provides a convenien...
Definition: DisableIf.h:224
Header file for the And class template.
const ElementType_< MT > min(const DenseMatrix< MT, SO > &dm)
Returns the smallest element of the dense matrix.
Definition: DenseMatrix.h:1903
Compile time value evaluation.The Maximum alias declaration selects the larger of the two given templ...
Definition: Maximum.h:73
ElementType_< ResultType > ElementType
Resulting element type.
Definition: SMatTSMatSchurExpr.h:152
Compile time check for lower triangular matrices.This type trait tests whether or not the given templ...
Definition: IsLower.h:87
Header file for the Computation base class.
Compile time check for upper triangular matrices.This type trait tests whether or not the given templ...
Definition: IsUpper.h:87
Constraints on the storage order of matrix types.
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
#define BLAZE_CONSTRAINT_MUST_FORM_VALID_SCHUREXPR(T1, T2)
Constraint on the data type.In case the given data types T1 and T2 do not form a valid matrix/matrix ...
Definition: SchurExpr.h:107
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
Header file for all forward declarations for sparse vectors and matrices.
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
Header file for the SparseMatrix base class.
Constraint on the data type.
Header file for the Maximum class template.
typename MultExprTrait< T1, T2 >::Type MultExprTrait_
Auxiliary alias declaration for the MultExprTrait class template.The MultExprTrait_ alias declaration...
Definition: MultExprTrait.h:112
Header file for the MultExprTrait class template.
typename T::CompositeType CompositeType_
Alias declaration for nested CompositeType type definitions.The CompositeType_ alias declaration prov...
Definition: Aliases.h:83
CompositeType_< MT2 > CT2
Composite type of the right-hand side sparse matrix expression.
Definition: SMatTSMatSchurExpr.h:114
TransposeType_< ResultType > TransposeType
Transpose type for expression template evaluations.
Definition: SMatTSMatSchurExpr.h:151
CompositeType_< MT1 > CT1
Composite type of the left-hand side sparse matrix expression.
Definition: SMatTSMatSchurExpr.h:113
Compile time check for upper unitriangular matrices.This type trait tests whether or not the given te...
Definition: IsUniUpper.h:86
Efficient implementation of an identity matrix.The IdentityMatrix class template is the representati...
Definition: Forward.h:49
Header file for the DisableIf class template.
Header file for the IsTemporary type trait class.
Header file for the multiplication trait.
Header file for the IsStrictlyUpper type trait.
Header file for the IsSymmetric type trait.
Namespace of the Blaze C++ math library.
Definition: Blaze.h:58
Header file for the If class template.
#define BLAZE_CONSTRAINT_MUST_BE_COLUMN_MAJOR_MATRIX_TYPE(T)
Constraint on the data type.In case the given data type T is not a column-major dense or sparse matri...
Definition: ColumnMajorMatrix.h:61
size_t nonZeros() const
Returns the number of non-zero elements in the sparse matrix.
Definition: SMatTSMatSchurExpr.h:245
Header file for the Or class template.
#define BLAZE_THROW_OUT_OF_RANGE(MESSAGE)
Macro for the emission of a std::out_of_range exception.This macro encapsulates the default way of Bl...
Definition: Exception.h:331
typename T::ElementType ElementType_
Alias declaration for nested ElementType type definitions.The ElementType_ alias declaration provides...
Definition: Aliases.h:163
Header file for the IsLower type trait.
typename SchurTrait< T1, T2 >::Type SchurTrait_
Auxiliary alias declaration for the SchurTrait class template.The SchurTrait_ alias declaration provi...
Definition: SchurTrait.h:208
If_< IsExpression< MT2 >, const MT2, const MT2 &> RightOperand
Composite type of the right-hand side sparse matrix expression.
Definition: SMatTSMatSchurExpr.h:164
Constraints on the storage order of matrix types.
bool canAlias(const T *alias) const noexcept
Returns whether the expression can alias with the given address alias.
Definition: SMatTSMatSchurExpr.h:288
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
Expression object for sparse matrix-transpose sparse matrix Schur product.The SMatTSMatSchurExpr clas...
Definition: Forward.h:127
Header file for all forward declarations for expression class templates.
Header file for the EnableIf class template.
Header file for the IsStrictlyLower type trait.
SchurTrait_< RT1, RT2 > ResultType
Result type for expression template evaluations.
Definition: SMatTSMatSchurExpr.h:149
ResultType_< MT1 > RT1
Result type of the left-hand side sparse matrix expression.
Definition: SMatTSMatSchurExpr.h:109
#define BLAZE_CONSTRAINT_MATRICES_MUST_HAVE_DIFFERENT_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:106
Compile time check for lower unitriangular matrices.This type trait tests whether or not the given te...
Definition: IsUniLower.h:86
#define BLAZE_CONSTRAINT_MUST_NOT_BE_SYMMETRIC_MATRIX_TYPE(T)
Constraint on the data type.In case the given data type T is a symmetric matrix type, a compilation error is created.
Definition: Symmetric.h:79
#define BLAZE_CONSTRAINT_MUST_BE_ROW_MAJOR_MATRIX_TYPE(T)
Constraint on the data type.In case the given data type T is not a row-major dense or sparse matrix t...
Definition: RowMajorMatrix.h:61
ReturnType_< MT1 > RN1
Return type of the left-hand side sparse matrix expression.
Definition: SMatTSMatSchurExpr.h:111
Header file for run time assertion macros.
RightOperand rhs_
Right-hand side sparse matrix of the Schur product expression.
Definition: SMatTSMatSchurExpr.h:308
ResultType_< MT2 > RT2
Result type of the right-hand side sparse matrix expression.
Definition: SMatTSMatSchurExpr.h:110
size_t nonZeros(size_t i) const
Returns the number of non-zero elements in the specified row.
Definition: SMatTSMatSchurExpr.h:256
Header file for the SchurExpr base class.
typename If< T1, T2, T3 >::Type If_
Auxiliary alias declaration for the If class template.The If_ alias declaration provides a convenient...
Definition: If.h:154
#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 check for Hermitian matrices.This type trait tests whether or not the given template par...
Definition: IsHermitian.h:85
Base class for matrices.The Matrix class is a base class for all dense and sparse matrix classes with...
Definition: Forward.h:101
Constraint on the data type.
Constraints on the storage order of matrix types.
decltype(auto) serial(const DenseMatrix< MT, SO > &dm)
Forces the serial evaluation of the given dense matrix expression dm.
Definition: DMatSerialExpr.h:816
ReturnType at(size_t i, size_t j) const
Checked access to the matrix elements.
Definition: SMatTSMatSchurExpr.h:209
LeftOperand lhs_
Left-hand side sparse matrix of the Schur product expression.
Definition: SMatTSMatSchurExpr.h:307
Header file for the RemoveReference type trait.
typename EnableIf< Condition, T >::Type EnableIf_
Auxiliary alias declaration for the EnableIf class template.The EnableIf_ alias declaration provides ...
Definition: EnableIf.h:224
LeftOperand leftOperand() const noexcept
Returns the left-hand side sparse matrix operand.
Definition: SMatTSMatSchurExpr.h:266
typename T::OppositeType OppositeType_
Alias declaration for nested OppositeType type definitions.The OppositeType_ alias declaration provid...
Definition: Aliases.h:263
Compile time check for strictly lower triangular matrices.This type trait tests whether or not the gi...
Definition: IsStrictlyLower.h:86
SMatTSMatSchurExpr(const MT1 &lhs, const MT2 &rhs) noexcept
Constructor for the SMatTSMatSchurExpr class.
Definition: SMatTSMatSchurExpr.h:178
decltype(auto) trans(const DenseMatrix< MT, SO > &dm)
Calculation of the transpose of the given dense matrix.
Definition: DMatTransExpr.h:789
Header file for the IsComputation type trait class.
If_< IsExpression< MT1 >, const MT1, const MT1 &> LeftOperand
Composite type of the left-hand side sparse matrix expression.
Definition: SMatTSMatSchurExpr.h:161
Compile time logical &#39;or&#39; evaluation.The Or alias declaration performs at compile time a logical &#39;or&#39;...
Definition: Or.h:76
size_t columns() const noexcept
Returns the current number of columns of the matrix.
Definition: SMatTSMatSchurExpr.h:235
Compile time evaluation of the size of vectors and matrices.The Size type trait evaluates the size of...
Definition: Size.h:80
MultExprTrait_< RN1, RN2 > ExprReturnType
Expression return type for the subscript operator.
Definition: SMatTSMatSchurExpr.h:127
const IfTrue_< returnExpr, ExprReturnType, ElementType > ReturnType
Return type for expression template evaluations.
Definition: SMatTSMatSchurExpr.h:155
Compile time logical &#39;and&#39; evaluation.The And alias declaration performs at compile time a logical &#39;a...
Definition: And.h:76
typename T::TransposeType TransposeType_
Alias declaration for nested TransposeType type definitions.The TransposeType_ alias declaration prov...
Definition: Aliases.h:423
Header file for the IsUpper type trait.
void UNUSED_PARAMETER(const Args &...)
Suppression of unused parameter warnings.
Definition: Unused.h:81
Header file for the IsHermitian type trait.
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
#define BLAZE_CONSTRAINT_MUST_BE_SPARSE_MATRIX_TYPE(T)
Constraint on the data type.In case the given data type T is not a sparse, N-dimensional matrix type...
Definition: SparseMatrix.h:61
OppositeType_< ResultType > OppositeType
Result type with opposite storage order for expression template evaluations.
Definition: SMatTSMatSchurExpr.h:150
const ResultType CompositeType
Data type for composite expression templates.
Definition: SMatTSMatSchurExpr.h:158
Header file for the IsExpression type trait class.
Header file for the function trace functionality.
Constraint on the data type.