Blaze 3.9
SMatTDMatSubExpr.h
Go to the documentation of this file.
1//=================================================================================================
33//=================================================================================================
34
35#ifndef _BLAZE_MATH_EXPRESSIONS_SMATTDMATSUBEXPR_H_
36#define _BLAZE_MATH_EXPRESSIONS_SMATTDMATSUBEXPR_H_
37
38
39//*************************************************************************************************
40// Includes
41//*************************************************************************************************
42
43#include <utility>
44#include <blaze/math/Aliases.h>
62#include <blaze/util/Assert.h>
63#include <blaze/util/EnableIf.h>
67#include <blaze/util/mpl/If.h>
68#include <blaze/util/Types.h>
70
71
72namespace blaze {
73
74//=================================================================================================
75//
76// CLASS SMATTDMATSUBEXPR
77//
78//=================================================================================================
79
80//*************************************************************************************************
87template< typename MT1 // Type of the left-hand side sparse matrix
88 , typename MT2 > // Type of the right-hand side dense matrix
90 : public MatMatSubExpr< DenseMatrix< SMatTDMatSubExpr<MT1,MT2>, true > >
91 , private Computation
92{
93 private:
94 //**Type definitions****************************************************************************
99 //**********************************************************************************************
100
101 //**Return type evaluation**********************************************************************
103
108 static constexpr bool returnExpr = !IsTemporary_v<RN1> && !IsTemporary_v<RN2>;
109
111 using ExprReturnType = decltype( std::declval<RN1>() - std::declval<RN2>() );
112 //**********************************************************************************************
113
114 //**Parallel evaluation strategy****************************************************************
116
121 template< typename MT >
122 static constexpr bool UseSMPAssign_v = ( !MT1::smpAssignable || !MT2::smpAssignable );
124 //**********************************************************************************************
125
126 public:
127 //**Type definitions****************************************************************************
130
133
138
141
144
146 using LeftOperand = If_t< IsExpression_v<MT1>, const MT1, const MT1& >;
147
149 using RightOperand = If_t< IsExpression_v<MT2>, const MT2, const MT2& >;
150 //**********************************************************************************************
151
152 //**Compilation flags***************************************************************************
154 static constexpr bool simdEnabled = false;
155
157 static constexpr bool smpAssignable = false;
158 //**********************************************************************************************
159
160 //**Constructor*********************************************************************************
166 inline SMatTDMatSubExpr( const MT1& lhs, const MT2& rhs ) noexcept
167 : lhs_( lhs ) // Left-hand side sparse matrix of the subtraction expression
168 , rhs_( rhs ) // Right-hand side dense matrix of the subtraction expression
169 {
170 BLAZE_INTERNAL_ASSERT( lhs.rows() == rhs.rows() , "Invalid number of rows" );
171 BLAZE_INTERNAL_ASSERT( lhs.columns() == rhs.columns(), "Invalid number of columns" );
172 }
173 //**********************************************************************************************
174
175 //**Access operator*****************************************************************************
182 inline ReturnType operator()( size_t i, size_t j ) const {
183 BLAZE_INTERNAL_ASSERT( i < lhs_.rows() , "Invalid row access index" );
184 BLAZE_INTERNAL_ASSERT( j < lhs_.columns(), "Invalid column access index" );
185 return lhs_(i,j) - rhs_(i,j);
186 }
187 //**********************************************************************************************
188
189 //**At function*********************************************************************************
197 inline ReturnType at( size_t i, size_t j ) const {
198 if( i >= lhs_.rows() ) {
199 BLAZE_THROW_OUT_OF_RANGE( "Invalid row access index" );
200 }
201 if( j >= lhs_.columns() ) {
202 BLAZE_THROW_OUT_OF_RANGE( "Invalid column access index" );
203 }
204 return (*this)(i,j);
205 }
206 //**********************************************************************************************
207
208 //**Rows function*******************************************************************************
213 inline size_t rows() const noexcept {
214 return lhs_.rows();
215 }
216 //**********************************************************************************************
217
218 //**Columns function****************************************************************************
223 inline size_t columns() const noexcept {
224 return lhs_.columns();
225 }
226 //**********************************************************************************************
227
228 //**Left operand access*************************************************************************
233 inline LeftOperand leftOperand() const noexcept {
234 return lhs_;
235 }
236 //**********************************************************************************************
237
238 //**Right operand access************************************************************************
243 inline RightOperand rightOperand() const noexcept {
244 return rhs_;
245 }
246 //**********************************************************************************************
247
248 //**********************************************************************************************
254 template< typename T >
255 inline bool canAlias( const T* alias ) const noexcept {
256 return ( lhs_.canAlias( alias ) ) ||
257 ( IsExpression_v<MT2> && rhs_.canAlias( alias ) );
258 }
259 //**********************************************************************************************
260
261 //**********************************************************************************************
267 template< typename T >
268 inline bool isAliased( const T* alias ) const noexcept {
269 return lhs_.isAliased( alias ) && rhs_.isAliased( alias );
270 }
271 //**********************************************************************************************
272
273 private:
274 //**Member variables****************************************************************************
277 //**********************************************************************************************
278
279 //**Assignment to dense matrices****************************************************************
291 template< typename MT // Type of the target dense matrix
292 , bool SO2 > // Storage order of the target dense matrix
293 friend inline void assign( DenseMatrix<MT,SO2>& lhs, const SMatTDMatSubExpr& rhs )
294 {
296
297 BLAZE_INTERNAL_ASSERT( (*lhs).rows() == rhs.rows() , "Invalid number of rows" );
298 BLAZE_INTERNAL_ASSERT( (*lhs).columns() == rhs.columns(), "Invalid number of columns" );
299
300 assign ( *lhs, -rhs.rhs_ );
301 addAssign( *lhs, rhs.lhs_ );
302 }
304 //**********************************************************************************************
305
306 //**Assignment to sparse matrices***************************************************************
318 template< typename MT // Type of the target sparse matrix
319 , bool SO2 > // Storage order of the target sparse matrix
320 friend inline void assign( SparseMatrix<MT,SO2>& lhs, const SMatTDMatSubExpr& rhs )
321 {
323
325
332
333 BLAZE_INTERNAL_ASSERT( (*lhs).rows() == rhs.rows() , "Invalid number of rows" );
334 BLAZE_INTERNAL_ASSERT( (*lhs).columns() == rhs.columns(), "Invalid number of columns" );
335
336 const TmpType tmp( serial( rhs ) );
337 assign( *lhs, tmp );
338 }
340 //**********************************************************************************************
341
342 //**Addition assignment to dense matrices*******************************************************
355 template< typename MT // Type of the target dense matrix
356 , bool SO2 > // Storage order of the target dense matrix
357 friend inline void addAssign( DenseMatrix<MT,SO2>& lhs, const SMatTDMatSubExpr& rhs )
358 {
360
361 BLAZE_INTERNAL_ASSERT( (*lhs).rows() == rhs.rows() , "Invalid number of rows" );
362 BLAZE_INTERNAL_ASSERT( (*lhs).columns() == rhs.columns(), "Invalid number of columns" );
363
364 subAssign( *lhs, rhs.rhs_ );
365 addAssign( *lhs, rhs.lhs_ );
366 }
368 //**********************************************************************************************
369
370 //**Addition assignment to sparse matrices******************************************************
371 // No special implementation for the addition assignment to sparse matrices.
372 //**********************************************************************************************
373
374 //**Subtraction assignment to dense matrices****************************************************
387 template< typename MT // Type of the target dense matrix
388 , bool SO2 > // Storage order of the target dense matrix
389 friend inline void subAssign( DenseMatrix<MT,SO2>& lhs, const SMatTDMatSubExpr& rhs )
390 {
392
393 BLAZE_INTERNAL_ASSERT( (*lhs).rows() == rhs.rows() , "Invalid number of rows" );
394 BLAZE_INTERNAL_ASSERT( (*lhs).columns() == rhs.columns(), "Invalid number of columns" );
395
396 addAssign( *lhs, rhs.rhs_ );
397 subAssign( *lhs, rhs.lhs_ );
398 }
400 //**********************************************************************************************
401
402 //**Subtraction assignment to sparse matrices***************************************************
403 // No special implementation for the subtraction assignment to sparse matrices.
404 //**********************************************************************************************
405
406 //**Schur product assignment to dense matrices**************************************************
419 template< typename MT // Type of the target dense matrix
420 , bool SO2 > // Storage order of the target dense matrix
421 friend inline void schurAssign( DenseMatrix<MT,SO2>& lhs, const SMatTDMatSubExpr& rhs )
422 {
424
428
429 BLAZE_INTERNAL_ASSERT( (*lhs).rows() == rhs.rows() , "Invalid number of rows" );
430 BLAZE_INTERNAL_ASSERT( (*lhs).columns() == rhs.columns(), "Invalid number of columns" );
431
432 const ResultType tmp( serial( rhs ) );
433 schurAssign( *lhs, tmp );
434 }
436 //**********************************************************************************************
437
438 //**Schur product assignment to sparse matrices*************************************************
439 // No special implementation for the Schur product assignment to sparse matrices.
440 //**********************************************************************************************
441
442 //**Multiplication assignment to dense matrices*************************************************
443 // No special implementation for the multiplication assignment to dense matrices.
444 //**********************************************************************************************
445
446 //**Multiplication assignment to sparse matrices************************************************
447 // No special implementation for the multiplication assignment to sparse matrices.
448 //**********************************************************************************************
449
450 //**SMP assignment to dense matrices************************************************************
464 template< typename MT // Type of the target dense matrix
465 , bool SO2 > // Storage order of the target dense matrix
466 friend inline auto smpAssign( DenseMatrix<MT,SO2>& lhs, const SMatTDMatSubExpr& rhs )
467 -> EnableIf_t< UseSMPAssign_v<MT> >
468 {
470
471 BLAZE_INTERNAL_ASSERT( (*lhs).rows() == rhs.rows() , "Invalid number of rows" );
472 BLAZE_INTERNAL_ASSERT( (*lhs).columns() == rhs.columns(), "Invalid number of columns" );
473
474 smpAssign ( *lhs, -rhs.rhs_ );
475 smpAddAssign( *lhs, rhs.lhs_ );
476 }
478 //**********************************************************************************************
479
480 //**SMP assignment to sparse matrices***********************************************************
494 template< typename MT // Type of the target sparse matrix
495 , bool SO2 > // Storage order of the target sparse matrix
496 friend inline auto smpAssign( SparseMatrix<MT,SO2>& lhs, const SMatTDMatSubExpr& rhs )
497 -> EnableIf_t< UseSMPAssign_v<MT> >
498 {
500
501 using TmpType = If_t< SO2, ResultType, OppositeType >;
502
509
510 BLAZE_INTERNAL_ASSERT( (*lhs).rows() == rhs.rows() , "Invalid number of rows" );
511 BLAZE_INTERNAL_ASSERT( (*lhs).columns() == rhs.columns(), "Invalid number of columns" );
512
513 const TmpType tmp( rhs );
514 smpAssign( *lhs, tmp );
515 }
517 //**********************************************************************************************
518
519 //**SMP addition assignment to dense matrices***************************************************
534 template< typename MT // Type of the target dense matrix
535 , bool SO2 > // Storage order of the target dense matrix
536 friend inline auto smpAddAssign( DenseMatrix<MT,SO2>& lhs, const SMatTDMatSubExpr& rhs )
537 -> EnableIf_t< UseSMPAssign_v<MT> >
538 {
540
541 BLAZE_INTERNAL_ASSERT( (*lhs).rows() == rhs.rows() , "Invalid number of rows" );
542 BLAZE_INTERNAL_ASSERT( (*lhs).columns() == rhs.columns(), "Invalid number of columns" );
543
544 smpSubAssign( *lhs, rhs.rhs_ );
545 smpAddAssign( *lhs, rhs.lhs_ );
546 }
548 //**********************************************************************************************
549
550 //**SMP addition assignment to sparse matrices**************************************************
551 // No special implementation for the SMP addition assignment to sparse matrices.
552 //**********************************************************************************************
553
554 //**SMP subtraction assignment to dense matrices************************************************
569 template< typename MT // Type of the target dense matrix
570 , bool SO2 > // Storage order of the target dense matrix
571 friend inline auto smpSubAssign( DenseMatrix<MT,SO2>& lhs, const SMatTDMatSubExpr& rhs )
572 -> EnableIf_t< UseSMPAssign_v<MT> >
573 {
575
576 BLAZE_INTERNAL_ASSERT( (*lhs).rows() == rhs.rows() , "Invalid number of rows" );
577 BLAZE_INTERNAL_ASSERT( (*lhs).columns() == rhs.columns(), "Invalid number of columns" );
578
579 smpAddAssign( *lhs, rhs.rhs_ );
580 smpSubAssign( *lhs, rhs.lhs_ );
581 }
583 //**********************************************************************************************
584
585 //**SMP subtraction assignment to sparse matrices***********************************************
586 // No special implementation for the SMP subtraction assignment to sparse matrices.
587 //**********************************************************************************************
588
589 //**SMP Schur product assignment to dense matrices**********************************************
604 template< typename MT // Type of the target dense matrix
605 , bool SO2 > // Storage order of the target dense matrix
606 friend inline auto smpSchurAssign( DenseMatrix<MT,SO2>& lhs, const SMatTDMatSubExpr& rhs )
607 -> EnableIf_t< UseSMPAssign_v<MT> >
608 {
610
614
615 BLAZE_INTERNAL_ASSERT( (*lhs).rows() == rhs.rows() , "Invalid number of rows" );
616 BLAZE_INTERNAL_ASSERT( (*lhs).columns() == rhs.columns(), "Invalid number of columns" );
617
618 const ResultType tmp( rhs );
619 smpSchurAssign( *lhs, tmp );
620 }
622 //**********************************************************************************************
623
624 //**SMP Schur product assignment to sparse matrices*********************************************
625 // No special implementation for the SMP Schur product assignment to sparse matrices.
626 //**********************************************************************************************
627
628 //**SMP multiplication assignment to dense matrices*********************************************
629 // No special implementation for the SMP multiplication assignment to dense matrices.
630 //**********************************************************************************************
631
632 //**SMP multiplication assignment to sparse matrices********************************************
633 // No special implementation for the SMP multiplication assignment to sparse matrices.
634 //**********************************************************************************************
635
636 //**Compile time checks*************************************************************************
644 //**********************************************************************************************
645};
646//*************************************************************************************************
647
648
649
650
651//=================================================================================================
652//
653// GLOBAL BINARY ARITHMETIC OPERATORS
654//
655//=================================================================================================
656
657//*************************************************************************************************
670template< typename MT1 // Type of the left-hand side sparse matrix
671 , typename MT2 // Type of the right-hand side dense matrix
672 , DisableIf_t< IsZero_v<MT1> &&
673 IsSame_v< ElementType_t<MT1>, ElementType_t<MT2> > >* = nullptr >
674inline const SMatTDMatSubExpr<MT1,MT2>
675 smattdmatsub( const SparseMatrix<MT1,false>& lhs, const DenseMatrix<MT2,true>& rhs )
676{
678
679 BLAZE_INTERNAL_ASSERT( (*lhs).rows() == (*rhs).rows() , "Invalid number of rows" );
680 BLAZE_INTERNAL_ASSERT( (*lhs).columns() == (*rhs).columns(), "Invalid number of columns" );
681
682 return SMatTDMatSubExpr<MT1,MT2>( *lhs, *rhs );
683}
685//*************************************************************************************************
686
687
688//*************************************************************************************************
702template< typename MT1 // Type of the left-hand side sparse matrix
703 , typename MT2 // Type of the right-hand side dense matrix
704 , EnableIf_t< IsZero_v<MT1> &&
705 IsSame_v< ElementType_t<MT1>, ElementType_t<MT2> > >* = nullptr >
706inline decltype(auto)
707 smattdmatsub( const SparseMatrix<MT1,false>& lhs, const DenseMatrix<MT2,true>& rhs )
708{
710
711 MAYBE_UNUSED( lhs );
712
713 BLAZE_INTERNAL_ASSERT( (*lhs).rows() == (*rhs).rows() , "Invalid number of rows" );
714 BLAZE_INTERNAL_ASSERT( (*lhs).columns() == (*rhs).columns(), "Invalid number of columns" );
715
716 return -(*rhs);
717}
719//*************************************************************************************************
720
721
722//*************************************************************************************************
753template< typename MT1 // Type of the left-hand side sparse matrix
754 , typename MT2 > // Type of the right-hand side dense matrix
755inline decltype(auto)
756 operator-( const SparseMatrix<MT1,false>& lhs, const DenseMatrix<MT2,true>& rhs )
757{
759
760 if( (*lhs).rows() != (*rhs).rows() || (*lhs).columns() != (*rhs).columns() ) {
761 BLAZE_THROW_INVALID_ARGUMENT( "Matrix sizes do not match" );
762 }
763
764 return smattdmatsub( *lhs, *rhs );
765}
766//*************************************************************************************************
767
768
769
770
771//=================================================================================================
772//
773// GLOBAL RESTRUCTURING BINARY ARITHMETIC OPERATORS
774//
775//=================================================================================================
776
777//*************************************************************************************************
790template< typename MT1 // Type of the sparse matrix of the left-hand side expression
791 , typename MT2 // Type of the dense matrix of the left-hand side expression
792 , typename MT3 // Type of the right-hand side dense matrix
793 , bool SO > // Storage order of the right-hand side dense matrix
794inline decltype(auto)
795 operator+( const SMatTDMatSubExpr<MT1,MT2>& lhs, const DenseMatrix<MT3,SO>& rhs )
796{
798
799 return ( (*rhs) - lhs.rightOperand() ) + lhs.leftOperand();
800}
802//*************************************************************************************************
803
804
805//*************************************************************************************************
818template< typename MT1 // Type of the sparse matrix of the left-hand side expression
819 , typename MT2 // Type of the dense matrix of the left-hand side expression
820 , typename MT3 // Type of the right-hand side dense matrix
821 , bool SO > // Storage order of the right-hand side dense matrix
822inline decltype(auto)
823 operator-( const SMatTDMatSubExpr<MT1,MT2>& lhs, const DenseMatrix<MT3,SO>& rhs )
824{
826
827 return lhs.leftOperand() - ( lhs.rightOperand() + (*rhs) );
828}
830//*************************************************************************************************
831
832} // namespace blaze
833
834#endif
Header file for auxiliary alias declarations.
typename T::ReturnType ReturnType_t
Alias declaration for nested ReturnType type definitions.
Definition: Aliases.h:470
typename T::ResultType ResultType_t
Alias declaration for nested ResultType type definitions.
Definition: Aliases.h:450
typename T::ElementType ElementType_t
Alias declaration for nested ElementType type definitions.
Definition: Aliases.h:190
typename T::OppositeType OppositeType_t
Alias declaration for nested OppositeType type definitions.
Definition: Aliases.h:310
typename T::TransposeType TransposeType_t
Alias declaration for nested TransposeType type definitions.
Definition: Aliases.h:550
Header file for run time assertion macros.
Constraints on the storage order of matrix types.
Header file for the EnableIf class template.
Header file for the function trace functionality.
Header file for the If class template.
Header file for the IntegralConstant class template.
Header file for the IsExpression type trait class.
Header file for the IsSame and IsStrictlySame type traits.
Header file for the IsTemporary type trait class.
Header file for the MAYBE_UNUSED function template.
Constraints on the storage order of matrix types.
Header file for the subtraction trait.
Base class for dense matrices.
Definition: DenseMatrix.h:82
Expression object for sparse matrix-transpose dense matrix subtractions.
Definition: SMatTDMatSubExpr.h:92
TransposeType_t< ResultType > TransposeType
Transpose type for expression template evaluations.
Definition: SMatTDMatSubExpr.h:136
ReturnType at(size_t i, size_t j) const
Checked access to the matrix elements.
Definition: SMatTDMatSubExpr.h:197
SubTrait_t< RT1, RT2 > ResultType
Result type for expression template evaluations.
Definition: SMatTDMatSubExpr.h:134
RightOperand rhs_
Right-hand side dense matrix of the subtraction expression.
Definition: SMatTDMatSubExpr.h:276
ReturnType_t< MT1 > RN1
Return type of the left-hand side sparse matrix expression.
Definition: SMatTDMatSubExpr.h:97
OppositeType_t< ResultType > OppositeType
Result type with opposite storage order for expression template evaluations.
Definition: SMatTDMatSubExpr.h:135
bool isAliased(const T *alias) const noexcept
Returns whether the expression is aliased with the given address alias.
Definition: SMatTDMatSubExpr.h:268
ReturnType operator()(size_t i, size_t j) const
2D-access to the matrix elements.
Definition: SMatTDMatSubExpr.h:182
ElementType_t< ResultType > ElementType
Resulting element type.
Definition: SMatTDMatSubExpr.h:137
If_t< IsExpression_v< MT2 >, const MT2, const MT2 & > RightOperand
Composite type of the right-hand side sparse matrix expression.
Definition: SMatTDMatSubExpr.h:149
LeftOperand lhs_
Left-hand side sparse matrix of the subtraction expression.
Definition: SMatTDMatSubExpr.h:275
ReturnType_t< MT2 > RN2
Return type of the right-hand side dense matrix expression.
Definition: SMatTDMatSubExpr.h:98
RightOperand rightOperand() const noexcept
Returns the right-hand side transpose dense matrix operand.
Definition: SMatTDMatSubExpr.h:243
If_t< IsExpression_v< MT1 >, const MT1, const MT1 & > LeftOperand
Composite type of the left-hand side dense matrix expression.
Definition: SMatTDMatSubExpr.h:146
const ResultType CompositeType
Data type for composite expression templates.
Definition: SMatTDMatSubExpr.h:143
size_t columns() const noexcept
Returns the current number of columns of the matrix.
Definition: SMatTDMatSubExpr.h:223
size_t rows() const noexcept
Returns the current number of rows of the matrix.
Definition: SMatTDMatSubExpr.h:213
static constexpr bool smpAssignable
Compilation switch for the expression template assignment strategy.
Definition: SMatTDMatSubExpr.h:157
ResultType_t< MT1 > RT1
Result type of the left-hand side sparse matrix expression.
Definition: SMatTDMatSubExpr.h:95
LeftOperand leftOperand() const noexcept
Returns the left-hand side sparse matrix operand.
Definition: SMatTDMatSubExpr.h:233
static constexpr bool returnExpr
Compilation switch for the selection of the subscript operator return type.
Definition: SMatTDMatSubExpr.h:108
SMatTDMatSubExpr(const MT1 &lhs, const MT2 &rhs) noexcept
Constructor for the SMatTDMatSubExpr class.
Definition: SMatTDMatSubExpr.h:166
const If_t< returnExpr, ExprReturnType, ElementType > ReturnType
Return type for expression template evaluations.
Definition: SMatTDMatSubExpr.h:140
bool canAlias(const T *alias) const noexcept
Returns whether the expression can alias with the given address alias.
Definition: SMatTDMatSubExpr.h:255
ResultType_t< MT2 > RT2
Result type of the right-hand side dense matrix expression.
Definition: SMatTDMatSubExpr.h:96
decltype(std::declval< RN1 >() - std::declval< RN2 >()) ExprReturnType
Expression return type for the subscript operator.
Definition: SMatTDMatSubExpr.h:111
static constexpr bool simdEnabled
Compilation switch for the expression template evaluation strategy.
Definition: SMatTDMatSubExpr.h:154
Base class for sparse matrices.
Definition: SparseMatrix.h:77
Constraint on the data type.
Constraint on the data type.
Constraint on the data type.
Constraint on the data type.
Header file for the Computation base class.
Header file for the DenseMatrix base class.
Header file for the MatMatSubExpr base class.
decltype(auto) serial(const DenseMatrix< MT, SO > &dm)
Forces the serial evaluation of the given dense matrix expression dm.
Definition: DMatSerialExpr.h:812
#define BLAZE_CONSTRAINT_MUST_BE_ROW_MAJOR_MATRIX_TYPE(T)
Constraint on the data type.
Definition: RowMajorMatrix.h:61
#define BLAZE_CONSTRAINT_MATRICES_MUST_HAVE_SAME_STORAGE_ORDER(T1, T2)
Constraint on the data type.
Definition: StorageOrder.h:84
#define BLAZE_CONSTRAINT_MUST_FORM_VALID_MATMATSUBEXPR(T1, T2)
Constraint on the data type.
Definition: MatMatSubExpr.h:103
#define BLAZE_CONSTRAINT_MUST_NOT_REQUIRE_EVALUATION(T)
Constraint on the data type.
Definition: RequiresEvaluation.h:81
#define BLAZE_CONSTRAINT_MUST_BE_DENSE_MATRIX_TYPE(T)
Constraint on the data type.
Definition: DenseMatrix.h:61
#define BLAZE_CONSTRAINT_MUST_BE_SPARSE_MATRIX_TYPE(T)
Constraint on the data type.
Definition: SparseMatrix.h:61
#define BLAZE_CONSTRAINT_MUST_BE_COLUMN_MAJOR_MATRIX_TYPE(T)
Constraint on the data type.
Definition: ColumnMajorMatrix.h:61
typename SubTrait< T1, T2 >::Type SubTrait_t
Auxiliary alias declaration for the SubTrait class template.
Definition: SubTrait.h:163
#define BLAZE_INTERNAL_ASSERT(expr, msg)
Run time assertion macro for internal checks.
Definition: Assert.h:101
auto smpSubAssign(Matrix< MT1, SO1 > &lhs, const Matrix< MT2, SO2 > &rhs) -> EnableIf_t< IsDenseMatrix_v< MT1 > >
Default implementation of the SMP subtraction assignment of a matrix to dense matrix.
Definition: DenseMatrix.h:162
auto smpAssign(Matrix< MT1, SO1 > &lhs, const Matrix< MT2, SO2 > &rhs) -> EnableIf_t< IsDenseMatrix_v< MT1 > >
Default implementation of the SMP assignment of a matrix to a dense matrix.
Definition: DenseMatrix.h:100
auto smpSchurAssign(Matrix< MT1, SO1 > &lhs, const Matrix< MT2, SO2 > &rhs) -> EnableIf_t< IsDenseMatrix_v< MT1 > >
Default implementation of the SMP Schur product assignment of a matrix to dense matrix.
Definition: DenseMatrix.h:194
auto smpAddAssign(Matrix< MT1, SO1 > &lhs, const Matrix< MT2, SO2 > &rhs) -> EnableIf_t< IsDenseMatrix_v< MT1 > >
Default implementation of the SMP addition assignment of a matrix to a dense matrix.
Definition: DenseMatrix.h:131
constexpr void MAYBE_UNUSED(const Args &...)
Suppression of unused parameter warnings.
Definition: MaybeUnused.h:81
typename If< Condition >::template Type< T1, T2 > If_t
Auxiliary alias template for the If class template.
Definition: If.h:108
#define BLAZE_THROW_OUT_OF_RANGE(MESSAGE)
Macro for the emission of a std::out_of_range exception.
Definition: Exception.h:331
#define BLAZE_THROW_INVALID_ARGUMENT(MESSAGE)
Macro for the emission of a std::invalid_argument exception.
Definition: Exception.h:235
#define BLAZE_FUNCTION_TRACE
Function trace macro.
Definition: FunctionTrace.h:94
Header file for the exception macros of the math module.
Constraints on the storage order of matrix types.
Header file for all forward declarations for expression class templates.
Header file for the serial shim.
Base class for all compute expression templates.
Definition: Computation.h:68
Base class for all matrix/matrix subtraction expression templates.
Definition: MatMatSubExpr.h:69
Header file for the IsZero type trait.
Header file for basic type definitions.