Blaze 3.9
DVecSVecAddExpr.h
Go to the documentation of this file.
1//=================================================================================================
33//=================================================================================================
34
35#ifndef _BLAZE_MATH_EXPRESSIONS_DVECSVECADDEXPR_H_
36#define _BLAZE_MATH_EXPRESSIONS_DVECSVECADDEXPR_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>
66#include <blaze/util/mpl/If.h>
67#include <blaze/util/Types.h>
69
70
71namespace blaze {
72
73//=================================================================================================
74//
75// CLASS DVECSVECADDEXPR
76//
77//=================================================================================================
78
79//*************************************************************************************************
86template< typename VT1 // Type of the left-hand side dense vector
87 , typename VT2 // Type of the right-hand side sparse vector
88 , bool TF > // Transpose flag
90 : public VecVecAddExpr< DenseVector< DVecSVecAddExpr<VT1,VT2,TF>, TF > >
91 , private Computation
92{
93 private:
94 //**Type definitions****************************************************************************
103 //**********************************************************************************************
104
105 //**Return type evaluation**********************************************************************
107
112 static constexpr bool returnExpr = ( !IsTemporary_v<RN1> && !IsTemporary_v<RN2> );
113
115 using ExprReturnType = decltype( std::declval<RN1>() + std::declval<RN2>() );
116 //**********************************************************************************************
117
118 //**Parallel evaluation strategy****************************************************************
120
125 template< typename VT >
126 static constexpr bool UseSMPAssign_v = ( !VT1::smpAssignable || !VT2::smpAssignable );
128 //**********************************************************************************************
129
130 public:
131 //**Type definitions****************************************************************************
134
137
141
144
147
149 using LeftOperand = If_t< IsExpression_v<VT1>, const VT1, const VT1& >;
150
152 using RightOperand = If_t< IsExpression_v<VT2>, const VT2, const VT2& >;
153 //**********************************************************************************************
154
155 //**Compilation flags***************************************************************************
157 static constexpr bool simdEnabled = false;
158
160 static constexpr bool smpAssignable = false;
161 //**********************************************************************************************
162
163 //**Constructor*********************************************************************************
169 inline DVecSVecAddExpr( const VT1& lhs, const VT2& rhs ) noexcept
170 : lhs_( lhs ) // Left-hand side dense vector of the addition expression
171 , rhs_( rhs ) // Right-hand side sparse vector of the addition expression
172 {
173 BLAZE_INTERNAL_ASSERT( lhs.size() == rhs.size(), "Invalid vector sizes" );
174 }
175 //**********************************************************************************************
176
177 //**Subscript operator**************************************************************************
183 inline ReturnType operator[]( size_t index ) const {
184 BLAZE_INTERNAL_ASSERT( index < lhs_.size(), "Invalid vector access index" );
185 return lhs_[index] + rhs_[index];
186 }
187 //**********************************************************************************************
188
189 //**At function*********************************************************************************
196 inline ReturnType at( size_t index ) const {
197 if( index >= lhs_.size() ) {
198 BLAZE_THROW_OUT_OF_RANGE( "Invalid vector access index" );
199 }
200 return (*this)[index];
201 }
202 //**********************************************************************************************
203
204 //**Size function*******************************************************************************
209 inline size_t size() const noexcept {
210 return lhs_.size();
211 }
212 //**********************************************************************************************
213
214 //**Left operand access*************************************************************************
219 inline LeftOperand leftOperand() const noexcept {
220 return lhs_;
221 }
222 //**********************************************************************************************
223
224 //**Right operand access************************************************************************
229 inline RightOperand rightOperand() const noexcept {
230 return rhs_;
231 }
232 //**********************************************************************************************
233
234 //**********************************************************************************************
240 template< typename T >
241 inline bool canAlias( const T* alias ) const noexcept {
242 return ( IsExpression_v<VT1> && lhs_.canAlias( alias ) ) ||
243 ( rhs_.canAlias( alias ) );
244 }
245 //**********************************************************************************************
246
247 //**********************************************************************************************
253 template< typename T >
254 inline bool isAliased( const T* alias ) const noexcept {
255 return ( lhs_.isAliased( alias ) || rhs_.isAliased( alias ) );
256 }
257 //**********************************************************************************************
258
259 private:
260 //**Member variables****************************************************************************
263 //**********************************************************************************************
264
265 //**Assignment to dense vectors*****************************************************************
277 template< typename VT > // Type of the target dense vector
278 friend inline void assign( DenseVector<VT,TF>& lhs, const DVecSVecAddExpr& rhs )
279 {
281
282 BLAZE_INTERNAL_ASSERT( (*lhs).size() == rhs.size(), "Invalid vector sizes" );
283
284 if( !IsComputation_v<VT1> && isSame( *lhs, rhs.lhs_ ) ) {
285 addAssign( *lhs, rhs.rhs_ );
286 }
287 else {
288 assign ( *lhs, rhs.lhs_ );
289 addAssign( *lhs, rhs.rhs_ );
290 }
291 }
293 //**********************************************************************************************
294
295 //**Assignment to sparse vectors****************************************************************
307 template< typename VT > // Type of the target sparse vector
308 friend inline void assign( SparseVector<VT,TF>& lhs, const DVecSVecAddExpr& rhs )
309 {
311
315
316 BLAZE_INTERNAL_ASSERT( (*lhs).size() == rhs.size(), "Invalid vector sizes" );
317
318 const ResultType tmp( serial( rhs ) );
319 assign( *lhs, tmp );
320 }
322 //**********************************************************************************************
323
324 //**Addition assignment to dense vectors********************************************************
336 template< typename VT > // Type of the target dense vector
337 friend inline void addAssign( DenseVector<VT,TF>& lhs, const DVecSVecAddExpr& rhs )
338 {
340
341 BLAZE_INTERNAL_ASSERT( (*lhs).size() == rhs.size(), "Invalid vector sizes" );
342
343 addAssign( *lhs, rhs.lhs_ );
344 addAssign( *lhs, rhs.rhs_ );
345 }
347 //**********************************************************************************************
348
349 //**Addition assignment to sparse vectors*******************************************************
350 // No special implementation for the addition assignment to sparse vectors.
351 //**********************************************************************************************
352
353 //**Subtraction assignment to dense vectors*****************************************************
365 template< typename VT > // Type of the target dense vector
366 friend inline void subAssign( DenseVector<VT,TF>& lhs, const DVecSVecAddExpr& rhs )
367 {
369
370 BLAZE_INTERNAL_ASSERT( (*lhs).size() == rhs.size(), "Invalid vector sizes" );
371
372 subAssign( *lhs, rhs.lhs_ );
373 subAssign( *lhs, rhs.rhs_ );
374 }
376 //**********************************************************************************************
377
378 //**Subtraction assignment to sparse vectors****************************************************
379 // No special implementation for the subtraction assignment to sparse vectors.
380 //**********************************************************************************************
381
382 //**Multiplication assignment to dense vectors**************************************************
394 template< typename VT > // Type of the target dense vector
395 friend inline void multAssign( DenseVector<VT,TF>& lhs, const DVecSVecAddExpr& rhs )
396 {
398
402
403 BLAZE_INTERNAL_ASSERT( (*lhs).size() == rhs.size(), "Invalid vector sizes" );
404
405 const ResultType tmp( serial( rhs ) );
406 multAssign( *lhs, tmp );
407 }
409 //**********************************************************************************************
410
411 //**Multiplication assignment to sparse vectors*************************************************
412 // No special implementation for the multiplication assignment to sparse vectors.
413 //**********************************************************************************************
414
415 //**Division assignment to dense vectors********************************************************
427 template< typename VT > // Type of the target dense vector
428 friend inline void divAssign( DenseVector<VT,TF>& lhs, const DVecSVecAddExpr& rhs )
429 {
431
435
436 BLAZE_INTERNAL_ASSERT( (*lhs).size() == rhs.size(), "Invalid vector sizes" );
437
438 const ResultType tmp( serial( rhs ) );
439 divAssign( *lhs, tmp );
440 }
442 //**********************************************************************************************
443
444 //**Division assignment to sparse vectors*******************************************************
445 // No special implementation for the division assignment to sparse vectors.
446 //**********************************************************************************************
447
448 //**SMP assignment to dense vectors*************************************************************
462 template< typename VT > // Type of the target dense vector
463 friend inline auto smpAssign( DenseVector<VT,TF>& lhs, const DVecSVecAddExpr& rhs )
464 -> EnableIf_t< UseSMPAssign_v<VT> >
465 {
467
468 BLAZE_INTERNAL_ASSERT( (*lhs).size() == rhs.size(), "Invalid vector sizes" );
469
470 if( !IsComputation_v<VT1> && isSame( *lhs, rhs.lhs_ ) ) {
471 smpAddAssign( *lhs, rhs.rhs_ );
472 }
473 else {
474 smpAssign ( *lhs, rhs.lhs_ );
475 smpAddAssign( *lhs, rhs.rhs_ );
476 }
477 }
479 //**********************************************************************************************
480
481 //**SMP assignment to sparse vectors************************************************************
495 template< typename VT > // Type of the target sparse vector
496 friend inline auto smpAssign( SparseVector<VT,TF>& lhs, const DVecSVecAddExpr& rhs )
497 -> EnableIf_t< UseSMPAssign_v<VT> >
498 {
500
504
505 BLAZE_INTERNAL_ASSERT( (*lhs).size() == rhs.size(), "Invalid vector sizes" );
506
507 const ResultType tmp( rhs );
508 smpAssign( *lhs, tmp );
509 }
511 //**********************************************************************************************
512
513 //**SMP addition assignment to dense vectors****************************************************
527 template< typename VT > // Type of the target dense vector
528 friend inline auto smpAddAssign( DenseVector<VT,TF>& lhs, const DVecSVecAddExpr& rhs )
529 -> EnableIf_t< UseSMPAssign_v<VT> >
530 {
532
533 BLAZE_INTERNAL_ASSERT( (*lhs).size() == rhs.size(), "Invalid vector sizes" );
534
535 smpAddAssign( *lhs, rhs.lhs_ );
536 smpAddAssign( *lhs, rhs.rhs_ );
537 }
539 //**********************************************************************************************
540
541 //**SMP addition assignment to sparse vectors***************************************************
542 // No special implementation for the SMP addition assignment to sparse vectors.
543 //**********************************************************************************************
544
545 //**SMP subtraction assignment to dense vectors*************************************************
559 template< typename VT > // Type of the target dense vector
560 friend inline auto smpSubAssign( DenseVector<VT,TF>& lhs, const DVecSVecAddExpr& rhs )
561 -> EnableIf_t< UseSMPAssign_v<VT> >
562 {
564
565 BLAZE_INTERNAL_ASSERT( (*lhs).size() == rhs.size(), "Invalid vector sizes" );
566
567 smpSubAssign( *lhs, rhs.lhs_ );
568 smpSubAssign( *lhs, rhs.rhs_ );
569 }
571 //**********************************************************************************************
572
573 //**SMP subtraction assignment to sparse vectors************************************************
574 // No special implementation for the SMP subtraction assignment to sparse vectors.
575 //**********************************************************************************************
576
577 //**SMP multiplication assignment to dense vectors**********************************************
592 template< typename VT > // Type of the target dense vector
593 friend inline auto smpMultAssign( DenseVector<VT,TF>& lhs, const DVecSVecAddExpr& rhs )
594 -> EnableIf_t< UseSMPAssign_v<VT> >
595 {
597
601
602 BLAZE_INTERNAL_ASSERT( (*lhs).size() == rhs.size(), "Invalid vector sizes" );
603
604 const ResultType tmp( rhs );
605 smpMultAssign( *lhs, tmp );
606 }
608 //**********************************************************************************************
609
610 //**SMP multiplication assignment to sparse vectors*********************************************
611 // No special implementation for the SMP multiplication assignment to sparse vectors.
612 //**********************************************************************************************
613
614 //**SMP division assignment to dense vectors****************************************************
628 template< typename VT > // Type of the target dense vector
629 friend inline auto smpDivAssign( DenseVector<VT,TF>& lhs, const DVecSVecAddExpr& rhs )
630 -> EnableIf_t< UseSMPAssign_v<VT> >
631 {
633
637
638 BLAZE_INTERNAL_ASSERT( (*lhs).size() == rhs.size(), "Invalid vector sizes" );
639
640 const ResultType tmp( rhs );
641 smpDivAssign( *lhs, tmp );
642 }
644 //**********************************************************************************************
645
646 //**SMP division assignment to sparse vectors***************************************************
647 // No special implementation for the SMP division assignment to sparse vectors.
648 //**********************************************************************************************
649
650 //**Compile time checks*************************************************************************
658 //**********************************************************************************************
659};
660//*************************************************************************************************
661
662
663
664
665//=================================================================================================
666//
667// GLOBAL BINARY ARITHMETIC OPERATORS
668//
669//=================================================================================================
670
671//*************************************************************************************************
684template< typename VT1 // Type of the left-hand side dense vector
685 , typename VT2 // Type of the right-hand side sparse vector
686 , bool TF // Transpose flag
687 , DisableIf_t< IsZero_v<VT2> &&
688 IsSame_v< ElementType_t<VT1>, ElementType_t<VT2> > >* = nullptr >
689inline const DVecSVecAddExpr<VT1,VT2,TF>
690 dvecsvecadd( const DenseVector<VT1,TF>& lhs, const SparseVector<VT2,TF>& rhs )
691{
693
694 BLAZE_INTERNAL_ASSERT( (*lhs).size() == (*rhs).size(), "Invalid vector sizes" );
695
696 return DVecSVecAddExpr<VT1,VT2,TF>( *lhs, *rhs );
697}
699//*************************************************************************************************
700
701
702//*************************************************************************************************
715template< typename VT1 // Type of the left-hand side dense vector
716 , typename VT2 // Type of the right-hand side sparse vector
717 , bool TF // Transpose flag
718 , EnableIf_t< IsZero_v<VT2> &&
719 IsSame_v< ElementType_t<VT1>, ElementType_t<VT2> > >* = nullptr >
720inline const VT1&
721 dvecsvecadd( const DenseVector<VT1,TF>& lhs, const SparseVector<VT2,TF>& rhs )
722{
724
725 MAYBE_UNUSED( rhs );
726
727 BLAZE_INTERNAL_ASSERT( (*lhs).size() == (*rhs).size(), "Invalid vector sizes" );
728
729 return (*lhs);
730}
732//*************************************************************************************************
733
734
735//*************************************************************************************************
761template< typename VT1 // Type of the left-hand side dense vector
762 , typename VT2 // Type of the right-hand side sparse vector
763 , bool TF > // Transpose flag
764inline decltype(auto)
765 operator+( const DenseVector<VT1,TF>& lhs, const SparseVector<VT2,TF>& rhs )
766{
768
769 if( (*lhs).size() != (*rhs).size() ) {
770 BLAZE_THROW_INVALID_ARGUMENT( "Vector sizes do not match" );
771 }
772
773 return dvecsvecadd( *lhs, *rhs );
774}
775//*************************************************************************************************
776
777
778//*************************************************************************************************
804template< typename VT1 // Type of the left-hand side sparse vector
805 , typename VT2 // Type of the right-hand side dense vector
806 , bool TF > // Transpose flag
807inline decltype(auto)
808 operator+( const SparseVector<VT1,TF>& lhs, const DenseVector<VT2,TF>& rhs )
809{
811
812 if( (*lhs).size() != (*rhs).size() ) {
813 BLAZE_THROW_INVALID_ARGUMENT( "Vector sizes do not match" );
814 }
815
816 return dvecsvecadd( *rhs, *lhs );
817}
818//*************************************************************************************************
819
820
821
822
823//=================================================================================================
824//
825// GLOBAL RESTRUCTURING BINARY ARITHMETIC OPERATORS
826//
827//=================================================================================================
828
829//*************************************************************************************************
842template< typename VT1 // Type of the dense vector of the left-hand side expression
843 , typename VT2 // Type of the sparse vector of the left-hand side expression
844 , bool TF // Transpose flag of the left-hand side expression
845 , typename VT3 > // Type of the right-hand side dense vector
846inline decltype(auto)
847 operator+( const DVecSVecAddExpr<VT1,VT2,TF>& lhs, const DenseVector<VT3,TF>& rhs )
848{
850
851 return ( lhs.leftOperand() + (*rhs) ) + lhs.rightOperand();
852}
854//*************************************************************************************************
855
856
857//*************************************************************************************************
870template< typename VT1 // Type of the dense vector of the left-hand side expression
871 , typename VT2 // Type of the sparse vector of the left-hand side expression
872 , bool TF // Transpose flag of the left-hand side expression
873 , typename VT3 > // Type of the right-hand side dense vector
874inline decltype(auto)
875 operator-( const DVecSVecAddExpr<VT1,VT2,TF>& lhs, const DenseVector<VT3,TF>& rhs )
876{
878
879 return ( lhs.leftOperand() - (*rhs) ) + lhs.rightOperand();
880}
882//*************************************************************************************************
883
884} // namespace blaze
885
886#endif
Header file for the addition trait.
Header file for auxiliary alias declarations.
typename T::CompositeType CompositeType_t
Alias declaration for nested CompositeType type definitions.
Definition: Aliases.h:110
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::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 function trace functionality.
Header file for the If class template.
Header file for the IsComputation type trait class.
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.
Deactivation of problematic macros.
Header file for the MAYBE_UNUSED function template.
Expression object for dense vector-sparse vector additions.
Definition: DVecSVecAddExpr.h:92
static constexpr bool returnExpr
Compilation switch for the selection of the subscript operator return type.
Definition: DVecSVecAddExpr.h:112
CompositeType_t< VT2 > CT2
Composite type of the right-hand side sparse vector expression.
Definition: DVecSVecAddExpr.h:100
If_t< IsExpression_v< VT1 >, const VT1, const VT1 & > LeftOperand
Composite type of the left-hand side dense vector expression.
Definition: DVecSVecAddExpr.h:149
TransposeType_t< VT2 > TT2
Transpose type of the right-hand side sparse vector expression.
Definition: DVecSVecAddExpr.h:102
ResultType_t< VT1 > RT1
Result type of the left-hand side dense vector expression.
Definition: DVecSVecAddExpr.h:95
AddTrait_t< RT1, RT2 > ResultType
Result type for expression template evaluations.
Definition: DVecSVecAddExpr.h:138
size_t size() const noexcept
Returns the current size/dimension of the vector.
Definition: DVecSVecAddExpr.h:209
ReturnType_t< VT1 > RN1
Return type of the left-hand side dense vector expression.
Definition: DVecSVecAddExpr.h:97
const ResultType CompositeType
Data type for composite expression templates.
Definition: DVecSVecAddExpr.h:146
If_t< IsExpression_v< VT2 >, const VT2, const VT2 & > RightOperand
Composite type of the right-hand side sparse vector expression.
Definition: DVecSVecAddExpr.h:152
CompositeType_t< VT1 > CT1
Composite type of the left-hand side dense vector expression.
Definition: DVecSVecAddExpr.h:99
LeftOperand lhs_
Left-hand side dense vector of the addition expression.
Definition: DVecSVecAddExpr.h:261
static constexpr bool simdEnabled
Compilation switch for the expression template evaluation strategy.
Definition: DVecSVecAddExpr.h:157
TransposeType_t< VT1 > TT1
Transpose type of the left-hand side dense vector expression.
Definition: DVecSVecAddExpr.h:101
DVecSVecAddExpr(const VT1 &lhs, const VT2 &rhs) noexcept
Constructor for the DVecSVecAddExpr class.
Definition: DVecSVecAddExpr.h:169
decltype(std::declval< RN1 >()+std::declval< RN2 >()) ExprReturnType
Expression return type for the subscript operator.
Definition: DVecSVecAddExpr.h:115
ReturnType_t< VT2 > RN2
Return type of the right-hand side sparse vector expression.
Definition: DVecSVecAddExpr.h:98
ElementType_t< ResultType > ElementType
Resulting element type.
Definition: DVecSVecAddExpr.h:140
TransposeType_t< ResultType > TransposeType
Transpose type for expression template evaluations.
Definition: DVecSVecAddExpr.h:139
const If_t< returnExpr, ExprReturnType, ElementType > ReturnType
Return type for expression template evaluations.
Definition: DVecSVecAddExpr.h:143
RightOperand rhs_
Right-hand side sparse vector of the addition expression.
Definition: DVecSVecAddExpr.h:262
ReturnType at(size_t index) const
Checked access to the vector elements.
Definition: DVecSVecAddExpr.h:196
LeftOperand leftOperand() const noexcept
Returns the left-hand side dense vector operand.
Definition: DVecSVecAddExpr.h:219
bool canAlias(const T *alias) const noexcept
Returns whether the expression can alias with the given address alias.
Definition: DVecSVecAddExpr.h:241
ReturnType operator[](size_t index) const
Subscript operator for the direct access to the vector elements.
Definition: DVecSVecAddExpr.h:183
RightOperand rightOperand() const noexcept
Returns the right-hand side sparse vector operand.
Definition: DVecSVecAddExpr.h:229
bool isAliased(const T *alias) const noexcept
Returns whether the expression is aliased with the given address alias.
Definition: DVecSVecAddExpr.h:254
static constexpr bool smpAssignable
Compilation switch for the expression template assignment strategy.
Definition: DVecSVecAddExpr.h:160
ResultType_t< VT2 > RT2
Result type of the right-hand side sparse vector expression.
Definition: DVecSVecAddExpr.h:96
Base class for N-dimensional dense vectors.
Definition: DenseVector.h:77
Base class for sparse vectors.
Definition: SparseVector.h:72
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 DenseVector base class.
Header file for the VecVecAddExpr 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_NOT_REQUIRE_EVALUATION(T)
Constraint on the data type.
Definition: RequiresEvaluation.h:81
#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_SPARSE_VECTOR_TYPE(T)
Constraint on the data type.
Definition: SparseVector.h:61
#define BLAZE_CONSTRAINT_MUST_FORM_VALID_VECVECADDEXPR(T1, T2)
Constraint on the data type.
Definition: VecVecAddExpr.h:104
#define BLAZE_CONSTRAINT_MUST_BE_DENSE_VECTOR_TYPE(T)
Constraint on the data type.
Definition: DenseVector.h:61
typename AddTrait< T1, T2 >::Type AddTrait_t
Auxiliary alias declaration for the AddTrait class template.
Definition: AddTrait.h:163
bool isSame(const Matrix< MT1, SO1 > &a, const Matrix< MT2, SO2 > &b) noexcept
Returns whether the two given matrices represent the same observable state.
Definition: Matrix.h:1424
#define BLAZE_INTERNAL_ASSERT(expr, msg)
Run time assertion macro for internal checks.
Definition: Assert.h:101
auto smpDivAssign(Vector< VT1, TF1 > &lhs, const Vector< VT2, TF2 > &rhs) -> EnableIf_t< IsDenseVector_v< VT1 > >
Default implementation of the SMP division assignment of a vector to a dense vector.
Definition: DenseVector.h:221
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 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.
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 compute expression templates.
Definition: Computation.h:68
Base class for all vector/vector addition expression templates.
Definition: VecVecAddExpr.h:68
Header file for the IsZero type trait.
Header file for basic type definitions.