Blaze 3.9
DVecExpandExpr.h
Go to the documentation of this file.
1//=================================================================================================
33//=================================================================================================
34
35#ifndef _BLAZE_MATH_EXPRESSIONS_DVECEXPANDEXPR_H_
36#define _BLAZE_MATH_EXPRESSIONS_DVECEXPANDEXPR_H_
37
38
39//*************************************************************************************************
40// Includes
41//*************************************************************************************************
42
43#include <blaze/math/Aliases.h>
62#include <blaze/system/Inline.h>
63#include <blaze/util/Assert.h>
64#include <blaze/util/EnableIf.h>
68#include <blaze/util/mpl/If.h>
69#include <blaze/util/Types.h>
71
72
73namespace blaze {
74
75//=================================================================================================
76//
77// CLASS DVECEXPANDEXPR
78//
79//=================================================================================================
80
81//*************************************************************************************************
88template< typename VT // Type of the dense vector
89 , bool TF // Transpose flag
90 , size_t... CEAs > // Compile time expansion arguments
92 : public VecExpandExpr< DenseMatrix< DVecExpandExpr<VT,TF,CEAs...>, !TF >, CEAs... >
93 , private If_t< IsComputation_v<VT>, Computation, Transformation >
94 , private ExpandExprData<CEAs...>
95{
96 private:
97 //**Type definitions****************************************************************************
99
100 using DataType = ExpandExprData<CEAs...>;
101
103 BLAZE_CREATE_GET_TYPE_MEMBER_TYPE_TRAIT( GetConstIterator, ConstIterator, INVALID_TYPE );
104 //**********************************************************************************************
105
106 //**Serial evaluation strategy******************************************************************
108
114 static constexpr bool useAssign = IsComputation_v<VT> || RequiresEvaluation_v<VT>;
115
118 template< typename MT >
119 static constexpr bool UseAssign_v = useAssign;
121 //**********************************************************************************************
122
123 //**Parallel evaluation strategy****************************************************************
125
130 template< typename MT >
131 static constexpr bool UseSMPAssign_v = ( !VT::smpAssignable && useAssign );
133 //**********************************************************************************************
134
135 public:
136 //**Type definitions****************************************************************************
138 using This = DVecExpandExpr<VT,TF,CEAs...>;
139
142
143 using ResultType = ExpandTrait_t<VT,CEAs...>;
148
151
153 using ConstIterator = GetConstIterator_t<VT>;
154
156 using Operand = If_t< IsExpression_v<VT>, const VT, const VT& >;
157 //**********************************************************************************************
158
159 //**Compilation flags***************************************************************************
161 static constexpr bool simdEnabled = VT::simdEnabled;
162
164 static constexpr bool smpAssignable = VT::smpAssignable;
165 //**********************************************************************************************
166
167 //**SIMD properties*****************************************************************************
169 static constexpr size_t SIMDSIZE = SIMDTrait<ElementType>::size;
170 //**********************************************************************************************
171
172 //**Constructor*********************************************************************************
178 template< typename... REAs > // Runtime expansion arguments
179 explicit inline DVecExpandExpr( const VT& dv, REAs... args ) noexcept
180 : DataType( args... ) // Base class initialization
181 , dv_ ( dv ) // Dense vector of the expansion expression
182 {}
183 //**********************************************************************************************
184
185 //**Access operator*****************************************************************************
192 inline ReturnType operator()( size_t i, size_t j ) const {
193 if( TF ) {
194 BLAZE_INTERNAL_ASSERT( i < expansion(), "Invalid row access index" );
195 BLAZE_INTERNAL_ASSERT( j < dv_.size() , "Invalid column access index" );
196 return dv_[j];
197 }
198 else {
199 BLAZE_INTERNAL_ASSERT( i < dv_.size(), "Invalid row access index" );
200 BLAZE_INTERNAL_ASSERT( j < expansion(), "Invalid column access index" );
201 return dv_[i];
202 }
203 }
204 //**********************************************************************************************
205
206 //**At function*********************************************************************************
214 inline ReturnType at( size_t i, size_t j ) const {
215 if( i >= ( TF ? expansion() : dv_.size() ) ) {
216 BLAZE_THROW_OUT_OF_RANGE( "Invalid row access index" );
217 }
218 if( j >= ( TF ? dv_.size() : expansion() ) ) {
219 BLAZE_THROW_OUT_OF_RANGE( "Invalid column access index" );
220 }
221 return (*this)(i,j);
222 }
223 //**********************************************************************************************
224
225 //**Load function*******************************************************************************
232 BLAZE_ALWAYS_INLINE auto load( size_t i, size_t j ) const noexcept {
233 if( TF ) {
234 BLAZE_INTERNAL_ASSERT( i < expansion(), "Invalid row access index" );
235 BLAZE_INTERNAL_ASSERT( j < dv_.size() , "Invalid column access index" );
236 BLAZE_INTERNAL_ASSERT( j % SIMDSIZE == 0UL, "Invalid row access index" );
237 return dv_.load(j);
238 }
239 else {
240 BLAZE_INTERNAL_ASSERT( i < dv_.size() , "Invalid row access index" );
241 BLAZE_INTERNAL_ASSERT( j < expansion(), "Invalid column access index" );
242 BLAZE_INTERNAL_ASSERT( i % SIMDSIZE == 0UL, "Invalid row access index" );
243 return dv_.load(i);
244 }
245 }
246 //**********************************************************************************************
247
248 //**Begin function******************************************************************************
254 inline ConstIterator begin( size_t i ) const {
255 MAYBE_UNUSED( i );
256 return ConstIterator( dv_.begin() );
257 }
258 //**********************************************************************************************
259
260 //**End function********************************************************************************
266 inline ConstIterator end( size_t i ) const {
267 MAYBE_UNUSED( i );
268 return ConstIterator( dv_.end() );
269 }
270 //**********************************************************************************************
271
272 //**Rows function*******************************************************************************
277 inline size_t rows() const noexcept {
278 return ( TF ? expansion() : dv_.size() );
279 }
280 //**********************************************************************************************
281
282 //**Columns function****************************************************************************
287 inline size_t columns() const noexcept {
288 return ( TF ? dv_.size() : expansion() );
289 }
290 //**********************************************************************************************
291
292 //**Operand access******************************************************************************
297 inline Operand operand() const noexcept {
298 return dv_;
299 }
300 //**********************************************************************************************
301
302 //**********************************************************************************************
303 using DataType::expansion;
304 //**********************************************************************************************
305
306 //**********************************************************************************************
312 template< typename T >
313 inline bool canAlias( const T* alias ) const noexcept {
314 return dv_.canAlias( alias );
315 }
316 //**********************************************************************************************
317
318 //**********************************************************************************************
324 template< typename T >
325 inline bool isAliased( const T* alias ) const noexcept {
326 return dv_.isAliased( alias );
327 }
328 //**********************************************************************************************
329
330 //**********************************************************************************************
335 inline bool isAligned() const noexcept {
336 return dv_.isAligned();
337 }
338 //**********************************************************************************************
339
340 //**********************************************************************************************
345 inline bool canSMPAssign() const noexcept {
346 return dv_.canSMPAssign();
347 }
348 //**********************************************************************************************
349
350 private:
351 //**Member variables****************************************************************************
353 //**********************************************************************************************
354
355 //**Assignment to matrices**********************************************************************
369 template< typename MT // Type of the target matrix
370 , bool SO > // Storage order of the target matrix
371 friend inline auto assign( Matrix<MT,SO>& lhs, const DVecExpandExpr& rhs )
373 {
374 using blaze::expand;
375
377
378 BLAZE_INTERNAL_ASSERT( (*lhs).rows() == rhs.rows() , "Invalid number of rows" );
379 BLAZE_INTERNAL_ASSERT( (*lhs).columns() == rhs.columns(), "Invalid number of columns" );
380
381 const RT tmp( serial( *rhs.dv_ ) );
382
383 assign( *lhs, expand<CEAs...>( tmp, rhs.expansion() ) );
384 }
386 //**********************************************************************************************
387
388 //**Addition assignment to matrices*************************************************************
402 template< typename MT // Type of the target matrix
403 , bool SO > // Storage order of the target matrix
404 friend inline auto addAssign( Matrix<MT,SO>& lhs, const DVecExpandExpr& rhs )
406 {
407 using blaze::expand;
408
410
411 BLAZE_INTERNAL_ASSERT( (*lhs).rows() == rhs.rows() , "Invalid number of rows" );
412 BLAZE_INTERNAL_ASSERT( (*lhs).columns() == rhs.columns(), "Invalid number of columns" );
413
414 const RT tmp( serial( *rhs.dv_ ) );
415
416 addAssign( *lhs, expand<CEAs...>( tmp, rhs.expansion() ) );
417 }
419 //**********************************************************************************************
420
421 //**Subtraction assignment to matrices**********************************************************
435 template< typename MT // Type of the target matrix
436 , bool SO > // Storage order of the target matrix
437 friend inline auto subAssign( Matrix<MT,SO>& lhs, const DVecExpandExpr& rhs )
438 -> EnableIf_t< UseAssign_v<MT> >
439 {
440 using blaze::expand;
441
443
444 BLAZE_INTERNAL_ASSERT( (*lhs).rows() == rhs.rows() , "Invalid number of rows" );
445 BLAZE_INTERNAL_ASSERT( (*lhs).columns() == rhs.columns(), "Invalid number of columns" );
446
447 const RT tmp( serial( *rhs.dv_ ) );
448
449 subAssign( *lhs, expand<CEAs...>( tmp, rhs.expansion() ) );
450 }
452 //**********************************************************************************************
453
454 //**Schur product assignment to matrices********************************************************
468 template< typename MT // Type of the target matrix
469 , bool SO > // Storage order of the target matrix
470 friend inline auto schurAssign( Matrix<MT,SO>& lhs, const DVecExpandExpr& rhs )
471 -> EnableIf_t< UseAssign_v<MT> >
472 {
473 using blaze::expand;
474
476
477 BLAZE_INTERNAL_ASSERT( (*lhs).rows() == rhs.rows() , "Invalid number of rows" );
478 BLAZE_INTERNAL_ASSERT( (*lhs).columns() == rhs.columns(), "Invalid number of columns" );
479
480 const RT tmp( serial( *rhs.dv_ ) );
481
482 schurAssign( *lhs, expand<CEAs...>( tmp, rhs.expansion() ) );
483 }
485 //**********************************************************************************************
486
487 //**Multiplication assignment to matrices*******************************************************
501 template< typename MT // Type of the target matrix
502 , bool SO > // Storage order of the target matrix
503 friend inline auto multAssign( Matrix<MT,SO>& lhs, const DVecExpandExpr& rhs )
504 -> EnableIf_t< UseAssign_v<MT> >
505 {
506 using blaze::expand;
507
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 RT tmp( serial( *rhs.dv_ ) );
514
515 multAssign( *lhs, expand<CEAs...>( tmp, rhs.expansion() ) );
516 }
518 //**********************************************************************************************
519
520 //**SMP assignment to matrices******************************************************************
534 template< typename MT // Type of the target matrix
535 , bool SO > // Storage order of the target matrix
536 friend inline auto smpAssign( Matrix<MT,SO>& lhs, const DVecExpandExpr& rhs )
537 -> EnableIf_t< UseSMPAssign_v<MT> >
538 {
539 using blaze::expand;
540
542
543 BLAZE_INTERNAL_ASSERT( (*lhs).rows() == rhs.rows() , "Invalid number of rows" );
544 BLAZE_INTERNAL_ASSERT( (*lhs).columns() == rhs.columns(), "Invalid number of columns" );
545
546 const RT tmp( *rhs.dv_ );
547
548 smpAssign( *lhs, expand<CEAs...>( tmp, rhs.expansion() ) );
549 }
551 //**********************************************************************************************
552
553 //**SMP addition assignment to matrices*********************************************************
567 template< typename MT // Type of the target matrix
568 , bool SO > // Storage order of the target matrix
569 friend inline auto smpAddAssign( Matrix<MT,SO>& lhs, const DVecExpandExpr& rhs )
570 -> EnableIf_t< UseSMPAssign_v<MT> >
571 {
572 using blaze::expand;
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 const RT tmp( *rhs.dv_ );
580
581 smpAddAssign( *lhs, expand<CEAs...>( tmp, rhs.expansion() ) );
582 }
584 //**********************************************************************************************
585
586 //**SMP subtraction assignment to matrices******************************************************
600 template< typename MT // Type of the target matrix
601 , bool SO > // Storage order of the target matrix
602 friend inline auto smpSubAssign( Matrix<MT,SO>& lhs, const DVecExpandExpr& rhs )
603 -> EnableIf_t< UseSMPAssign_v<MT> >
604 {
605 using blaze::expand;
606
608
609 BLAZE_INTERNAL_ASSERT( (*lhs).rows() == rhs.rows() , "Invalid number of rows" );
610 BLAZE_INTERNAL_ASSERT( (*lhs).columns() == rhs.columns(), "Invalid number of columns" );
611
612 const RT tmp( *rhs.dv_ );
613
614 smpSubAssign( *lhs, expand<CEAs...>( tmp, rhs.expansion() ) );
615 }
617 //**********************************************************************************************
618
619 //**SMP Schur product assignment to matrices****************************************************
633 template< typename MT // Type of the target matrix
634 , bool SO > // Storage order of the target matrix
635 friend inline auto smpSchurAssign( Matrix<MT,SO>& lhs, const DVecExpandExpr& rhs )
636 -> EnableIf_t< UseSMPAssign_v<MT> >
637 {
638 using blaze::expand;
639
641
642 BLAZE_INTERNAL_ASSERT( (*lhs).rows() == rhs.rows() , "Invalid number of rows" );
643 BLAZE_INTERNAL_ASSERT( (*lhs).columns() == rhs.columns(), "Invalid number of columns" );
644
645 const RT tmp( *rhs.dv_ );
646
647 smpSchurAssign( *lhs, expand<CEAs...>( tmp, rhs.expansion() ) );
648 }
650 //**********************************************************************************************
651
652 //**SMP multiplication assignment to matrices***************************************************
666 template< typename MT // Type of the target matrix
667 , bool SO > // Storage order of the target matrix
668 friend inline auto smpMultAssign( Matrix<MT,SO>& lhs, const DVecExpandExpr& rhs )
669 -> EnableIf_t< UseSMPAssign_v<MT> >
670 {
671 using blaze::expand;
672
674
675 BLAZE_INTERNAL_ASSERT( (*lhs).rows() == rhs.rows() , "Invalid number of rows" );
676 BLAZE_INTERNAL_ASSERT( (*lhs).columns() == rhs.columns(), "Invalid number of columns" );
677
678 const RT tmp( *rhs.dv_ );
679
680 smpMultAssign( *lhs, expand<CEAs...>( tmp, rhs.expansion() ) );
681 }
683 //**********************************************************************************************
684
685 //**Compile time checks*************************************************************************
690 //**********************************************************************************************
691};
692//*************************************************************************************************
693
694
695
696
697//=================================================================================================
698//
699// GLOBAL OPERATORS
700//
701//=================================================================================================
702
703//*************************************************************************************************
744template< typename VT // Type of the dense vector
745 , bool TF > // Transpose flag
746inline decltype(auto) expand( const DenseVector<VT,TF>& dv, size_t expansion )
747{
749
750 using ReturnType = const DVecExpandExpr<VT,TF>;
751 return ReturnType( *dv, expansion );
752}
753//*************************************************************************************************
754
755
756//*************************************************************************************************
796template< size_t E // Compile time expansion argument
797 , typename VT // Type of the dense vector
798 , bool TF > // Transpose flag
799inline decltype(auto) expand( const DenseVector<VT,TF>& dv )
800{
802
803 using ReturnType = const DVecExpandExpr<VT,TF,E>;
804 return ReturnType( *dv );
805}
806//*************************************************************************************************
807
808
809//*************************************************************************************************
821template< size_t E // Compile time expansion argument
822 , typename VT // Type of the dense vector
823 , bool TF > // Transpose flag
824inline decltype(auto) expand( const DenseVector<VT,TF>& dv, size_t expansion )
825{
826 MAYBE_UNUSED( expansion );
827
829
830 using ReturnType = const DVecExpandExpr<VT,TF,E>;
831 return ReturnType( *dv );
832}
834//*************************************************************************************************
835
836
837
838
839//=================================================================================================
840//
841// ISALIGNED SPECIALIZATIONS
842//
843//=================================================================================================
844
845//*************************************************************************************************
847template< typename VT, bool TF, size_t... CEAs >
848struct IsAligned< DVecExpandExpr<VT,TF,CEAs...> >
849 : public IsAligned<VT>
850{};
852//*************************************************************************************************
853
854
855
856
857//=================================================================================================
858//
859// ISPADDED SPECIALIZATIONS
860//
861//=================================================================================================
862
863//*************************************************************************************************
865template< typename VT, bool TF, size_t... CEAs >
866struct IsPadded< DVecExpandExpr<VT,TF,CEAs...> >
867 : public IsPadded<VT>
868{};
870//*************************************************************************************************
871
872} // namespace blaze
873
874#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.
Header file for the EnableIf class template.
Header file for the implementation of the ExpandExprData class template.
Header file for the expand trait.
Header file for the function trace functionality.
Header file for the GetMemberType type trait.
Header file for the If class template.
Utility type for generic codes.
Header file for the IsAligned type trait.
Header file for the IsComputation type trait class.
Header file for the IsExpression type trait class.
Header file for the IsPadded type trait.
Header file for the MAYBE_UNUSED function template.
Header file for the SIMD trait.
Expression object for dense vector expansion.
Definition: DVecExpandExpr.h:95
ReturnType operator()(size_t i, size_t j) const
2D-access to the matrix elements.
Definition: DVecExpandExpr.h:192
ConstIterator begin(size_t i) const
Returns an iterator to the first non-zero element of row/column i.
Definition: DVecExpandExpr.h:254
ResultType_t< VT > RT
Result type of the dense vector expression.
Definition: DVecExpandExpr.h:98
static constexpr size_t SIMDSIZE
The number of elements packed within a single SIMD element.
Definition: DVecExpandExpr.h:169
ConstIterator end(size_t i) const
Returns an iterator just past the last non-zero element of row/column i.
Definition: DVecExpandExpr.h:266
If_t< IsExpression_v< VT >, const VT, const VT & > Operand
Composite data type of the dense matrix expression.
Definition: DVecExpandExpr.h:156
size_t columns() const noexcept
Returns the current number of columns of the matrix.
Definition: DVecExpandExpr.h:287
bool isAligned() const noexcept
Returns whether the operands of the expression are properly aligned in memory.
Definition: DVecExpandExpr.h:335
ExpandTrait_t< VT, CEAs... > ResultType
Result type for expression template evaluations.
Definition: DVecExpandExpr.h:143
ExpandExprData< CEAs... > DataType
The type of the ExpandExprData base class.
Definition: DVecExpandExpr.h:100
size_t rows() const noexcept
Returns the current number of rows of the matrix.
Definition: DVecExpandExpr.h:277
BLAZE_CREATE_GET_TYPE_MEMBER_TYPE_TRAIT(GetConstIterator, ConstIterator, INVALID_TYPE)
Definition of the GetConstIterator type trait.
ElementType_t< VT > ElementType
Resulting element type.
Definition: DVecExpandExpr.h:146
static constexpr bool useAssign
Compilation switch for the serial evaluation strategy of the expansion expression.
Definition: DVecExpandExpr.h:114
static constexpr bool simdEnabled
Compilation switch for the expression template evaluation strategy.
Definition: DVecExpandExpr.h:161
OppositeType_t< ResultType > OppositeType
Result type with opposite storage order for expression template evaluations.
Definition: DVecExpandExpr.h:144
BLAZE_ALWAYS_INLINE auto load(size_t i, size_t j) const noexcept
Access to the SIMD elements of the matrix.
Definition: DVecExpandExpr.h:232
GetConstIterator_t< VT > ConstIterator
Iterator over the elements of the dense matrix.
Definition: DVecExpandExpr.h:153
bool isAliased(const T *alias) const noexcept
Returns whether the expression is aliased with the given address alias.
Definition: DVecExpandExpr.h:325
Operand dv_
Dense vector of the expansion expression.
Definition: DVecExpandExpr.h:352
If_t< useAssign, const ResultType, const DVecExpandExpr & > CompositeType
Data type for composite expression templates.
Definition: DVecExpandExpr.h:150
ReturnType_t< VT > ReturnType
Return type for expression template evaluations.
Definition: DVecExpandExpr.h:147
ReturnType at(size_t i, size_t j) const
Checked access to the matrix elements.
Definition: DVecExpandExpr.h:214
bool canAlias(const T *alias) const noexcept
Returns whether the expression can alias with the given address alias.
Definition: DVecExpandExpr.h:313
TransposeType_t< ResultType > TransposeType
Transpose type for expression template evaluations.
Definition: DVecExpandExpr.h:145
DVecExpandExpr(const VT &dv, REAs... args) noexcept
Constructor for the DVecExpandExpr class.
Definition: DVecExpandExpr.h:179
static constexpr bool smpAssignable
Compilation switch for the expression template assignment strategy.
Definition: DVecExpandExpr.h:164
Operand operand() const noexcept
Returns the dense vector operand.
Definition: DVecExpandExpr.h:297
bool canSMPAssign() const noexcept
Returns whether the expression can be used in SMP assignments.
Definition: DVecExpandExpr.h:345
Base class for N-dimensional dense vectors.
Definition: DenseVector.h:77
Auxiliary class template for the data members of expansion expression classes.
Definition: ExpandExprData.h:64
Base class for matrices.
Definition: Matrix.h:85
SIMD characteristics of data types.
Definition: SIMDTrait.h:297
Constraint on the data type.
Header file for the Computation base class.
Header file for the DenseMatrix base class.
Header file for the DenseVector base class.
Header file for the Transformation base class.
Header file for the VecExpandExpr 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
decltype(auto) expand(const DenseVector< VT, TF > &dv)
Expansion of the given dense vector.
Definition: DVecExpandExpr.h:799
#define BLAZE_CONSTRAINT_MUST_BE_VECTOR_WITH_TRANSPOSE_FLAG(T, TF)
Constraint on the data type.
Definition: TransposeFlag.h:63
#define BLAZE_CONSTRAINT_MUST_BE_DENSE_VECTOR_TYPE(T)
Constraint on the data type.
Definition: DenseVector.h:61
typename ExpandTrait< T, CEAs... >::Type ExpandTrait_t
Auxiliary alias declaration for the ExpandTrait type trait.
Definition: ExpandTrait.h:145
#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 smpMultAssign(Vector< VT1, TF1 > &lhs, const Vector< VT2, TF2 > &rhs) -> EnableIf_t< IsDenseVector_v< VT1 > >
Default implementation of the SMP multiplication assignment of a vector to a dense vector.
Definition: DenseVector.h:192
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
#define BLAZE_ALWAYS_INLINE
Platform dependent setup of an enforced inline keyword.
Definition: Inline.h:85
typename EnableIf< Condition, T >::Type EnableIf_t
Auxiliary type for the EnableIf class template.
Definition: EnableIf.h:138
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_FUNCTION_TRACE
Function trace macro.
Definition: FunctionTrace.h:94
Header file for the exception macros of the math module.
Constraint on the data type.
Header file for all forward declarations for expression class templates.
Header file for the serial shim.
Base class for all vector expansion expression templates.
Definition: VecExpandExpr.h:69
System settings for the inline keywords.
Header file for the RequiresEvaluation type trait.
Header file for basic type definitions.