35 #ifndef _BLAZE_MATH_EXPRESSIONS_DVECTRANSEXPR_H_
36 #define _BLAZE_MATH_EXPRESSIONS_DVECTRANSEXPR_H_
86 ,
private SelectType< IsComputation<VT>::value, Computation, EmptyType >::Type
104 template<
typename VT2 >
107 enum { value = useAssign };
119 template<
typename VT2 >
120 struct UseSMPAssign {
121 enum { value = VT2::smpAssignable && useAssign };
259 inline IntrinsicType
load()
const {
386 enum { vectorizable = VT::vectorizable };
389 enum { smpAssignable = VT::smpAssignable };
424 return dv_.load( index );
433 inline const ElementType*
data()
const {
484 template<
typename T >
486 return dv_.canAlias( alias );
496 template<
typename T >
498 return dv_.isAliased( alias );
508 return dv_.isAligned();
518 return dv_.canSMPAssign();
541 template<
typename VT2 >
569 template<
typename VT2 >
597 template<
typename VT2 >
598 friend inline typename EnableIf< UseAssign<VT2> >::Type
605 DVecTransposer<VT2,!TF> tmp( ~lhs );
629 template<
typename VT2 >
630 friend inline typename EnableIf< UseAssign<VT2> >::Type
637 DVecTransposer<VT2,!TF> tmp( ~lhs );
661 template<
typename VT2 >
662 friend inline typename EnableIf< UseAssign<VT2> >::Type
669 DVecTransposer<VT2,!TF> tmp( ~lhs );
693 template<
typename VT2 >
694 friend inline typename EnableIf< UseSMPAssign<VT2> >::Type
701 DVecTransposer<VT2,!TF> tmp( ~lhs );
721 template<
typename VT2 >
722 friend inline typename EnableIf< UseSMPAssign<VT2> >::Type
729 SVecTransposer<VT2,!TF> tmp( ~lhs );
749 template<
typename VT2 >
750 friend inline typename EnableIf< UseSMPAssign<VT2> >::Type
757 DVecTransposer<VT2,!TF> tmp( ~lhs );
781 template<
typename VT2 >
782 friend inline typename EnableIf< UseSMPAssign<VT2> >::Type
789 DVecTransposer<VT2,!TF> tmp( ~lhs );
813 template<
typename VT2 >
814 friend inline typename EnableIf< UseSMPAssign<VT2> >::Type
821 DVecTransposer<VT2,!TF> tmp( ~lhs );
849 template<
typename VT2
851 friend inline Operand
trans(
const DVecTransExpr<VT2,TF2>& dv )
897 template<
typename VT
918 template<
typename VT,
bool TF >
919 struct Size< DVecTransExpr<VT,TF> >
936 template<
typename VT,
bool TF,
bool AF >
937 struct SubvectorExprTrait< DVecTransExpr<VT,TF>, AF >
941 typedef typename TransExprTrait< typename SubvectorExprTrait<const VT,AF>::Type >::Type Type;
bool isAliased(const T *alias) const
Returns whether the expression is aliased with the given address alias.
Definition: DVecTransExpr.h:497
Pointer difference type of the Blaze library.
VT::TransposeType ResultType
Result type for expression template evaluations.
Definition: DVecTransExpr.h:129
BLAZE_ALWAYS_INLINE 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:879
ElementType & ReferenceType
Reference return type.
Definition: DVecTransExpr.h:154
const ElementType * data() const
Low-level data access to the vector elements.
Definition: DVecTransExpr.h:433
Base class for all vector transposition expression templates.The VecTransExpr class serves as a tag f...
Definition: VecTransExpr.h:65
Header file for basic type definitions.
const ConstIterator operator++(int)
Post-increment operator.
Definition: DVecTransExpr.h:218
BLAZE_ALWAYS_INLINE size_t size(const Vector< VT, TF > &vector)
Returns the current size/dimension of the vector.
Definition: Vector.h:264
VT::ConstIterator IteratorType
ConstIterator type of the dense vector expression.
Definition: DVecTransExpr.h:165
std::random_access_iterator_tag IteratorCategory
The iterator category.
Definition: DVecTransExpr.h:151
const This & CompositeType
Data type for composite expression templates.
Definition: CompressedMatrix.h:2507
ConstIterator end() const
Returns an iterator just past the last non-zero element of the dense vector.
Definition: DVecTransExpr.h:453
ConstIterator & operator--()
Pre-decrement operator.
Definition: DVecTransExpr.h:228
ConstIterator & operator+=(size_t inc)
Addition assignment operator.
Definition: DVecTransExpr.h:184
Header file for the DenseVector base class.
friend const ConstIterator operator+(size_t inc, const ConstIterator &it)
Addition between an integral value and a ConstIterator.
Definition: DVecTransExpr.h:360
Header file for the Computation base class.
Iterator over the elements of the dense vector.
Definition: DVecTransExpr.h:147
IntrinsicTrait< ElementType >::Type IntrinsicType
Resulting intrinsic element type.
Definition: DVecTransExpr.h:135
Header file for the RequiresEvaluation type trait.
SelectType< useAssign, const ResultType, const DVecTransExpr & >::Type CompositeType
Data type for composite expression templates.
Definition: DVecTransExpr.h:138
ConstIterator(IteratorType iterator)
Constructor for the ConstIterator class.
Definition: DVecTransExpr.h:173
Expression object for the transposition of a dense vector.The DVecTransposer class is a wrapper objec...
Definition: DVecTransposer.h:72
BLAZE_ALWAYS_INLINE IntrinsicType load(size_t index) const
Access to the intrinsic elements of the vector.
Definition: DVecTransExpr.h:420
Operand dv_
Dense vector of the transposition expression.
Definition: DVecTransExpr.h:524
VT::ReturnType ReturnType
Return type for expression template evaluations.
Definition: DVecTransExpr.h:132
Compile time check to query the requirement to evaluate an expression.Via this type trait it is possi...
Definition: RequiresEvaluation.h:90
SelectType< IsExpression< VT >::value, const VT, const VT & >::Type Operand
Composite data type of the dense vector expression.
Definition: DVecTransExpr.h:141
ReferenceType reference
Reference return type.
Definition: DVecTransExpr.h:161
Compile time type selection.The SelectType class template selects one of the two given types T1 and T...
Definition: SelectType.h:59
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
IntrinsicType load() const
Access to the intrinsic elements of the vector.
Definition: DVecTransExpr.h:259
bool operator!=(const ConstIterator &rhs) const
Inequality comparison between two ConstIterator objects.
Definition: DVecTransExpr.h:281
ElementType ValueType
Type of the underlying elements.
Definition: DVecTransExpr.h:152
Header file for the dense vector transposer.
bool canSMPAssign() const
Returns whether the expression can be used in SMP assignments.
Definition: DVecTransExpr.h:517
ConstIterator & operator-=(size_t dec)
Subtraction assignment operator.
Definition: DVecTransExpr.h:196
const Element * ConstIterator
Iterator over constant elements.
Definition: CompressedMatrix.h:2511
BLAZE_ALWAYS_INLINE 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:635
VT::ResultType TransposeType
Transpose type for expression template evaluations.
Definition: DVecTransExpr.h:130
Expression object for the transposition of a sparse vector.The SVecTransposer class is a wrapper obje...
Definition: Forward.h:123
Base class for N-dimensional dense vectors.The DenseVector class is a base class for all arbitrarily ...
Definition: DenseVector.h:70
bool canAlias(const T *alias) const
Returns whether the expression can alias with the given address alias.
Definition: DVecTransExpr.h:485
bool operator>(const ConstIterator &rhs) const
Greater-than comparison between two ConstIterator objects.
Definition: DVecTransExpr.h:303
ptrdiff_t DifferenceType
Difference between two iterators.
Definition: DVecTransExpr.h:155
Constraint on the data type.
bool operator>=(const ConstIterator &rhs) const
Greater-than comparison between two ConstIterator objects.
Definition: DVecTransExpr.h:325
CompressedMatrix< Type, false > TransposeType
Transpose type for expression template evaluations.
Definition: CompressedMatrix.h:2504
Constraint on the data type.
Type ElementType
Type of the sparse matrix elements.
Definition: CompressedMatrix.h:2505
ReturnType operator*() const
Direct access to the element at the current iterator position.
Definition: DVecTransExpr.h:249
bool operator==(const ConstIterator &rhs) const
Equality comparison between two ConstIterator objects.
Definition: DVecTransExpr.h:270
Header file for the SelectType class template.
Header file for all forward declarations for expression class templates.
Header file for the EnableIf class template.
DifferenceType operator-(const ConstIterator &rhs) const
Calculating the number of elements between two iterators.
Definition: DVecTransExpr.h:336
bool operator<=(const ConstIterator &rhs) const
Less-than comparison between two ConstIterator objects.
Definition: DVecTransExpr.h:314
EnableIf< IsDenseMatrix< MT1 > >::Type 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
const Type & ReturnType
Return type for expression template evaluations.
Definition: CompressedMatrix.h:2506
Header file for the VecTransExpr base class.
Intrinsic characteristics of data types.The IntrinsicTrait class template provides the intrinsic char...
Definition: IntrinsicTrait.h:749
Header file for run time assertion macros.
EnableIf< IsDenseMatrix< MT1 > >::Type 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
BLAZE_ALWAYS_INLINE 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:742
VT::ElementType ElementType
Resulting element type.
Definition: DVecTransExpr.h:131
friend const ConstIterator operator+(const ConstIterator &it, size_t inc)
Addition between a ConstIterator and an integral value.
Definition: DVecTransExpr.h:348
Substitution Failure Is Not An Error (SFINAE) class.The EnableIf class template is an auxiliary tool ...
Definition: EnableIf.h:184
PointerType pointer
Pointer return type.
Definition: DVecTransExpr.h:160
Header file for the TransExprTrait class template.
VT::CompositeType CT
Composite type of the dense vector expression.
Definition: DVecTransExpr.h:90
DVecTransExpr(const VT &dv)
Constructor for the DVecTransExpr class.
Definition: DVecTransExpr.h:397
DifferenceType difference_type
Difference between two iterators.
Definition: DVecTransExpr.h:162
ElementType * PointerType
Pointer return type.
Definition: DVecTransExpr.h:153
const ConstIterator operator--(int)
Post-decrement operator.
Definition: DVecTransExpr.h:239
Header file for all intrinsic functionality.
#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 sparse vector transposer.
ConstIterator & operator++()
Pre-increment operator.
Definition: DVecTransExpr.h:207
const DMatTransExpr< MT,!SO > trans(const DenseMatrix< MT, SO > &dm)
Calculation of the transpose of the given dense matrix.
Definition: DMatTransExpr.h:937
bool isAligned() const
Returns whether the operands of the expression are properly aligned in memory.
Definition: DVecTransExpr.h:507
Header file for the IsComputation type trait class.
EnableIf< IsDenseMatrix< MT1 > >::Type 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
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
This ResultType
Result type for expression template evaluations.
Definition: CompressedMatrix.h:2502
bool operator<(const ConstIterator &rhs) const
Less-than comparison between two ConstIterator objects.
Definition: DVecTransExpr.h:292
IteratorCategory iterator_category
The iterator category.
Definition: DVecTransExpr.h:158
size_t size() const
Returns the current size/dimension of the vector.
Definition: DVecTransExpr.h:463
Header file for the SubvectorExprTrait class template.
Expression object for dense vector transpositions.The DVecTransExpr class represents the compile time...
Definition: DVecTransExpr.h:84
IteratorType iterator_
Iterator to the current element.
Definition: DVecTransExpr.h:379
ReturnType operator[](size_t index) const
Subscript operator for the direct access to the vector elements.
Definition: DVecTransExpr.h:408
ConstIterator begin() const
Returns an iterator to the first non-zero element of the dense vector.
Definition: DVecTransExpr.h:443
Header file for the empty type.
ValueType value_type
Type of the underlying elements.
Definition: DVecTransExpr.h:159
friend const ConstIterator operator-(const ConstIterator &it, size_t dec)
Subtraction between a ConstIterator and an integral value.
Definition: DVecTransExpr.h:372
System settings for the inline keywords.
EnableIf< IsDenseVector< VT1 > >::Type 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:189
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:238
Operand operand() const
Returns the dense vector operand.
Definition: DVecTransExpr.h:473
#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:128
Header file for the IsExpression type trait class.
Header file for the FunctionTrace class.
BLAZE_ALWAYS_INLINE 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:849