Blaze 3.9
SVecDVecSubExpr.h
Go to the documentation of this file.
1//=================================================================================================
33//=================================================================================================
34
35#ifndef _BLAZE_MATH_EXPRESSIONS_SVECDVECSUBEXPR_H_
36#define _BLAZE_MATH_EXPRESSIONS_SVECDVECSUBEXPR_H_
37
38
39//*************************************************************************************************
40// Includes
41//*************************************************************************************************
42
43#include <utility>
44#include <blaze/math/Aliases.h>
61#include <blaze/util/Assert.h>
62#include <blaze/util/EnableIf.h>
65#include <blaze/util/mpl/If.h>
66#include <blaze/util/Types.h>
68
69
70namespace blaze {
71
72//=================================================================================================
73//
74// CLASS SVECDVECSUBEXPR
75//
76//=================================================================================================
77
78//*************************************************************************************************
85template< typename VT1 // Type of the left-hand side sparse vector
86 , typename VT2 // Type of the right-hand side dense vector
87 , bool TF > // Transpose flag
89 : public VecVecSubExpr< DenseVector< SVecDVecSubExpr<VT1,VT2,TF>, TF > >
90 , private Computation
91{
92 private:
93 //**Type definitions****************************************************************************
102 //**********************************************************************************************
103
104 //**Return type evaluation**********************************************************************
106
111 static constexpr bool returnExpr = ( !IsTemporary_v<RN1> && !IsTemporary_v<RN2> );
112
114 using ExprReturnType = decltype( std::declval<RN1>() - std::declval<RN2>() );
115 //**********************************************************************************************
116
117 //**Parallel evaluation strategy****************************************************************
119
124 template< typename VT >
125 static constexpr bool UseSMPAssign_v = ( !VT1::smpAssignable || !VT2::smpAssignable );
127 //**********************************************************************************************
128
129 public:
130 //**Type definitions****************************************************************************
133
136
140
143
146
148 using LeftOperand = If_t< IsExpression_v<VT1>, const VT1, const VT1& >;
149
151 using RightOperand = If_t< IsExpression_v<VT2>, const VT2, const VT2& >;
152 //**********************************************************************************************
153
154 //**Compilation flags***************************************************************************
156 static constexpr bool simdEnabled = false;
157
159 static constexpr bool smpAssignable = false;
160 //**********************************************************************************************
161
162 //**Constructor*********************************************************************************
168 inline SVecDVecSubExpr( const VT1& lhs, const VT2& rhs ) noexcept
169 : lhs_( lhs ) // Left-hand side sparse vector of the subtraction expression
170 , rhs_( rhs ) // Right-hand side dense vector of the subtraction expression
171 {
172 BLAZE_INTERNAL_ASSERT( lhs.size() == rhs.size(), "Invalid vector sizes" );
173 }
174 //**********************************************************************************************
175
176 //**Subscript operator**************************************************************************
182 inline ReturnType operator[]( size_t index ) const {
183 BLAZE_INTERNAL_ASSERT( index < lhs_.size(), "Invalid vector access index" );
184 return lhs_[index] - rhs_[index];
185 }
186 //**********************************************************************************************
187
188 //**At function*********************************************************************************
195 inline ReturnType at( size_t index ) const {
196 if( index >= lhs_.size() ) {
197 BLAZE_THROW_OUT_OF_RANGE( "Invalid vector access index" );
198 }
199 return (*this)[index];
200 }
201 //**********************************************************************************************
202
203 //**Size function*******************************************************************************
208 inline size_t size() const noexcept {
209 return lhs_.size();
210 }
211 //**********************************************************************************************
212
213 //**Left operand access*************************************************************************
218 inline LeftOperand leftOperand() const noexcept {
219 return lhs_;
220 }
221 //**********************************************************************************************
222
223 //**Right operand access************************************************************************
228 inline RightOperand rightOperand() const noexcept {
229 return rhs_;
230 }
231 //**********************************************************************************************
232
233 //**********************************************************************************************
239 template< typename T >
240 inline bool canAlias( const T* alias ) const noexcept {
241 return ( lhs_.canAlias( alias ) ) ||
242 ( IsExpression_v<VT2> && rhs_.canAlias( alias ) );
243 }
244 //**********************************************************************************************
245
246 //**********************************************************************************************
252 template< typename T >
253 inline bool isAliased( const T* alias ) const noexcept {
254 return ( lhs_.isAliased( alias ) || rhs_.isAliased( alias ) );
255 }
256 //**********************************************************************************************
257
258 private:
259 //**Member variables****************************************************************************
262 //**********************************************************************************************
263
264 //**Assignment to dense vectors*****************************************************************
276 template< typename VT > // Type of the target dense vector
277 friend inline void assign( DenseVector<VT,TF>& lhs, const SVecDVecSubExpr& rhs )
278 {
280
281 BLAZE_INTERNAL_ASSERT( (*lhs).size() == rhs.size(), "Invalid vector sizes" );
282
283 assign ( *lhs, -rhs.rhs_ );
284 addAssign( *lhs, rhs.lhs_ );
285 }
287 //**********************************************************************************************
288
289 //**Assignment to sparse vectors****************************************************************
301 template< typename VT > // Type of the target sparse vector
302 friend inline void assign( SparseVector<VT,TF>& lhs, const SVecDVecSubExpr& rhs )
303 {
305
309
310 BLAZE_INTERNAL_ASSERT( (*lhs).size() == rhs.size(), "Invalid vector sizes" );
311
312 const ResultType tmp( serial( rhs ) );
313 assign( *lhs, tmp );
314 }
316 //**********************************************************************************************
317
318 //**Addition assignment to dense vectors********************************************************
330 template< typename VT > // Type of the target dense vector
331 friend inline void addAssign( DenseVector<VT,TF>& lhs, const SVecDVecSubExpr& rhs )
332 {
334
335 BLAZE_INTERNAL_ASSERT( (*lhs).size() == rhs.size(), "Invalid vector sizes" );
336
337 subAssign( *lhs, rhs.rhs_ );
338 addAssign( *lhs, rhs.lhs_ );
339 }
341 //**********************************************************************************************
342
343 //**Addition assignment to sparse vectors*******************************************************
344 // No special implementation for the addition assignment to sparse vectors.
345 //**********************************************************************************************
346
347 //**Subtraction assignment to dense vectors*****************************************************
359 template< typename VT > // Type of the target dense vector
360 friend inline void subAssign( DenseVector<VT,TF>& lhs, const SVecDVecSubExpr& rhs )
361 {
363
364 BLAZE_INTERNAL_ASSERT( (*lhs).size() == rhs.size(), "Invalid vector sizes" );
365
366 addAssign( *lhs, rhs.rhs_ );
367 subAssign( *lhs, rhs.lhs_ );
368 }
370 //**********************************************************************************************
371
372 //**Subtraction assignment to sparse vectors****************************************************
373 // No special implementation for the subtraction assignment to sparse vectors.
374 //**********************************************************************************************
375
376 //**Multiplication assignment to dense vectors**************************************************
388 template< typename VT > // Type of the target dense vector
389 friend inline void multAssign( DenseVector<VT,TF>& lhs, const SVecDVecSubExpr& rhs )
390 {
392
396
397 BLAZE_INTERNAL_ASSERT( (*lhs).size() == rhs.size(), "Invalid vector sizes" );
398
399 const ResultType tmp( serial( rhs ) );
400 multAssign( *lhs, tmp );
401 }
403 //**********************************************************************************************
404
405 //**Multiplication assignment to sparse vectors*************************************************
406 // No special implementation for the multiplication assignment to sparse vectors.
407 //**********************************************************************************************
408
409 //**Division assignment to dense vectors********************************************************
421 template< typename VT > // Type of the target dense vector
422 friend inline void divAssign( DenseVector<VT,TF>& lhs, const SVecDVecSubExpr& rhs )
423 {
425
429
430 BLAZE_INTERNAL_ASSERT( (*lhs).size() == rhs.size(), "Invalid vector sizes" );
431
432 const ResultType tmp( serial( rhs ) );
433 divAssign( *lhs, tmp );
434 }
436 //**********************************************************************************************
437
438 //**Division assignment to sparse vectors*******************************************************
439 // No special implementation for the division assignment to sparse vectors.
440 //**********************************************************************************************
441
442 //**SMP assignment to dense vectors*************************************************************
456 template< typename VT > // Type of the target dense vector
457 friend inline auto smpAssign( DenseVector<VT,TF>& lhs, const SVecDVecSubExpr& rhs )
458 -> EnableIf_t< UseSMPAssign_v<VT> >
459 {
461
462 BLAZE_INTERNAL_ASSERT( (*lhs).size() == rhs.size(), "Invalid vector sizes" );
463
464 smpAssign ( *lhs, -rhs.rhs_ );
465 smpAddAssign( *lhs, rhs.lhs_ );
466 }
468 //**********************************************************************************************
469
470 //**SMP assignment to sparse vectors************************************************************
484 template< typename VT > // Type of the target sparse vector
485 friend inline auto smpAssign( SparseVector<VT,TF>& lhs, const SVecDVecSubExpr& rhs )
486 -> EnableIf_t< UseSMPAssign_v<VT> >
487 {
489
493
494 BLAZE_INTERNAL_ASSERT( (*lhs).size() == rhs.size(), "Invalid vector sizes" );
495
496 const ResultType tmp( rhs );
497 smpAssign( *lhs, tmp );
498 }
500 //**********************************************************************************************
501
502 //**SMP addition assignment to dense vectors****************************************************
516 template< typename VT > // Type of the target dense vector
517 friend inline auto smpAddAssign( DenseVector<VT,TF>& lhs, const SVecDVecSubExpr& rhs )
518 -> EnableIf_t< UseSMPAssign_v<VT> >
519 {
521
522 BLAZE_INTERNAL_ASSERT( (*lhs).size() == rhs.size(), "Invalid vector sizes" );
523
524 smpSubAssign( *lhs, rhs.rhs_ );
525 smpAddAssign( *lhs, rhs.lhs_ );
526 }
528 //**********************************************************************************************
529
530 //**SMP addition assignment to sparse vectors***************************************************
531 // No special implementation for the SMP addition assignment to sparse vectors.
532 //**********************************************************************************************
533
534 //**SMP subtraction assignment to dense vectors*************************************************
548 template< typename VT > // Type of the target dense vector
549 friend inline auto smpSubAssign( DenseVector<VT,TF>& lhs, const SVecDVecSubExpr& rhs )
550 -> EnableIf_t< UseSMPAssign_v<VT> >
551 {
553
554 BLAZE_INTERNAL_ASSERT( (*lhs).size() == rhs.size(), "Invalid vector sizes" );
555
556 smpAddAssign( *lhs, rhs.rhs_ );
557 smpSubAssign( *lhs, rhs.lhs_ );
558 }
560 //**********************************************************************************************
561
562 //**SMP subtraction assignment to sparse vectors************************************************
563 // No special implementation for the SMP subtraction assignment to sparse vectors.
564 //**********************************************************************************************
565
566 //**SMP multiplication assignment to dense vectors**********************************************
581 template< typename VT > // Type of the target dense vector
582 friend inline auto smpMultAssign( DenseVector<VT,TF>& lhs, const SVecDVecSubExpr& rhs )
583 -> EnableIf_t< UseSMPAssign_v<VT> >
584 {
586
590
591 BLAZE_INTERNAL_ASSERT( (*lhs).size() == rhs.size(), "Invalid vector sizes" );
592
593 const ResultType tmp( rhs );
594 smpMultAssign( *lhs, tmp );
595 }
597 //**********************************************************************************************
598
599 //**SMP multiplication assignment to sparse vectors*********************************************
600 // No special implementation for the SMP multiplication assignment to sparse vectors.
601 //**********************************************************************************************
602
603 //**SMP division assignment to dense vectors****************************************************
617 template< typename VT > // Type of the target dense vector
618 friend inline auto smpDivAssign( DenseVector<VT,TF>& lhs, const SVecDVecSubExpr& rhs )
619 -> EnableIf_t< UseSMPAssign_v<VT> >
620 {
622
626
627 BLAZE_INTERNAL_ASSERT( (*lhs).size() == rhs.size(), "Invalid vector sizes" );
628
629 const ResultType tmp( rhs );
630 smpDivAssign( *lhs, tmp );
631 }
633 //**********************************************************************************************
634
635 //**SMP division assignment to sparse vectors***************************************************
636 // No special implementation for the SMP division assignment to sparse vectors.
637 //**********************************************************************************************
638
639 //**Compile time checks*************************************************************************
647 //**********************************************************************************************
648};
649//*************************************************************************************************
650
651
652
653
654//=================================================================================================
655//
656// GLOBAL BINARY ARITHMETIC OPERATORS
657//
658//=================================================================================================
659
660//*************************************************************************************************
673template< typename VT1 // Type of the left-hand side sparse vector
674 , typename VT2 // Type of the right-hand side dense vector
675 , bool TF // Transpose flag
676 , DisableIf_t< IsZero_v<VT1> &&
677 IsSame_v< ElementType_t<VT1>, ElementType_t<VT2> > >* = nullptr >
678inline const SVecDVecSubExpr<VT1,VT2,TF>
679 svecdvecsub( const SparseVector<VT1,TF>& lhs, const DenseVector<VT2,TF>& rhs )
680{
682
683 BLAZE_INTERNAL_ASSERT( (*lhs).size() == (*rhs).size(), "Invalid vector sizes" );
684
685 return SVecDVecSubExpr<VT1,VT2,TF>( *lhs, *rhs );
686}
688//*************************************************************************************************
689
690
691//*************************************************************************************************
704template< typename VT1 // Type of the left-hand side sparse vector
705 , typename VT2 // Type of the right-hand side dense vector
706 , bool TF // Transpose flag
707 , EnableIf_t< IsZero_v<VT1> &&
708 IsSame_v< ElementType_t<VT1>, ElementType_t<VT2> > >* = nullptr >
709inline decltype(auto)
710 svecdvecsub( const SparseVector<VT1,TF>& lhs, const DenseVector<VT2,TF>& rhs )
711{
713
714 MAYBE_UNUSED( lhs );
715
716 BLAZE_INTERNAL_ASSERT( (*lhs).size() == (*rhs).size(), "Invalid vector sizes" );
717
718 return -(*rhs);
719}
721//*************************************************************************************************
722
723
724//*************************************************************************************************
750template< typename VT1 // Type of the left-hand side sparse vector
751 , typename VT2 // Type of the right-hand side dense vector
752 , bool TF > // Transpose flag
753inline decltype(auto)
754 operator-( const SparseVector<VT1,TF>& lhs, const DenseVector<VT2,TF>& rhs )
755{
757
758 if( (*lhs).size() != (*rhs).size() ) {
759 BLAZE_THROW_INVALID_ARGUMENT( "Vector sizes do not match" );
760 }
761
762 return svecdvecsub( *lhs, *rhs );
763}
764//*************************************************************************************************
765
766
767
768
769//=================================================================================================
770//
771// GLOBAL RESTRUCTURING BINARY ARITHMETIC OPERATORS
772//
773//=================================================================================================
774
775//*************************************************************************************************
788template< typename VT1 // Type of the sparse vector of the left-hand side expression
789 , typename VT2 // Type of the dense vector of the left-hand side expression
790 , bool TF // Transpose flag of the left-hand side expression
791 , typename VT3 > // Type of right-hand side dense vector
792inline decltype(auto)
793 operator+( const SVecDVecSubExpr<VT1,VT2,TF>& lhs, const DenseVector<VT3,TF>& rhs )
794{
796
797 return ( (*rhs) - lhs.rightOperand() ) + lhs.leftOperand();
798}
800//*************************************************************************************************
801
802
803//*************************************************************************************************
816template< typename VT1 // Type of the sparse vector of the left-hand side expression
817 , typename VT2 // Type of the dense vector of the left-hand side expression
818 , bool TF // Transpose flag of the left-hand side expression
819 , typename VT3 > // Type of right-hand side dense vector
820inline decltype(auto)
821 operator-( const SVecDVecSubExpr<VT1,VT2,TF>& lhs, const DenseVector<VT3,TF>& 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::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 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.
Header file for the subtraction trait.
Base class for N-dimensional dense vectors.
Definition: DenseVector.h:77
Expression object for sparse vector-dense vector subtractions.
Definition: SVecDVecSubExpr.h:91
decltype(std::declval< RN1 >() - std::declval< RN2 >()) ExprReturnType
Expression return type for the subscript operator.
Definition: SVecDVecSubExpr.h:114
bool canAlias(const T *alias) const noexcept
Returns whether the expression can alias with the given address alias.
Definition: SVecDVecSubExpr.h:240
LeftOperand leftOperand() const noexcept
Returns the left-hand side sparse vector operand.
Definition: SVecDVecSubExpr.h:218
ReturnType operator[](size_t index) const
Subscript operator for the direct access to the vector elements.
Definition: SVecDVecSubExpr.h:182
LeftOperand lhs_
Left-hand side sparse vector of the subtraction expression.
Definition: SVecDVecSubExpr.h:260
static constexpr bool returnExpr
Compilation switch for the selection of the subscript operator return type.
Definition: SVecDVecSubExpr.h:111
If_t< IsExpression_v< VT1 >, const VT1, const VT1 & > LeftOperand
Composite type of the left-hand side sparse vector expression.
Definition: SVecDVecSubExpr.h:148
ReturnType at(size_t index) const
Checked access to the vector elements.
Definition: SVecDVecSubExpr.h:195
ReturnType_t< VT1 > RN1
Return type of the left-hand side sparse vector expression.
Definition: SVecDVecSubExpr.h:96
RightOperand rightOperand() const noexcept
Returns the right-hand side dense vector operand.
Definition: SVecDVecSubExpr.h:228
If_t< IsExpression_v< VT2 >, const VT2, const VT2 & > RightOperand
Composite type of the right-hand side dense vector expression.
Definition: SVecDVecSubExpr.h:151
CompositeType_t< VT1 > CT1
Composite type of the left-hand side sparse vector expression.
Definition: SVecDVecSubExpr.h:98
RightOperand rhs_
Right-hand side dense vector of the subtraction expression.
Definition: SVecDVecSubExpr.h:261
static constexpr bool smpAssignable
Compilation switch for the expression template assignment strategy.
Definition: SVecDVecSubExpr.h:159
SubTrait_t< RT1, RT2 > ResultType
Result type for expression template evaluations.
Definition: SVecDVecSubExpr.h:137
ElementType_t< ResultType > ElementType
Resulting element type.
Definition: SVecDVecSubExpr.h:139
size_t size() const noexcept
Returns the current size/dimension of the vector.
Definition: SVecDVecSubExpr.h:208
SVecDVecSubExpr(const VT1 &lhs, const VT2 &rhs) noexcept
Constructor for the SVecDVecSubExpr class.
Definition: SVecDVecSubExpr.h:168
TransposeType_t< ResultType > TransposeType
Transpose type for expression template evaluations.
Definition: SVecDVecSubExpr.h:138
TransposeType_t< VT2 > TT2
Transpose type of the right-hand side dense vector expression.
Definition: SVecDVecSubExpr.h:101
ReturnType_t< VT2 > RN2
Return type of the right-hand side dense vector expression.
Definition: SVecDVecSubExpr.h:97
TransposeType_t< VT1 > TT1
Transpose type of the left-hand side sparse vector expression.
Definition: SVecDVecSubExpr.h:100
ResultType_t< VT1 > RT1
Result type of the left-hand side sparse vector expression.
Definition: SVecDVecSubExpr.h:94
CompositeType_t< VT2 > CT2
Composite type of the right-hand side dense vector expression.
Definition: SVecDVecSubExpr.h:99
const If_t< returnExpr, ExprReturnType, ElementType > ReturnType
Return type for expression template evaluations.
Definition: SVecDVecSubExpr.h:142
ResultType_t< VT2 > RT2
Result type of the right-hand side dense vector expression.
Definition: SVecDVecSubExpr.h:95
static constexpr bool simdEnabled
Compilation switch for the expression template evaluation strategy.
Definition: SVecDVecSubExpr.h:156
bool isAliased(const T *alias) const noexcept
Returns whether the expression is aliased with the given address alias.
Definition: SVecDVecSubExpr.h:253
const ResultType CompositeType
Data type for composite expression templates.
Definition: SVecDVecSubExpr.h:145
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 VecVecSubExpr 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_FORM_VALID_VECVECSUBEXPR(T1, T2)
Constraint on the data type.
Definition: VecVecSubExpr.h:104
#define BLAZE_CONSTRAINT_MUST_BE_SPARSE_VECTOR_TYPE(T)
Constraint on the data type.
Definition: SparseVector.h:61
#define BLAZE_CONSTRAINT_MUST_BE_DENSE_VECTOR_TYPE(T)
Constraint on the data type.
Definition: DenseVector.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 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 subtraction expression templates.
Definition: VecVecSubExpr.h:68
Header file for the IsZero type trait.
Header file for basic type definitions.