All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 <stdexcept>
63 #include <blaze/util/Assert.h>
66 #include <blaze/util/SelectType.h>
67 #include <blaze/util/Types.h>
68 
69 
70 namespace blaze {
71 
72 //=================================================================================================
73 //
74 // CLASS SVECDVECSUBEXPR
75 //
76 //=================================================================================================
77 
78 //*************************************************************************************************
85 template< 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
88 class SVecDVecSubExpr : public DenseVector< SVecDVecSubExpr<VT1,VT2,TF>, TF >
89  , private VecVecSubExpr
90  , private Computation
91 {
92  private:
93  //**Type definitions****************************************************************************
94  typedef typename VT1::ResultType RT1;
95  typedef typename VT2::ResultType RT2;
96  typedef typename VT1::ReturnType RN1;
97  typedef typename VT2::ReturnType RN2;
98  typedef typename VT1::CompositeType CT1;
99  typedef typename VT2::CompositeType CT2;
100  typedef typename VT1::TransposeType TT1;
101  typedef typename VT2::TransposeType TT2;
102  //**********************************************************************************************
103 
104  //**Return type evaluation**********************************************************************
106 
111  enum { returnExpr = !IsTemporary<RN1>::value && !IsTemporary<RN2>::value };
112 
115  //**********************************************************************************************
116 
117  //**Parallel evaluation strategy****************************************************************
119 
124  template< typename VT >
125  struct UseSMPAssign {
126  enum { value = ( !VT1::smpAssignable || !VT2::smpAssignable ) };
127  };
129  //**********************************************************************************************
130 
131  public:
132  //**Type definitions****************************************************************************
137 
140 
142  typedef const ResultType CompositeType;
143 
145  typedef typename SelectType< IsExpression<VT1>::value, const VT1, const VT1& >::Type LeftOperand;
146 
148  typedef typename SelectType< IsExpression<VT2>::value, const VT2, const VT2& >::Type RightOperand;
149  //**********************************************************************************************
150 
151  //**Compilation flags***************************************************************************
153  enum { vectorizable = 0 };
154 
156  enum { smpAssignable = 0 };
157  //**********************************************************************************************
158 
159  //**Constructor*********************************************************************************
165  explicit inline SVecDVecSubExpr( const VT1& lhs, const VT2& rhs )
166  : lhs_( lhs ) // Left-hand side sparse vector of the subtraction expression
167  , rhs_( rhs ) // Right-hand side dense vector of the subtraction expression
168  {
169  BLAZE_INTERNAL_ASSERT( lhs.size() == rhs.size(), "Invalid vector sizes" );
170  }
171  //**********************************************************************************************
172 
173  //**Subscript operator**************************************************************************
179  inline ReturnType operator[]( size_t index ) const {
180  BLAZE_INTERNAL_ASSERT( index < lhs_.size(), "Invalid vector access index" );
181  return lhs_[index] - rhs_[index];
182  }
183  //**********************************************************************************************
184 
185  //**Size function*******************************************************************************
190  inline size_t size() const {
191  return lhs_.size();
192  }
193  //**********************************************************************************************
194 
195  //**Left operand access*************************************************************************
200  inline LeftOperand leftOperand() const {
201  return lhs_;
202  }
203  //**********************************************************************************************
204 
205  //**Right operand access************************************************************************
210  inline RightOperand rightOperand() const {
211  return rhs_;
212  }
213  //**********************************************************************************************
214 
215  //**********************************************************************************************
221  template< typename T >
222  inline bool canAlias( const T* alias ) const {
223  return ( lhs_.canAlias( alias ) ) ||
224  ( IsExpression<VT2>::value && rhs_.canAlias( alias ) );
225  }
226  //**********************************************************************************************
227 
228  //**********************************************************************************************
234  template< typename T >
235  inline bool isAliased( const T* alias ) const {
236  return ( lhs_.isAliased( alias ) || rhs_.isAliased( alias ) );
237  }
238  //**********************************************************************************************
239 
240  private:
241  //**Member variables****************************************************************************
244  //**********************************************************************************************
245 
246  //**Assignment to dense vectors*****************************************************************
258  template< typename VT > // Type of the target dense vector
259  friend inline void assign( DenseVector<VT,TF>& lhs, const SVecDVecSubExpr& rhs )
260  {
262 
263  BLAZE_INTERNAL_ASSERT( (~lhs).size() == rhs.size(), "Invalid vector sizes" );
264 
265  assign ( ~lhs, -rhs.rhs_ );
266  addAssign( ~lhs, rhs.lhs_ );
267  }
269  //**********************************************************************************************
270 
271  //**Assignment to sparse vectors****************************************************************
283  template< typename VT > // Type of the target sparse vector
284  friend inline void assign( SparseVector<VT,TF>& lhs, const SVecDVecSubExpr& rhs )
285  {
287 
291 
292  BLAZE_INTERNAL_ASSERT( (~lhs).size() == rhs.size(), "Invalid vector sizes" );
293 
294  const ResultType tmp( serial( rhs ) );
295  assign( ~lhs, tmp );
296  }
298  //**********************************************************************************************
299 
300  //**Addition assignment to dense vectors********************************************************
312  template< typename VT > // Type of the target dense vector
313  friend inline void addAssign( DenseVector<VT,TF>& lhs, const SVecDVecSubExpr& rhs )
314  {
316 
317  BLAZE_INTERNAL_ASSERT( (~lhs).size() == rhs.size(), "Invalid vector sizes" );
318 
319  subAssign( ~lhs, rhs.rhs_ );
320  addAssign( ~lhs, rhs.lhs_ );
321  }
323  //**********************************************************************************************
324 
325  //**Addition assignment to sparse vectors*******************************************************
326  // No special implementation for the addition assignment to sparse vectors.
327  //**********************************************************************************************
328 
329  //**Subtraction assignment to dense vectors*****************************************************
341  template< typename VT > // Type of the target dense vector
342  friend inline void subAssign( DenseVector<VT,TF>& lhs, const SVecDVecSubExpr& rhs )
343  {
345 
346  BLAZE_INTERNAL_ASSERT( (~lhs).size() == rhs.size(), "Invalid vector sizes" );
347 
348  addAssign( ~lhs, rhs.rhs_ );
349  subAssign( ~lhs, rhs.lhs_ );
350  }
352  //**********************************************************************************************
353 
354  //**Subtraction assignment to sparse vectors****************************************************
355  // No special implementation for the subtraction assignment to sparse vectors.
356  //**********************************************************************************************
357 
358  //**Multiplication assignment to dense vectors**************************************************
370  template< typename VT > // Type of the target dense vector
371  friend inline void multAssign( DenseVector<VT,TF>& lhs, const SVecDVecSubExpr& rhs )
372  {
374 
378 
379  BLAZE_INTERNAL_ASSERT( (~lhs).size() == rhs.size(), "Invalid vector sizes" );
380 
381  const ResultType tmp( serial( rhs ) );
382  multAssign( ~lhs, tmp );
383  }
385  //**********************************************************************************************
386 
387  //**Multiplication assignment to sparse vectors*************************************************
388  // No special implementation for the multiplication assignment to sparse vectors.
389  //**********************************************************************************************
390 
391  //**SMP assignment to dense vectors*************************************************************
405  template< typename VT > // Type of the target dense vector
406  friend inline typename EnableIf< UseSMPAssign<VT> >::Type
407  smpAssign( DenseVector<VT,TF>& lhs, const SVecDVecSubExpr& rhs )
408  {
410 
411  BLAZE_INTERNAL_ASSERT( (~lhs).size() == rhs.size(), "Invalid vector sizes" );
412 
413  smpAssign ( ~lhs, -rhs.rhs_ );
414  smpAddAssign( ~lhs, rhs.lhs_ );
415  }
417  //**********************************************************************************************
418 
419  //**SMP assignment to sparse vectors************************************************************
433  template< typename VT > // Type of the target sparse vector
434  friend inline typename EnableIf< UseSMPAssign<VT> >::Type
435  smpAssign( SparseVector<VT,TF>& lhs, const SVecDVecSubExpr& rhs )
436  {
438 
442 
443  BLAZE_INTERNAL_ASSERT( (~lhs).size() == rhs.size(), "Invalid vector sizes" );
444 
445  const ResultType tmp( rhs );
446  smpAssign( ~lhs, tmp );
447  }
449  //**********************************************************************************************
450 
451  //**SMP addition assignment to dense vectors****************************************************
465  template< typename VT > // Type of the target dense vector
466  friend inline typename EnableIf< UseSMPAssign<VT> >::Type
467  smpAddAssign( DenseVector<VT,TF>& lhs, const SVecDVecSubExpr& rhs )
468  {
470 
471  BLAZE_INTERNAL_ASSERT( (~lhs).size() == rhs.size(), "Invalid vector sizes" );
472 
473  smpSubAssign( ~lhs, rhs.rhs_ );
474  smpAddAssign( ~lhs, rhs.lhs_ );
475  }
477  //**********************************************************************************************
478 
479  //**SMP addition assignment to sparse vectors***************************************************
480  // No special implementation for the SMP addition assignment to sparse vectors.
481  //**********************************************************************************************
482 
483  //**SMP subtraction assignment to dense vectors*************************************************
497  template< typename VT > // Type of the target dense vector
498  friend inline typename EnableIf< UseSMPAssign<VT> >::Type
499  smpSubAssign( DenseVector<VT,TF>& lhs, const SVecDVecSubExpr& rhs )
500  {
502 
503  BLAZE_INTERNAL_ASSERT( (~lhs).size() == rhs.size(), "Invalid vector sizes" );
504 
505  smpAddAssign( ~lhs, rhs.rhs_ );
506  smpSubAssign( ~lhs, rhs.lhs_ );
507  }
509  //**********************************************************************************************
510 
511  //**SMP subtraction assignment to sparse vectors************************************************
512  // No special implementation for the SMP subtraction assignment to sparse vectors.
513  //**********************************************************************************************
514 
515  //**SMP multiplication assignment to dense vectors**********************************************
530  template< typename VT > // Type of the target dense vector
531  friend inline typename EnableIf< UseSMPAssign<VT> >::Type
532  smpMultAssign( DenseVector<VT,TF>& lhs, const SVecDVecSubExpr& rhs )
533  {
535 
539 
540  BLAZE_INTERNAL_ASSERT( (~lhs).size() == rhs.size(), "Invalid vector sizes" );
541 
542  const ResultType tmp( rhs );
543  smpMultAssign( ~lhs, tmp );
544  }
546  //**********************************************************************************************
547 
548  //**SMP multiplication assignment to sparse vectors*********************************************
549  // No special implementation for the SMP multiplication assignment to sparse vectors.
550  //**********************************************************************************************
551 
552  //**Compile time checks*************************************************************************
559  //**********************************************************************************************
560 };
561 //*************************************************************************************************
562 
563 
564 
565 
566 //=================================================================================================
567 //
568 // GLOBAL BINARY ARITHMETIC OPERATORS
569 //
570 //=================================================================================================
571 
572 //*************************************************************************************************
598 template< typename T1 // Type of the left-hand side sparse vector
599  , typename T2 // Type of the right-hand side dense vector
600  , bool TF > // Transpose flag
601 inline const SVecDVecSubExpr<T1,T2,TF>
603 {
605 
606  if( (~lhs).size() != (~rhs).size() )
607  throw std::invalid_argument( "Vector sizes do not match" );
608 
609  return SVecDVecSubExpr<T1,T2,TF>( ~lhs, ~rhs );
610 }
611 //*************************************************************************************************
612 
613 
614 
615 
616 //=================================================================================================
617 //
618 // GLOBAL RESTRUCTURING BINARY ARITHMETIC OPERATORS
619 //
620 //=================================================================================================
621 
622 //*************************************************************************************************
635 template< typename T1 // Type of the sparse vector of the left-hand side expression
636  , typename T2 // Type of the dense vector of the left-hand side expression
637  , bool TF // Transpose flag of the left-hand side expression
638  , typename T3 > // Type of right-hand side dense vector
639 inline const typename AddExprTrait< SVecDVecSubExpr<T1,T2,TF>, T3 >::Type
640  operator+( const SVecDVecSubExpr<T1,T2,TF>& lhs, const DenseVector<T3,TF>& rhs )
641 {
643 
644  return ( (~rhs) - lhs.rightOperand() ) + lhs.leftOperand();
645 }
647 //*************************************************************************************************
648 
649 
650 //*************************************************************************************************
663 template< typename T1 // Type of the sparse vector of the left-hand side expression
664  , typename T2 // Type of the dense vector of the left-hand side expression
665  , bool TF // Transpose flag of the left-hand side expression
666  , typename T3 > // Type of right-hand side dense vector
667 inline const typename SubExprTrait< SVecDVecSubExpr<T1,T2,TF>, T3 >::Type
668  operator-( const SVecDVecSubExpr<T1,T2,TF>& lhs, const DenseVector<T3,TF>& rhs )
669 {
671 
672  return lhs.leftOperand() - ( lhs.rightOperand() + (~rhs) );
673 }
675 //*************************************************************************************************
676 
677 
678 
679 
680 //=================================================================================================
681 //
682 // EXPRESSION TRAIT SPECIALIZATIONS
683 //
684 //=================================================================================================
685 
686 //*************************************************************************************************
688 template< typename VT1, typename VT2, typename VT3 >
689 struct DVecDVecAddExprTrait< SVecDVecSubExpr<VT1,VT2,false>, VT3 >
690 {
691  public:
692  //**********************************************************************************************
694  typedef typename SelectType< IsSparseVector<VT1>::value && IsColumnVector<VT1>::value &&
695  IsDenseVector<VT2>::value && IsColumnVector<VT2>::value &&
696  IsDenseVector<VT3>::value && IsColumnVector<VT3>::value
697  , typename DVecSVecAddExprTrait< typename DVecDVecSubExprTrait<VT3,VT2>::Type, VT1 >::Type
698  , INVALID_TYPE >::Type Type;
700  //**********************************************************************************************
701 };
703 //*************************************************************************************************
704 
705 
706 //*************************************************************************************************
708 template< typename VT1, typename VT2, typename VT3 >
709 struct TDVecTDVecAddExprTrait< SVecDVecSubExpr<VT1,VT2,true>, VT3 >
710 {
711  public:
712  //**********************************************************************************************
714  typedef typename SelectType< IsSparseVector<VT1>::value && IsRowVector<VT1>::value &&
715  IsDenseVector<VT2>::value && IsRowVector<VT2>::value &&
716  IsDenseVector<VT3>::value && IsRowVector<VT3>::value
717  , typename TDVecTSVecAddExprTrait< typename TDVecTDVecSubExprTrait<VT3,VT2>::Type, VT1 >::Type
718  , INVALID_TYPE >::Type Type;
720  //**********************************************************************************************
721 };
723 //*************************************************************************************************
724 
725 
726 //*************************************************************************************************
728 template< typename VT1, typename VT2, typename VT3 >
729 struct DVecDVecSubExprTrait< SVecDVecSubExpr<VT1,VT2,false>, VT3 >
730 {
731  public:
732  //**********************************************************************************************
734  typedef typename SelectType< IsSparseVector<VT1>::value && IsColumnVector<VT1>::value &&
735  IsDenseVector<VT2>::value && IsColumnVector<VT2>::value &&
736  IsDenseVector<VT3>::value && IsColumnVector<VT3>::value
737  , typename SVecDVecSubExprTrait< VT1, typename DVecDVecAddExprTrait<VT2,VT3>::Type >::Type
738  , INVALID_TYPE >::Type Type;
740  //**********************************************************************************************
741 };
743 //*************************************************************************************************
744 
745 
746 //*************************************************************************************************
748 template< typename VT1, typename VT2, typename VT3 >
749 struct TDVecTDVecSubExprTrait< SVecDVecSubExpr<VT1,VT2,true>, VT3 >
750 {
751  public:
752  //**********************************************************************************************
754  typedef typename SelectType< IsSparseVector<VT1>::value && IsRowVector<VT1>::value &&
755  IsDenseVector<VT2>::value && IsRowVector<VT2>::value &&
756  IsDenseVector<VT3>::value && IsRowVector<VT3>::value
757  , typename TSVecTDVecSubExprTrait< VT1, typename TDVecTDVecAddExprTrait<VT2,VT3>::Type >::Type
758  , INVALID_TYPE >::Type Type;
760  //**********************************************************************************************
761 };
763 //*************************************************************************************************
764 
765 
766 //*************************************************************************************************
768 template< typename VT1, typename VT2, bool TF, bool AF >
769 struct SubvectorExprTrait< SVecDVecSubExpr<VT1,VT2,TF>, AF >
770 {
771  public:
772  //**********************************************************************************************
773  typedef typename SubExprTrait< typename SubvectorExprTrait<const VT1,AF>::Type
774  , typename SubvectorExprTrait<const VT2,AF>::Type >::Type Type;
775  //**********************************************************************************************
776 };
778 //*************************************************************************************************
779 
780 } // namespace blaze
781 
782 #endif
SVecDVecSubExpr(const VT1 &lhs, const VT2 &rhs)
Constructor for the SVecDVecSubExpr class.
Definition: SVecDVecSubExpr.h:165
Expression object for sparse vector-dense vector subtractions.The SVecDVecSubExpr class represents th...
Definition: Forward.h:112
Compile time check whether the given type is a temporary vector or matrix type.This type trait class ...
Definition: IsTemporary.h:87
Header file for the subtraction trait.
bool isAliased(const T *alias) const
Returns whether the expression is aliased with the given address alias.
Definition: SVecDVecSubExpr.h:235
void smpSubAssign(DenseMatrix< MT1, SO1 > &lhs, const Matrix< MT2, SO2 > &rhs)
Default implementation of the SMP subtraction assignment of a matrix to dense matrix.
Definition: DenseMatrix.h:152
const ResultType CompositeType
Data type for composite expression templates.
Definition: SVecDVecSubExpr.h:142
Efficient implementation of a compressed matrix.The CompressedMatrix class template is the represent...
Definition: CompressedMatrix.h:199
void smpMultAssign(DenseVector< VT1, TF1 > &lhs, const Vector< VT2, TF2 > &rhs)
Default implementation of the SMP multiplication assignment of a vector to a dense vector...
Definition: DenseVector.h:179
VT2::ResultType RT2
Result type of the right-hand side dense vector expression.
Definition: SVecDVecSubExpr.h:95
SubExprTrait< RN1, RN2 >::Type ExprReturnType
Expression return type for the subscript operator.
Definition: SVecDVecSubExpr.h:114
const This & CompositeType
Data type for composite expression templates.
Definition: CompressedMatrix.h:2408
Header file for the IsRowVector type trait.
Type ElementType
Type of the sparse matrix elements.
Definition: CompressedMatrix.h:251
Header file for the DenseVector base class.
Header file for the AddExprTrait class template.
const DMatSerialExpr< MT, SO > serial(const DenseMatrix< MT, SO > &dm)
Forces the serial evaluation of the given dense matrix expression dm.
Definition: DMatSerialExpr.h:690
Header file for the Computation base class.
SelectType< IsExpression< VT1 >::value, const VT1, const VT1 & >::Type LeftOperand
Composite type of the left-hand side sparse vector expression.
Definition: SVecDVecSubExpr.h:145
ResultType::TransposeType TransposeType
Transpose type for expression template evaluations.
Definition: SVecDVecSubExpr.h:135
Constraint on the data type.
VT1::ResultType RT1
Result type of the left-hand side sparse vector expression.
Definition: SVecDVecSubExpr.h:94
void smpAddAssign(DenseMatrix< MT1, SO1 > &lhs, const Matrix< MT2, SO2 > &rhs)
Default implementation of the SMP addition assignment of a matrix to a dense matrix.
Definition: DenseMatrix.h:122
const This & CompositeType
Data type for composite expression templates.
Definition: CompressedMatrix.h:253
Compile time type selection.The SelectType class template selects one of the two given types T1 and T...
Definition: SelectType.h:59
Header file for the IsTemporary type trait class.
void assign(Matrix< MT1, SO1 > &lhs, const Matrix< MT2, SO2 > &rhs)
Default implementation of the assignment of a matrix to a matrix.
Definition: Matrix.h:271
SubTrait< RT1, RT2 >::Type ResultType
Result type for expression template evaluations.
Definition: SVecDVecSubExpr.h:134
const DenseIterator< Type > operator+(const DenseIterator< Type > &it, ptrdiff_t inc)
Addition between a DenseIterator and an integral value.
Definition: DenseIterator.h:556
Base class for N-dimensional dense vectors.The DenseVector class is a base class for all arbitrarily ...
Definition: DenseVector.h:70
size_t size() const
Returns the current size/dimension of the vector.
Definition: SVecDVecSubExpr.h:190
RightOperand rightOperand() const
Returns the right-hand side dense vector operand.
Definition: SVecDVecSubExpr.h:210
LeftOperand leftOperand() const
Returns the left-hand side sparse vector operand.
Definition: SVecDVecSubExpr.h:200
const SelectType< returnExpr, ExprReturnType, ElementType >::Type ReturnType
Return type for expression template evaluations.
Definition: SVecDVecSubExpr.h:139
#define BLAZE_CONSTRAINT_MUST_BE_SPARSE_VECTOR_TYPE(T)
Constraint on the data type.In case the given data type T is not a sparse, N-dimensional vector type...
Definition: SparseVector.h:79
Constraint on the data type.
VT2::CompositeType CT2
Composite type of the right-hand side dense vector expression.
Definition: SVecDVecSubExpr.h:99
#define BLAZE_CONSTRAINT_MUST_BE_REFERENCE_TYPE(T)
Constraint on the data type.In case the given data type T is not a reference type, a compilation error is created.
Definition: Reference.h:78
CompressedMatrix< Type, false > TransposeType
Transpose type for expression template evaluations.
Definition: CompressedMatrix.h:2405
Constraint on the data type.
Evaluation of the return type of a subtraction expression.Via this type trait it is possible to evalu...
Definition: SubExprTrait.h:103
VT1::CompositeType CT1
Composite type of the left-hand side sparse vector expression.
Definition: SVecDVecSubExpr.h:98
void multAssign(Matrix< MT1, SO1 > &lhs, const Matrix< MT2, SO2 > &rhs)
Default implementation of the multiplication assignment of a matrix to a matrix.
Definition: Matrix.h:361
Header file for the VecVecSubExpr base class.
Header file for the SelectType class template.
Header file for all forward declarations for expression class templates.
Constraint on the data type.
LeftOperand lhs_
Left-hand side sparse vector of the subtraction expression.
Definition: SVecDVecSubExpr.h:242
ReturnType operator[](size_t index) const
Subscript operator for the direct access to the vector elements.
Definition: SVecDVecSubExpr.h:179
VT1::ReturnType RN1
Return type of the left-hand side sparse vector expression.
Definition: SVecDVecSubExpr.h:96
Header file for the serial shim.
VT2::ReturnType RN2
Return type of the right-hand side dense vector expression.
Definition: SVecDVecSubExpr.h:97
void smpAssign(DenseMatrix< MT1, SO1 > &lhs, const Matrix< MT2, SO2 > &rhs)
Default implementation of the SMP assignment of a matrix to a dense matrix.
Definition: DenseMatrix.h:92
Header file for the IsSparseVector type trait.
const Type & ReturnType
Return type for expression template evaluations.
Definition: CompressedMatrix.h:2407
Header file for run time assertion macros.
bool canAlias(const T *alias) const
Returns whether the expression can alias with the given address alias.
Definition: SVecDVecSubExpr.h:222
void addAssign(Matrix< MT1, SO1 > &lhs, const Matrix< MT2, SO2 > &rhs)
Default implementation of the addition assignment of a matrix to a matrix.
Definition: Matrix.h:301
const DenseIterator< Type > operator-(const DenseIterator< Type > &it, ptrdiff_t inc)
Subtraction between a DenseIterator and an integral value.
Definition: DenseIterator.h:585
SVecDVecSubExpr< VT1, VT2, TF > This
Type of this SVecDVecSubExpr instance.
Definition: SVecDVecSubExpr.h:133
void subAssign(Matrix< MT1, SO1 > &lhs, const Matrix< MT2, SO2 > &rhs)
Default implementation of the subtraction assignment of a matrix to matrix.
Definition: Matrix.h:331
ResultType::ElementType ElementType
Resulting element type.
Definition: SVecDVecSubExpr.h:136
VT1::TransposeType TT1
Transpose type of the left-hand side sparse vector expression.
Definition: SVecDVecSubExpr.h:100
Header file for the IsDenseVector type trait.
VT2::TransposeType TT2
Transpose type of the right-hand side dense vector expression.
Definition: SVecDVecSubExpr.h:101
#define BLAZE_CONSTRAINT_MUST_BE_DENSE_VECTOR_TYPE(T)
Constraint on the data type.In case the given data type T is not a dense, N-dimensional vector type...
Definition: DenseVector.h:79
Header file for the IsComputation type trait class.
Base class for sparse vectors.The SparseVector class is a base class for all arbitrarily sized (N-dim...
Definition: Forward.h:108
#define BLAZE_FUNCTION_TRACE
Function trace macro.This macro can be used to reliably trace function calls. In case function tracin...
Definition: FunctionTrace.h:157
SelectType< IsExpression< VT2 >::value, const VT2, const VT2 & >::Type RightOperand
Composite type of the right-hand side dense vector expression.
Definition: SVecDVecSubExpr.h:148
This ResultType
Result type for expression template evaluations.
Definition: CompressedMatrix.h:2403
RightOperand rhs_
Right-hand side dense vector of the subtraction expression.
Definition: SVecDVecSubExpr.h:243
Header file for basic type definitions.
Header file for the SubvectorExprTrait class template.
Base template for the SubTrait class.
Definition: SubTrait.h:141
Header file for the IsColumnVector type trait.
Header file for the SubExprTrait class template.
#define BLAZE_CONSTRAINT_MUST_BE_VECTOR_WITH_TRANSPOSE_FLAG(T, TF)
Constraint on the data type.In case the given data type T is not a dense or sparse vector type and in...
Definition: TransposeFlag.h:238
#define BLAZE_INTERNAL_ASSERT(expr, msg)
Run time assertion macro for internal checks.In case of an invalid run time expression, the program execution is terminated. The BLAZE_INTERNAL_ASSERT macro can be disabled by setting the BLAZE_USER_ASSERTION flag to zero or by defining NDEBUG during the compilation.
Definition: Assert.h:101
Compile time check whether the given type is an expression template.This type trait class tests wheth...
Definition: IsExpression.h:87
Header file for the IsExpression type trait class.
Header file for the FunctionTrace class.