Blaze 3.9
TSMatDMatSubExpr.h
Go to the documentation of this file.
1//=================================================================================================
33//=================================================================================================
34
35#ifndef _BLAZE_MATH_EXPRESSIONS_TSMATDMATSUBEXPR_H_
36#define _BLAZE_MATH_EXPRESSIONS_TSMATDMATSUBEXPR_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< TSMatDMatSubExpr<MT1,MT2>, false > >
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 TSMatDMatSubExpr( 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 TSMatDMatSubExpr& 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 TSMatDMatSubExpr& 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 TSMatDMatSubExpr& 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 TSMatDMatSubExpr& 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 TSMatDMatSubExpr& 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 TSMatDMatSubExpr& 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 TSMatDMatSubExpr& rhs )
497 -> EnableIf_t< UseSMPAssign_v<MT> >
498 {
500
501 using TmpType = If_t< SO2, OppositeType, ResultType >;
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 TSMatDMatSubExpr& 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 TSMatDMatSubExpr& 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 TSMatDMatSubExpr& 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 TSMatDMatSubExpr<MT1,MT2>
675 tsmatdmatsub( const SparseMatrix<MT1,true>& lhs, const DenseMatrix<MT2,false>& 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 TSMatDMatSubExpr<MT1,MT2>( *lhs, *rhs );
683}
685//*************************************************************************************************
686
687
688//*************************************************************************************************
701template< typename MT1 // Type of the left-hand side sparse matrix
702 , typename MT2 // Type of the right-hand side dense matrix
703 , EnableIf_t< IsZero_v<MT1> &&
704 IsSame_v< ElementType_t<MT1>, ElementType_t<MT2> > >* = nullptr >
705inline decltype(auto)
706 tsmatdmatsub( const SparseMatrix<MT1,true>& lhs, const DenseMatrix<MT2,false>& rhs )
707{
709
710 MAYBE_UNUSED( lhs );
711
712 BLAZE_INTERNAL_ASSERT( (*lhs).rows() == (*rhs).rows() , "Invalid number of rows" );
713 BLAZE_INTERNAL_ASSERT( (*lhs).columns() == (*rhs).columns(), "Invalid number of columns" );
714
715 return -(*rhs);
716}
718//*************************************************************************************************
719
720
721//*************************************************************************************************
751template< typename MT1 // Type of the left-hand side sparse matrix
752 , typename MT2 > // Type of the right-hand side dense matrix
753inline decltype(auto)
754 operator-( const SparseMatrix<MT1,true>& lhs, const DenseMatrix<MT2,false>& rhs )
755{
757
758 if( (*lhs).rows() != (*rhs).rows() || (*lhs).columns() != (*rhs).columns() ) {
759 BLAZE_THROW_INVALID_ARGUMENT( "Matrix sizes do not match" );
760 }
761
762 return tsmatdmatsub( *lhs, *rhs );
763}
764//*************************************************************************************************
765
766
767
768
769//=================================================================================================
770//
771// GLOBAL RESTRUCTURING BINARY ARITHMETIC OPERATORS
772//
773//=================================================================================================
774
775//*************************************************************************************************
788template< typename MT1 // Type of the sparse matrix of the left-hand side expression
789 , typename MT2 // Type of the dense matrix of the left-hand side expression
790 , typename MT3 // Type of the right-hand side dense matrix
791 , bool SO > // Storage order of the right-hand side dense matrix
792inline decltype(auto)
793 operator+( const TSMatDMatSubExpr<MT1,MT2>& lhs, const DenseMatrix<MT3,SO>& rhs )
794{
796
797 return ( (*rhs) - lhs.rightOperand() ) + lhs.leftOperand();
798}
800//*************************************************************************************************
801
802
803//*************************************************************************************************
816template< typename MT1 // Type of the sparse matrix of the left-hand side expression
817 , typename MT2 // Type of the dense matrix of the left-hand side expression
818 , typename MT3 // Type of the right-hand side dense matrix
819 , bool SO > // Storage order of the right-hand side dense matrix
820inline decltype(auto)
821 operator-( const TSMatDMatSubExpr<MT1,MT2>& lhs, const DenseMatrix<MT3,SO>& rhs )
822{
824
825 return lhs.leftOperand() - ( lhs.rightOperand() + (*rhs) );
826}
828//*************************************************************************************************
829
830} // namespace blaze
831
832#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
Base class for sparse matrices.
Definition: SparseMatrix.h:77
Expression object for transpose sparse matrix-dense matrix subtractions.
Definition: TSMatDMatSubExpr.h:92
ElementType_t< ResultType > ElementType
Resulting element type.
Definition: TSMatDMatSubExpr.h:137
ResultType_t< MT1 > RT1
Result type of the left-hand side sparse matrix expression.
Definition: TSMatDMatSubExpr.h:95
If_t< IsExpression_v< MT1 >, const MT1, const MT1 & > LeftOperand
Composite type of the left-hand side dense matrix expression.
Definition: TSMatDMatSubExpr.h:146
ReturnType_t< MT2 > RN2
Return type of the right-hand side dense matrix expression.
Definition: TSMatDMatSubExpr.h:98
TSMatDMatSubExpr(const MT1 &lhs, const MT2 &rhs) noexcept
Constructor for the TSMatDMatSubExpr class.
Definition: TSMatDMatSubExpr.h:166
size_t rows() const noexcept
Returns the current number of rows of the matrix.
Definition: TSMatDMatSubExpr.h:213
decltype(std::declval< RN1 >() - std::declval< RN2 >()) ExprReturnType
Expression return type for the subscript operator.
Definition: TSMatDMatSubExpr.h:111
static constexpr bool smpAssignable
Compilation switch for the expression template assignment strategy.
Definition: TSMatDMatSubExpr.h:157
ResultType_t< MT2 > RT2
Result type of the right-hand side dense matrix expression.
Definition: TSMatDMatSubExpr.h:96
size_t columns() const noexcept
Returns the current number of columns of the matrix.
Definition: TSMatDMatSubExpr.h:223
ReturnType at(size_t i, size_t j) const
Checked access to the matrix elements.
Definition: TSMatDMatSubExpr.h:197
RightOperand rightOperand() const noexcept
Returns the right-hand side dense matrix operand.
Definition: TSMatDMatSubExpr.h:243
OppositeType_t< ResultType > OppositeType
Result type with opposite storage order for expression template evaluations.
Definition: TSMatDMatSubExpr.h:135
LeftOperand leftOperand() const noexcept
Returns the left-hand side transpose sparse matrix operand.
Definition: TSMatDMatSubExpr.h:233
const ResultType CompositeType
Data type for composite expression templates.
Definition: TSMatDMatSubExpr.h:143
bool canAlias(const T *alias) const noexcept
Returns whether the expression can alias with the given address alias.
Definition: TSMatDMatSubExpr.h:255
ReturnType_t< MT1 > RN1
Return type of the left-hand side sparse matrix expression.
Definition: TSMatDMatSubExpr.h:97
static constexpr bool simdEnabled
Compilation switch for the expression template evaluation strategy.
Definition: TSMatDMatSubExpr.h:154
ReturnType operator()(size_t i, size_t j) const
2D-access to the matrix elements.
Definition: TSMatDMatSubExpr.h:182
SubTrait_t< RT1, RT2 > ResultType
Result type for expression template evaluations.
Definition: TSMatDMatSubExpr.h:134
const If_t< returnExpr, ExprReturnType, ElementType > ReturnType
Return type for expression template evaluations.
Definition: TSMatDMatSubExpr.h:140
static constexpr bool returnExpr
Compilation switch for the selection of the subscript operator return type.
Definition: TSMatDMatSubExpr.h:108
TransposeType_t< ResultType > TransposeType
Transpose type for expression template evaluations.
Definition: TSMatDMatSubExpr.h:136
LeftOperand lhs_
Left-hand side sparse matrix of the subtraction expression.
Definition: TSMatDMatSubExpr.h:275
bool isAliased(const T *alias) const noexcept
Returns whether the expression is aliased with the given address alias.
Definition: TSMatDMatSubExpr.h:268
RightOperand rhs_
Right-hand side dense matrix of the subtraction expression.
Definition: TSMatDMatSubExpr.h:276
If_t< IsExpression_v< MT2 >, const MT2, const MT2 & > RightOperand
Composite type of the right-hand side sparse matrix expression.
Definition: TSMatDMatSubExpr.h:149
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.