DVecTransExpr.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_EXPRESSIONS_DVECTRANSEXPR_H_
36 #define _BLAZE_MATH_EXPRESSIONS_DVECTRANSEXPR_H_
37 
38 
39 //*************************************************************************************************
40 // Includes
41 //*************************************************************************************************
42 
43 #include <iterator>
44 #include <blaze/math/Aliases.h>
47 #include <blaze/math/Exception.h>
54 #include <blaze/math/SIMD.h>
68 #include <blaze/system/Inline.h>
69 #include <blaze/util/Assert.h>
70 #include <blaze/util/EmptyType.h>
71 #include <blaze/util/EnableIf.h>
74 #include <blaze/util/InvalidType.h>
75 #include <blaze/util/mpl/And.h>
76 #include <blaze/util/mpl/If.h>
77 #include <blaze/util/Types.h>
78 
79 
80 namespace blaze {
81 
82 //=================================================================================================
83 //
84 // CLASS DVECTRANSEXPR
85 //
86 //=================================================================================================
87 
88 //*************************************************************************************************
95 template< typename VT // Type of the dense vector
96  , bool TF > // Transpose flag
97 class DVecTransExpr : public DenseVector< DVecTransExpr<VT,TF>, TF >
98  , private VecTransExpr
99  , private If< IsComputation<VT>, Computation, EmptyType >::Type
100 {
101  private:
102  //**Type definitions****************************************************************************
104  //**********************************************************************************************
105 
106  //**Serial evaluation strategy******************************************************************
108 
114  enum : bool { useAssign = RequiresEvaluation<VT>::value };
115 
117  template< typename VT2 >
119  struct UseAssign {
120  enum : bool { value = useAssign };
121  };
123  //**********************************************************************************************
124 
125  //**Parallel evaluation strategy****************************************************************
127 
132  template< typename VT2 >
133  struct UseSMPAssign {
134  enum : bool { value = VT2::smpAssignable && useAssign };
135  };
137  //**********************************************************************************************
138 
139  //**********************************************************************************************
141 
145  template< typename VT2 >
146  struct GetConstIterator {
148  struct Success { using Type = typename VT2::ConstIterator; };
149  struct Failure { using Type = INVALID_TYPE; };
150  using Type = typename If_< HasConstIterator<VT2>, Success, Failure >::Type;
151  };
153  //**********************************************************************************************
154 
155  public:
156  //**Type definitions****************************************************************************
162 
165 
167  typedef typename GetConstIterator<VT>::Type ConstIterator;
168 
170  typedef If_< IsExpression<VT>, const VT, const VT& > Operand;
171  //**********************************************************************************************
172 
173  //**Compilation flags***************************************************************************
175  enum : bool { simdEnabled = VT::simdEnabled };
176 
178  enum : bool { smpAssignable = VT::smpAssignable };
179  //**********************************************************************************************
180 
181  //**SIMD properties*****************************************************************************
183  enum : size_t { SIMDSIZE = SIMDTrait<ElementType>::size };
184  //**********************************************************************************************
185 
186  //**Constructor*********************************************************************************
191  explicit inline DVecTransExpr( const VT& dv ) noexcept
192  : dv_( dv ) // Dense vector of the transposition expression
193  {}
194  //**********************************************************************************************
195 
196  //**Subscript operator**************************************************************************
202  inline ReturnType operator[]( size_t index ) const {
203  BLAZE_INTERNAL_ASSERT( index < dv_.size(), "Invalid vector access index" );
204  return dv_[index];
205  }
206  //**********************************************************************************************
207 
208  //**At function*********************************************************************************
215  inline ReturnType at( size_t index ) const {
216  if( index >= dv_.size() ) {
217  BLAZE_THROW_OUT_OF_RANGE( "Invalid vector access index" );
218  }
219  return (*this)[index];
220  }
221  //**********************************************************************************************
222 
223  //**Load function*******************************************************************************
229  BLAZE_ALWAYS_INLINE auto load( size_t index ) const noexcept {
230  BLAZE_INTERNAL_ASSERT( index < dv_.size() , "Invalid vector access index" );
231  BLAZE_INTERNAL_ASSERT( index % SIMDSIZE == 0UL , "Invalid vector access index" );
232  return dv_.load( index );
233  }
234  //**********************************************************************************************
235 
236  //**Low-level data access***********************************************************************
241  inline const ElementType* data() const noexcept {
242  return dv_.data();
243  }
244  //**********************************************************************************************
245 
246  //**Begin function******************************************************************************
251  inline ConstIterator begin() const {
252  return ConstIterator( dv_.begin() );
253  }
254  //**********************************************************************************************
255 
256  //**End function********************************************************************************
261  inline ConstIterator end() const {
262  return ConstIterator( dv_.end() );
263  }
264  //**********************************************************************************************
265 
266  //**Size function*******************************************************************************
271  inline size_t size() const noexcept {
272  return dv_.size();
273  }
274  //**********************************************************************************************
275 
276  //**Operand access******************************************************************************
281  inline Operand operand() const noexcept {
282  return dv_;
283  }
284  //**********************************************************************************************
285 
286  //**********************************************************************************************
292  template< typename T >
293  inline bool canAlias( const T* alias ) const noexcept {
294  return dv_.canAlias( alias );
295  }
296  //**********************************************************************************************
297 
298  //**********************************************************************************************
304  template< typename T >
305  inline bool isAliased( const T* alias ) const noexcept {
306  return dv_.isAliased( alias );
307  }
308  //**********************************************************************************************
309 
310  //**********************************************************************************************
315  inline bool isAligned() const noexcept {
316  return dv_.isAligned();
317  }
318  //**********************************************************************************************
319 
320  //**********************************************************************************************
325  inline bool canSMPAssign() const noexcept {
326  return dv_.canSMPAssign();
327  }
328  //**********************************************************************************************
329 
330  private:
331  //**Member variables****************************************************************************
332  Operand dv_;
333  //**********************************************************************************************
334 
335  //**Assignment to dense vectors*****************************************************************
349  template< typename VT2 > // Type of the target dense vector
350  friend inline EnableIf_< UseAssign<VT2> >
351  assign( DenseVector<VT2,TF>& lhs, const DVecTransExpr& rhs )
352  {
354 
355  BLAZE_INTERNAL_ASSERT( (~lhs).size() == rhs.size(), "Invalid vector sizes" );
356 
357  DVecTransposer<VT2,!TF> tmp( ~lhs );
358  assign( tmp, rhs.dv_ );
359  }
361  //**********************************************************************************************
362 
363  //**Assignment to sparse vectors****************************************************************
377  template< typename VT2 > // Type of the target sparse vector
378  friend inline EnableIf_< UseAssign<VT2> >
379  assign( SparseVector<VT2,TF>& lhs, const DVecTransExpr& rhs )
380  {
382 
383  BLAZE_INTERNAL_ASSERT( (~lhs).size() == rhs.size(), "Invalid vector sizes" );
384 
385  SVecTransposer<VT2,!TF> tmp( ~lhs );
386  assign( tmp, rhs.dv_ );
387  }
389  //**********************************************************************************************
390 
391  //**Addition assignment to dense vectors********************************************************
405  template< typename VT2 > // Type of the target dense vector
406  friend inline EnableIf_< UseAssign<VT2> >
407  addAssign( DenseVector<VT2,TF>& lhs, const DVecTransExpr& rhs )
408  {
410 
411  BLAZE_INTERNAL_ASSERT( (~lhs).size() == rhs.size(), "Invalid vector sizes" );
412 
413  DVecTransposer<VT2,!TF> tmp( ~lhs );
414  addAssign( tmp, rhs.dv_ );
415  }
417  //**********************************************************************************************
418 
419  //**Addition assignment to sparse vectors*******************************************************
420  // No special implementation for the addition assignment to sparse vectors.
421  //**********************************************************************************************
422 
423  //**Subtraction assignment to dense vectors*****************************************************
437  template< typename VT2 > // Type of the target dense vector
438  friend inline EnableIf_< UseAssign<VT2> >
439  subAssign( DenseVector<VT2,TF>& lhs, const DVecTransExpr& rhs )
440  {
442 
443  BLAZE_INTERNAL_ASSERT( (~lhs).size() == rhs.size(), "Invalid vector sizes" );
444 
445  DVecTransposer<VT2,!TF> tmp( ~lhs );
446  subAssign( tmp, rhs.dv_ );
447  }
449  //**********************************************************************************************
450 
451  //**Subtraction assignment to sparse vectors****************************************************
452  // No special implementation for the subtraction assignment to sparse vectors.
453  //**********************************************************************************************
454 
455  //**Multiplication assignment to dense vectors**************************************************
469  template< typename VT2 > // Type of the target dense vector
470  friend inline EnableIf_< UseAssign<VT2> >
471  multAssign( DenseVector<VT2,TF>& lhs, const DVecTransExpr& rhs )
472  {
474 
475  BLAZE_INTERNAL_ASSERT( (~lhs).size() == rhs.size(), "Invalid vector sizes" );
476 
477  DVecTransposer<VT2,!TF> tmp( ~lhs );
478  multAssign( tmp, rhs.dv_ );
479  }
481  //**********************************************************************************************
482 
483  //**Multiplication assignment to sparse vectors*************************************************
484  // No special implementation for the multiplication assignment to sparse vectors.
485  //**********************************************************************************************
486 
487  //**Division assignment to dense vectors********************************************************
501  template< typename VT2 > // Type of the target dense vector
502  friend inline EnableIf_< UseAssign<VT2> >
503  divAssign( DenseVector<VT2,TF>& lhs, const DVecTransExpr& rhs )
504  {
506 
507  BLAZE_INTERNAL_ASSERT( (~lhs).size() == rhs.size(), "Invalid vector sizes" );
508 
509  DVecTransposer<VT2,!TF> tmp( ~lhs );
510  divAssign( tmp, rhs.dv_ );
511  }
513  //**********************************************************************************************
514 
515  //**Division assignment to sparse vectors*******************************************************
516  // No special implementation for the division assignment to sparse vectors.
517  //**********************************************************************************************
518 
519  //**SMP assignment to dense vectors*************************************************************
533  template< typename VT2 > // Type of the target dense vector
534  friend inline EnableIf_< UseSMPAssign<VT2> >
535  smpAssign( DenseVector<VT2,TF>& lhs, const DVecTransExpr& rhs )
536  {
538 
539  BLAZE_INTERNAL_ASSERT( (~lhs).size() == rhs.size(), "Invalid vector sizes" );
540 
541  DVecTransposer<VT2,!TF> tmp( ~lhs );
542  smpAssign( tmp, rhs.dv_ );
543  }
545  //**********************************************************************************************
546 
547  //**SMP assignment to sparse vectors************************************************************
561  template< typename VT2 > // Type of the target sparse vector
562  friend inline EnableIf_< UseSMPAssign<VT2> >
563  smpAssign( SparseVector<VT2,TF>& lhs, const DVecTransExpr& rhs )
564  {
566 
567  BLAZE_INTERNAL_ASSERT( (~lhs).size() == rhs.size(), "Invalid vector sizes" );
568 
569  SVecTransposer<VT2,!TF> tmp( ~lhs );
570  smpAssign( tmp, rhs.dv_ );
571  }
573  //**********************************************************************************************
574 
575  //**SMP addition assignment to dense vectors****************************************************
589  template< typename VT2 > // Type of the target dense vector
590  friend inline EnableIf_< UseSMPAssign<VT2> >
592  {
594 
595  BLAZE_INTERNAL_ASSERT( (~lhs).size() == rhs.size(), "Invalid vector sizes" );
596 
597  DVecTransposer<VT2,!TF> tmp( ~lhs );
598  smpAddAssign( tmp, rhs.dv_ );
599  }
601  //**********************************************************************************************
602 
603  //**SMP addition assignment to sparse vectors***************************************************
604  // No special implementation for the SMP addition assignment to sparse vectors.
605  //**********************************************************************************************
606 
607  //**SMP subtraction assignment to dense vectors*************************************************
621  template< typename VT2 > // Type of the target dense vector
622  friend inline EnableIf_< UseSMPAssign<VT2> >
624  {
626 
627  BLAZE_INTERNAL_ASSERT( (~lhs).size() == rhs.size(), "Invalid vector sizes" );
628 
629  DVecTransposer<VT2,!TF> tmp( ~lhs );
630  smpSubAssign( tmp, rhs.dv_ );
631  }
633  //**********************************************************************************************
634 
635  //**SMP subtraction assignment to sparse vectors************************************************
636  // No special implementation for the SMP subtraction assignment to sparse vectors.
637  //**********************************************************************************************
638 
639  //**SMP multiplication assignment to dense vectors**********************************************
653  template< typename VT2 > // Type of the target dense vector
654  friend inline EnableIf_< UseSMPAssign<VT2> >
656  {
658 
659  BLAZE_INTERNAL_ASSERT( (~lhs).size() == rhs.size(), "Invalid vector sizes" );
660 
661  DVecTransposer<VT2,!TF> tmp( ~lhs );
662  smpMultAssign( tmp, rhs.dv_ );
663  }
665  //**********************************************************************************************
666 
667  //**SMP multiplication assignment to sparse vectors*********************************************
668  // No special implementation for the SMP multiplication assignment to sparse vectors.
669  //**********************************************************************************************
670 
671  //**SMP division assignment to dense vectors****************************************************
685  template< typename VT2 > // Type of the target dense vector
686  friend inline EnableIf_< UseSMPAssign<VT2> >
688  {
690 
691  BLAZE_INTERNAL_ASSERT( (~lhs).size() == rhs.size(), "Invalid vector sizes" );
692 
693  DVecTransposer<VT2,!TF> tmp( ~lhs );
694  smpDivAssign( tmp, rhs.dv_ );
695  }
697  //**********************************************************************************************
698 
699  //**SMP division assignment to sparse vectors***************************************************
700  // No special implementation for the SMP division assignment to sparse vectors.
701  //**********************************************************************************************
702 
703  //**Compile time checks*************************************************************************
708  //**********************************************************************************************
709 };
710 //*************************************************************************************************
711 
712 
713 
714 
715 //=================================================================================================
716 //
717 // GLOBAL OPERATORS
718 //
719 //=================================================================================================
720 
721 //*************************************************************************************************
740 template< typename VT // Type of the dense vector
741  , bool TF > // Transpose flag
743 {
745 
746  return DVecTransExpr<VT,!TF>( ~dv );
747 }
748 //*************************************************************************************************
749 
750 
751 
752 
753 //=================================================================================================
754 //
755 // GLOBAL RESTRUCTURING FUNCTIONS
756 //
757 //=================================================================================================
758 
759 //*************************************************************************************************
779 template< typename VT // Type of the dense vector
780  , bool TF > // Transpose flag
781 inline typename DVecTransExpr<VT,TF>::Operand trans( const DVecTransExpr<VT,TF>& dv )
782 {
784 
785  return dv.operand();
786 }
788 //*************************************************************************************************
789 
790 
791 
792 
793 //=================================================================================================
794 //
795 // SIZE SPECIALIZATIONS
796 //
797 //=================================================================================================
798 
799 //*************************************************************************************************
801 template< typename VT, bool TF >
802 struct Size< DVecTransExpr<VT,TF> > : public Size<VT>
803 {};
805 //*************************************************************************************************
806 
807 
808 
809 
810 //=================================================================================================
811 //
812 // ISALIGNED SPECIALIZATIONS
813 //
814 //=================================================================================================
815 
816 //*************************************************************************************************
818 template< typename VT, bool TF >
819 struct IsAligned< DVecTransExpr<VT,TF> >
820  : public BoolConstant< IsAligned<VT>::value >
821 {};
823 //*************************************************************************************************
824 
825 
826 
827 
828 //=================================================================================================
829 //
830 // ISPADDED SPECIALIZATIONS
831 //
832 //=================================================================================================
833 
834 //*************************************************************************************************
836 template< typename VT, bool TF >
837 struct IsPadded< DVecTransExpr<VT,TF> >
838  : public BoolConstant< IsPadded<VT>::value >
839 {};
841 //*************************************************************************************************
842 
843 
844 
845 
846 //=================================================================================================
847 //
848 // EXPRESSION TRAIT SPECIALIZATIONS
849 //
850 //=================================================================================================
851 
852 //*************************************************************************************************
854 template< typename VT >
855 struct DVecTransExprTrait< DVecTransExpr<VT,false> >
856 {
857  public:
858  //**********************************************************************************************
861  , INVALID_TYPE >;
862  //**********************************************************************************************
863 };
865 //*************************************************************************************************
866 
867 
868 //*************************************************************************************************
870 template< typename VT >
871 struct TDVecTransExprTrait< DVecTransExpr<VT,true> >
872 {
873  public:
874  //**********************************************************************************************
877  , INVALID_TYPE >;
878  //**********************************************************************************************
879 };
881 //*************************************************************************************************
882 
883 
884 //*************************************************************************************************
886 template< typename VT, bool TF, bool AF >
887 struct SubvectorExprTrait< DVecTransExpr<VT,TF>, AF >
888 {
889  public:
890  //**********************************************************************************************
892  //**********************************************************************************************
893 };
895 //*************************************************************************************************
896 
897 } // namespace blaze
898 
899 #endif
bool isAliased(const T *alias) const noexcept
Returns whether the expression is aliased with the given address alias.
Definition: DVecTransExpr.h:305
ReturnType_< VT > ReturnType
Return type for expression template evaluations.
Definition: DVecTransExpr.h:161
Compile time check for row vector types.This type trait tests whether or not the given template argum...
Definition: IsRowVector.h:80
Header file for auxiliary alias declarations.
const ElementType * data() const noexcept
Low-level data access to the vector elements.
Definition: DVecTransExpr.h:241
Evaluation of the expression type type of a subvector operation.Via this type trait it is possible to...
Definition: SubvectorExprTrait.h:79
Base class for all vector transposition expression templates.The VecTransExpr class serves as a tag f...
Definition: VecTransExpr.h:65
Compile time type selection.The If class template selects one of the two given types T2 and T3 depend...
Definition: If.h:132
Header file for basic type definitions.
EnableIf_< IsDenseMatrix< MT1 > > smpSubAssign(Matrix< MT1, SO1 > &lhs, const Matrix< MT2, SO2 > &rhs)
Default implementation of the SMP subtraction assignment of a matrix to dense matrix.
Definition: DenseMatrix.h:160
DVecTransExpr(const VT &dv) noexcept
Constructor for the DVecTransExpr class.
Definition: DVecTransExpr.h:191
ReturnType operator[](size_t index) const
Subscript operator for the direct access to the vector elements.
Definition: DVecTransExpr.h:202
ResultType_< VT > TransposeType
Transpose type for expression template evaluations.
Definition: DVecTransExpr.h:159
Generic wrapper for a compile time constant integral value.The IntegralConstant class template repres...
Definition: IntegralConstant.h:71
Header file for the IsRowVector type trait.
EnableIf_< IsDenseVector< VT1 > > smpMultAssign(Vector< 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:193
Header file for the And class template.
Header file for the DenseVector base class.
#define BLAZE_CREATE_HAS_TYPE_MEMBER_TYPE_TRAIT(TYPE_TRAIT_NAME, MEMBER_NAME)
Macro for the creation of a type trait for compile time checks for member types.This macro creates th...
Definition: HasMember.h:182
Header file for the Computation base class.
Header file for the RequiresEvaluation type trait.
typename T::ResultType ResultType_
Alias declaration for nested ResultType type definitions.The ResultType_ alias declaration provides a...
Definition: Aliases.h:323
EnableIf_< IsDenseMatrix< MT1 > > smpAddAssign(Matrix< 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:129
Operand operand() const noexcept
Returns the dense vector operand.
Definition: DVecTransExpr.h:281
Expression object for the transposition of a dense vector.The DVecTransposer class is a wrapper objec...
Definition: DVecTransposer.h:77
typename IfTrue< Condition, T1, T2 >::Type IfTrue_
Auxiliary alias declaration for the IfTrue class template.The IfTrue_ alias declaration provides a co...
Definition: If.h:109
typename T::ReturnType ReturnType_
Alias declaration for nested ReturnType type definitions.The ReturnType_ alias declaration provides a...
Definition: Aliases.h:343
Operand dv_
Dense vector of the transposition expression.
Definition: DVecTransExpr.h:332
Compile time check for the alignment of data types.This type trait tests whether the given data type ...
Definition: IsAligned.h:87
Compile time check to query the requirement to evaluate an expression.Via this type trait it is possi...
Definition: RequiresEvaluation.h:72
typename T::CompositeType CompositeType_
Alias declaration for nested CompositeType type definitions.The CompositeType_ alias declaration prov...
Definition: Aliases.h:83
typename TransExprTrait< T >::Type TransExprTrait_
Auxiliary alias declaration for the TransExprTrait class template.The TransExprTrait_ alias declarati...
Definition: TransExprTrait.h:143
bool canAlias(const T *alias) const noexcept
Returns whether the expression can alias with the given address alias.
Definition: DVecTransExpr.h:293
Namespace of the Blaze C++ math library.
Definition: Blaze.h:57
#define BLAZE_ALWAYS_INLINE
Platform dependent setup of an enforced inline keyword.
Definition: Inline.h:85
Header file for the If class template.
ReturnType at(size_t index) const
Checked access to the vector elements.
Definition: DVecTransExpr.h:215
Header file for the dense vector transposer.
const Element * ConstIterator
Iterator over constant elements.
Definition: CompressedMatrix.h:2939
Compile time check for data types with padding.This type trait tests whether the given data type empl...
Definition: IsPadded.h:76
EnableIf_< IsDenseMatrix< MT1 > > smpAssign(Matrix< MT1, SO1 > &lhs, const Matrix< MT2, SO2 > &rhs)
Default implementation of the SMP assignment of a matrix to a dense matrix.
Definition: DenseMatrix.h:98
#define BLAZE_THROW_OUT_OF_RANGE(MESSAGE)
Macro for the emission of a std::out_of_range exception.This macro encapsulates the default way of Bl...
Definition: Exception.h:331
typename T::ElementType ElementType_
Alias declaration for nested ElementType type definitions.The ElementType_ alias declaration provides...
Definition: Aliases.h:163
Expression object for the transposition of a sparse vector.The SVecTransposer class is a wrapper obje...
Definition: Forward.h:137
Header file for all SIMD functionality.
BLAZE_ALWAYS_INLINE auto load(size_t index) const noexcept
Access to the SIMD elements of the vector.
Definition: DVecTransExpr.h:229
Base class for N-dimensional dense vectors.The DenseVector class is a base class for all arbitrarily ...
Definition: DenseVector.h:70
IfTrue_< useAssign, const ResultType, const DVecTransExpr &> CompositeType
Data type for composite expression templates.
Definition: DVecTransExpr.h:164
size_t size() const noexcept
Returns the current size/dimension of the vector.
Definition: DVecTransExpr.h:271
Header file for the IsAligned type trait.
ConstIterator end() const
Returns an iterator just past the last non-zero element of the dense vector.
Definition: DVecTransExpr.h:261
Constraint on the data type.
GetConstIterator< VT >::Type ConstIterator
Iterator over the elements of the dense vector.
Definition: DVecTransExpr.h:167
Compile time check for column vector types.This type trait tests whether or not the given template ar...
Definition: IsColumnVector.h:80
Evaluation of the expression type of a dense vector transpose operation.Via this type trait it is pos...
Definition: TDVecTransExprTrait.h:74
Constraint on the data type.
Header file for the exception macros of the math module.
Header file for all forward declarations for expression class templates.
CompositeType_< VT > CT
Composite type of the dense vector expression.
Definition: DVecTransExpr.h:103
ElementType_< VT > ElementType
Resulting element type.
Definition: DVecTransExpr.h:160
bool canSMPAssign() const noexcept
Returns whether the expression can be used in SMP assignments.
Definition: DVecTransExpr.h:325
Header file for the EnableIf class template.
Header file for the IsPadded type trait.
ConstIterator begin() const
Returns an iterator to the first non-zero element of the dense vector.
Definition: DVecTransExpr.h:251
If_< IsExpression< VT >, const VT, const VT &> Operand
Composite data type of the dense vector expression.
Definition: DVecTransExpr.h:170
Header file for the VecTransExpr base class.
bool isAligned() const noexcept
Returns whether the operands of the expression are properly aligned in memory.
Definition: DVecTransExpr.h:315
Header file for run time assertion macros.
Utility type for generic codes.
typename If< T1, T2, T3 >::Type If_
Auxiliary alias declaration for the If class template.The If_ alias declaration provides a convenient...
Definition: If.h:160
EnableIf_< IsDenseVector< VT1 > > smpDivAssign(Vector< VT1, TF1 > &lhs, const Vector< VT2, TF2 > &rhs)
Default implementation of the SMP division assignment of a vector to a dense vector.
Definition: DenseVector.h:222
SIMD characteristics of data types.The SIMDTrait class template provides the SIMD characteristics of ...
Definition: SIMDTrait.h:296
#define BLAZE_FUNCTION_TRACE
Function trace macro.This macro can be used to reliably trace function calls. In case function tracin...
Definition: FunctionTrace.h:93
Header file for the TransExprTrait class template.
Header file for the DVecTransExprTrait class template.
typename EnableIf< Condition, T >::Type EnableIf_
Auxiliary alias declaration for the EnableIf class template.The EnableIf_ alias declaration provides ...
Definition: EnableIf.h:223
Header file for the IsDenseVector type trait.
#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:61
Header file for the sparse vector transposer.
const DMatTransExpr< MT,!SO > trans(const DenseMatrix< MT, SO > &dm)
Calculation of the transpose of the given dense matrix.
Definition: DMatTransExpr.h:733
Header file for the IsComputation type trait class.
Compile time evaluation of the size of a vector.The Size type trait evaluates the size of the given v...
Definition: Size.h:75
Header file for the TDVecTransExprTrait class template.
Base class for sparse vectors.The SparseVector class is a base class for all arbitrarily sized (N-dim...
Definition: Forward.h:120
Header file for the IntegralConstant class template.
Header file for the SubvectorExprTrait class template.
Expression object for dense vector transpositions.The DVecTransExpr class represents the compile time...
Definition: DVecTransExpr.h:97
typename T::TransposeType TransposeType_
Alias declaration for nested TransposeType type definitions.The TransposeType_ alias declaration prov...
Definition: Aliases.h:403
Header file for the IsColumnVector type trait.
Header file for the empty type.
TransposeType_< VT > ResultType
Result type for expression template evaluations.
Definition: DVecTransExpr.h:158
System settings for the inline keywords.
Evaluation of the expression type of a dense vector transpose operation.Via this type trait it is pos...
Definition: DVecTransExprTrait.h:74
Header file for the Size type trait.
#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:63
#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
DVecTransExpr< VT, TF > This
Type of this DVecTransExpr instance.
Definition: DVecTransExpr.h:157
typename T::Operand Operand_
Alias declaration for nested Operand type definitions.The Operand_ alias declaration provides a conve...
Definition: Aliases.h:223
Header file for the IsExpression type trait class.
Header file for the function trace functionality.