35 #ifndef _BLAZE_MATH_EXPRESSIONS_DVECDVECOUTEREXPR_H_ 36 #define _BLAZE_MATH_EXPRESSIONS_DVECDVECOUTEREXPR_H_ 100 template<
typename VT1
103 :
public VecTVecMultExpr< DenseMatrix< DVecDVecOuterExpr<VT1,VT2>, false > >
149 enum :
bool { useAssign = ( evaluateLeft || evaluateRight ) };
152 template<
typename VT >
155 enum :
bool { value = useAssign };
166 template<
typename VT >
167 struct UseSMPAssign {
168 enum :
bool { value = evaluateRight };
178 template<
typename T1,
typename T2,
typename T3 >
179 struct UseVectorizedKernel {
180 enum :
bool { value = useOptimizedKernels &&
181 T1::simdEnabled && T2::simdEnabled && T3::simdEnabled &&
195 template<
typename T1,
typename T2,
typename T3 >
196 struct UseDefaultKernel {
197 enum :
bool { value = !UseVectorizedKernel<T1,T2,T3>::value };
341 return (*left_) * (*right_);
350 inline auto load() const noexcept {
351 return set( *left_ ) * right_.load();
362 return right_ == rhs.
right_;
373 return right_ != rhs.
right_;
384 return right_ < rhs.
right_;
395 return right_ > rhs.
right_;
406 return right_ <= rhs.
right_;
417 return right_ >= rhs.
right_;
428 return right_ - rhs.
right_;
478 enum :
bool { simdEnabled = VT1::simdEnabled && VT2::simdEnabled &&
482 enum :
bool { smpAssignable = VT1::smpAssignable && !evaluateRight };
526 if( i >=
lhs_.size() ) {
529 if( j >=
rhs_.size() ) {
547 return set(
lhs_[i] ) *
rhs_.load( j );
580 inline size_t rows() const noexcept {
621 template<
typename T >
622 inline bool canAlias(
const T* alias )
const noexcept {
623 return (
lhs_.canAlias( alias ) ||
rhs_.canAlias( alias ) );
633 template<
typename T >
634 inline bool isAliased(
const T* alias )
const noexcept {
635 return (
lhs_.isAliased( alias ) ||
rhs_.isAliased( alias ) );
645 return lhs_.isAligned() &&
rhs_.isAligned();
655 return (
rows() *
columns() >= SMP_DVECDVECOUTER_THRESHOLD );
679 template<
typename MT >
696 DVecDVecOuterExpr::selectAssignKernel( ~lhs, x, y );
715 template<
typename MT
721 const size_t M( (~A).
rows() );
722 const size_t N( (~A).
columns() );
724 const size_t jpos( N &
size_t(-2) );
727 for(
size_t i=0UL; i<M; ++i ) {
728 for(
size_t j=0UL; j<jpos; j+=2UL ) {
729 (~A)(i,j ) = x[i] * y[j ];
730 (~A)(i,j+1UL) = x[i] * y[j+1];
733 (~A)(i,jpos) = x[i] * y[jpos];
754 template<
typename MT
762 const size_t M( (~A).
rows() );
763 const size_t N( (~A).
columns() );
765 const size_t jpos( remainder ? ( N &
size_t(-SIMDSIZE) ) : N );
768 for(
size_t i=0UL; i<M; ++i )
774 for( ; j<jpos; j+=SIMDSIZE ) {
775 (~A).store( i, j, x1 * y.load(j) );
777 for( ; remainder && j<N; ++j ) {
778 (~A)(i,j) = x[i] * y[j];
797 template<
typename MT >
815 DVecDVecOuterExpr::selectAssignKernel( ~lhs, x, y );
834 template<
typename MT
840 const size_t M( (~A).
rows() );
841 const size_t N( (~A).
columns() );
843 const size_t ipos( M &
size_t(-2) );
846 for(
size_t j=0UL; j<N; ++j ) {
847 for(
size_t i=0UL; i<ipos; i+=2UL ) {
848 (~A)(i ,j) = x[i ] * y[j];
849 (~A)(i+1UL,j) = x[i+1] * y[j];
852 (~A)(ipos,j) = x[ipos] * y[j];
873 template<
typename MT
881 const size_t M( (~A).
rows() );
882 const size_t N( (~A).
columns() );
884 const size_t ipos( remainder ? ( M &
size_t(-SIMDSIZE) ) : M );
887 for(
size_t j=0UL; j<N; ++j )
893 for( ; i<ipos; i+=SIMDSIZE ) {
894 (~A).store( i, j, x.load(i) * y1 );
896 for( ; remainder && i<M; ++i ) {
897 (~A)(i,j) = x[i] * y[j];
916 template<
typename MT
934 const TmpType tmp(
serial( rhs ) );
955 template<
typename MT >
972 DVecDVecOuterExpr::selectAddAssignKernel( ~lhs, x, y );
991 template<
typename MT
997 const size_t M( (~A).
rows() );
998 const size_t N( (~A).
columns() );
1000 const size_t jpos( N &
size_t(-2) );
1003 for(
size_t i=0UL; i<M; ++i ) {
1004 for(
size_t j=0UL; j<jpos; j+=2UL ) {
1005 (~A)(i,j ) += x[i] * y[j ];
1006 (~A)(i,j+1UL) += x[i] * y[j+1UL];
1009 (~A)(i,jpos) += x[i] * y[jpos];
1030 template<
typename MT
1038 const size_t M( (~A).
rows() );
1039 const size_t N( (~A).
columns() );
1041 const size_t jpos( remainder ? ( N &
size_t(-SIMDSIZE) ) : N );
1044 for(
size_t i=0UL; i<M; ++i )
1050 for( ; j<jpos; j+=SIMDSIZE ) {
1051 (~A).store( i, j, (~A).load(i,j) + x1 * y.load(j) );
1053 for( ; remainder && j<N; ++j ) {
1054 (~A)(i,j) += x[i] * y[j];
1074 template<
typename MT >
1092 DVecDVecOuterExpr::selectAddAssignKernel( ~lhs, x, y );
1111 template<
typename MT
1117 const size_t M( (~A).
rows() );
1118 const size_t N( (~A).
columns() );
1120 const size_t ipos( M &
size_t(-2) );
1123 for(
size_t j=0UL; j<N; ++j ) {
1124 for(
size_t i=0UL; i<ipos; i+=2UL ) {
1125 (~A)(i ,j) += x[i ] * y[j];
1126 (~A)(i+1UL,j) += x[i+1UL] * y[j];
1129 (~A)(ipos,j) += x[ipos] * y[j];
1150 template<
typename MT
1158 const size_t M( (~A).
rows() );
1159 const size_t N( (~A).
columns() );
1161 const size_t ipos( remainder ? ( M &
size_t(-SIMDSIZE) ) : M );
1164 for(
size_t j=0UL; j<N; ++j )
1170 for( ; i<ipos; i+=SIMDSIZE ) {
1171 (~A).store( i, j, (~A).load(i,j) + x.load(i) * y1 );
1173 for( ; remainder && i<M; ++i ) {
1174 (~A)(i,j) += x[i] * y[j];
1200 template<
typename MT >
1217 DVecDVecOuterExpr::selectSubAssignKernel( ~lhs, x, y );
1236 template<
typename MT
1242 const size_t M( (~A).
rows() );
1243 const size_t N( (~A).
columns() );
1245 const size_t jpos( N &
size_t(-2) );
1248 for(
size_t i=0UL; i<M; ++i ) {
1249 for(
size_t j=0UL; j<jpos; j+=2UL ) {
1250 (~A)(i,j ) -= x[i] * y[j ];
1251 (~A)(i,j+1UL) -= x[i] * y[j+1UL];
1254 (~A)(i,jpos) -= x[i] * y[jpos];
1275 template<
typename MT
1283 const size_t M( (~A).
rows() );
1284 const size_t N( (~A).
columns() );
1286 const size_t jpos( remainder ? ( N &
size_t(-SIMDSIZE) ) : N );
1289 for(
size_t i=0UL; i<M; ++i )
1295 for( ; j<jpos; j+=SIMDSIZE ) {
1296 (~A).store( i, j, (~A).load(i,j) - x1 * y.load(j) );
1298 for( ; remainder && j<N; ++j ) {
1299 (~A)(i,j) -= x[i] * y[j];
1319 template<
typename MT >
1337 DVecDVecOuterExpr::selectSubAssignKernel( ~lhs, x, y );
1356 template<
typename MT
1362 const size_t M( (~A).
rows() );
1363 const size_t N( (~A).
columns() );
1365 const size_t ipos( M &
size_t(-2) );
1368 for(
size_t j=0UL; j<N; ++j ) {
1369 for(
size_t i=0UL; i<ipos; i+=2UL ) {
1370 (~A)(i ,j) -= x[i ] * y[j];
1371 (~A)(i+1UL,j) -= x[i+1UL] * y[j];
1374 (~A)(ipos,j) -= x[ipos] * y[j];
1395 template<
typename MT
1403 const size_t M( (~A).
rows() );
1404 const size_t N( (~A).
columns() );
1406 const size_t ipos( remainder ? ( M &
size_t(-SIMDSIZE) ) : M );
1409 for(
size_t j=0UL; j<N; ++j )
1415 for( ; i<ipos; i+=SIMDSIZE ) {
1416 (~A).store( i, j, (~A).load(i,j) - x.load(i) * y1 );
1418 for( ; remainder && i<M; ++i ) {
1419 (~A)(i,j) -= x[i] * y[j];
1445 template<
typename MT >
1462 DVecDVecOuterExpr::selectSchurAssignKernel( ~lhs, x, y );
1481 template<
typename MT
1487 const size_t M( (~A).
rows() );
1488 const size_t N( (~A).
columns() );
1490 const size_t jpos( N &
size_t(-2) );
1493 for(
size_t i=0UL; i<M; ++i ) {
1494 for(
size_t j=0UL; j<jpos; j+=2UL ) {
1495 (~A)(i,j ) *= x[i] * y[j ];
1496 (~A)(i,j+1UL) *= x[i] * y[j+1UL];
1499 (~A)(i,jpos) *= x[i] * y[jpos];
1520 template<
typename MT
1528 const size_t M( (~A).
rows() );
1529 const size_t N( (~A).
columns() );
1531 const size_t jpos( remainder ? ( N &
size_t(-SIMDSIZE) ) : N );
1534 for(
size_t i=0UL; i<M; ++i )
1540 for( ; j<jpos; j+=SIMDSIZE ) {
1541 (~A).store( i, j, (~A).load(i,j) * ( x1 * y.load(j) ) );
1543 for( ; remainder && j<N; ++j ) {
1544 (~A)(i,j) *= x[i] * y[j];
1564 template<
typename MT >
1582 DVecDVecOuterExpr::selectSchurAssignKernel( ~lhs, x, y );
1601 template<
typename MT
1607 const size_t M( (~A).
rows() );
1608 const size_t N( (~A).
columns() );
1610 const size_t ipos( M &
size_t(-2) );
1613 for(
size_t j=0UL; j<N; ++j ) {
1614 for(
size_t i=0UL; i<ipos; i+=2UL ) {
1615 (~A)(i ,j) *= x[i ] * y[j];
1616 (~A)(i+1UL,j) *= x[i+1UL] * y[j];
1619 (~A)(ipos,j) *= x[ipos] * y[j];
1640 template<
typename MT
1648 const size_t M( (~A).
rows() );
1649 const size_t N( (~A).
columns() );
1651 const size_t ipos( remainder ? ( M &
size_t(-SIMDSIZE) ) : M );
1654 for(
size_t j=0UL; j<N; ++j )
1660 for( ; i<ipos; i+=SIMDSIZE ) {
1661 (~A).store( i, j, (~A).load(i,j) * ( x.load(i) * y1 ) );
1663 for( ; remainder && i<M; ++i ) {
1664 (~A)(i,j) *= x[i] * y[j];
1697 template<
typename MT
1734 template<
typename MT
1753 const TmpType tmp( rhs );
1773 template<
typename MT >
1814 template<
typename MT >
1855 template<
typename MT >
1937 template<
typename VT1
1939 inline decltype(
auto)
1960 template<
typename VT1,
typename VT2 >
1961 struct Size< DVecDVecOuterExpr<VT1,VT2>, 0UL >
1962 :
public Size<VT1,0UL>
1965 template<
typename VT1,
typename VT2 >
1966 struct Size< DVecDVecOuterExpr<VT1,VT2>, 1UL >
1967 :
public Size<VT2,0UL>
1983 template<
typename VT1,
typename VT2 >
1984 struct IsAligned< DVecDVecOuterExpr<VT1,VT2> >
1985 :
public And< IsAligned<VT1>, IsAligned<VT2> >
2001 template<
typename VT1,
typename VT2 >
2002 struct IsPadded< DVecDVecOuterExpr<VT1,VT2> >
Pointer difference type of the Blaze library.
Header file for auxiliary alias declarations.
const ConstIterator operator--(int)
Post-decrement operator.
Definition: DVecDVecOuterExpr.h:330
Compile time check whether the given type is a computational expression template.This type trait clas...
Definition: IsComputation.h:71
ConstIterator_< VT1 > LeftIteratorType
ConstIterator type of the left-hand side dense matrix expression.
Definition: DVecDVecOuterExpr.h:251
ElementType_< ResultType > ElementType
Resulting element type.
Definition: DVecDVecOuterExpr.h:208
Compile time check whether the given type is a temporary vector or matrix type.This type trait class ...
Definition: IsTemporary.h:69
EnableIf_< IsDenseMatrix< MT1 > > smpSchurAssign(Matrix< MT1, SO1 > &lhs, const Matrix< MT2, SO2 > &rhs)
Default implementation of the SMP Schur product assignment of a matrix to dense matrix.
Definition: DenseMatrix.h:196
Header file for basic type definitions.
bool operator!=(const ConstIterator &rhs) const
Inequality comparison between two ConstIterator objects.
Definition: DVecDVecOuterExpr.h:372
size_t rows() const noexcept
Returns the current number of rows of the matrix.
Definition: DVecDVecOuterExpr.h:580
ResultType_< VT2 > RT2
Result type of the right-hand side dense vector expression.
Definition: DVecDVecOuterExpr.h:109
ConstIterator_< VT2 > RightIteratorType
ConstIterator type of the right-hand side dense matrix expression.
Definition: DVecDVecOuterExpr.h:254
#define BLAZE_CONSTRAINT_MUST_BE_COLUMN_VECTOR_TYPE(T)
Constraint on the data type.In case the given data type T is not a column dense or sparse vector type...
Definition: ColumnVector.h:61
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:164
Header file for the serial shim.
#define BLAZE_CONSTRAINT_MUST_BE_DENSE_MATRIX_TYPE(T)
Constraint on the data type.In case the given data type T is not a dense, N-dimensional matrix type...
Definition: DenseMatrix.h:61
ElementType * PointerType
Pointer return type.
Definition: DVecDVecOuterExpr.h:239
IfTrue_< evaluateRight, const RT2, CT2 > RT
Type for the assignment of the right-hand side dense vector operand.
Definition: DVecDVecOuterExpr.h:227
ReturnType operator()(size_t i, size_t j) const
2D-access to the matrix elements.
Definition: DVecDVecOuterExpr.h:509
Availability of a SIMD multiplication for the given data types.Depending on the available instruction...
Definition: HasSIMDMult.h:172
typename SIMDTrait< T >::Type SIMDTrait_
Auxiliary alias declaration for the SIMDTrait class template.The SIMDTrait_ alias declaration provide...
Definition: SIMDTrait.h:316
ConstIterator & operator++()
Pre-increment operator.
Definition: DVecDVecOuterExpr.h:298
friend const ConstIterator operator+(size_t inc, const ConstIterator &it)
Addition between an integral value and a ConstIterator.
Definition: DVecDVecOuterExpr.h:451
LeftOperand leftOperand() const noexcept
Returns the left-hand side dense vector operand.
Definition: DVecDVecOuterExpr.h:600
Header file for the And class template.
typename MultTrait< T1, T2 >::Type MultTrait_
Auxiliary alias declaration for the MultTrait class template.The MultTrait_ alias declaration provide...
Definition: MultTrait.h:291
TransposeType_< ResultType > TransposeType
Transpose type for expression template evaluations.
Definition: DVecDVecOuterExpr.h:207
Header file for the Computation base class.
Constraints on the storage order of matrix types.
BLAZE_ALWAYS_INLINE auto load(size_t i, size_t j) const noexcept
Access to the SIMD elements of the matrix.
Definition: DVecDVecOuterExpr.h:543
Header file for the RequiresEvaluation type trait.
System settings for performance optimizations.
Compile time check for data types.This type trait tests whether or not the given types can be combine...
Definition: IsSIMDCombinable.h:120
ValueType value_type
Type of the underlying elements.
Definition: DVecDVecOuterExpr.h:245
typename T::ResultType ResultType_
Alias declaration for nested ResultType type definitions.The ResultType_ alias declaration provides a...
Definition: Aliases.h:343
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:133
ElementType_< RT1 > ET1
Element type of the left-hand side dense vector expression.
Definition: DVecDVecOuterExpr.h:110
Base class for dense matrices.The DenseMatrix class is a base class for all dense matrix classes...
Definition: DenseMatrix.h:80
Base class for sparse matrices.The SparseMatrix class is a base class for all sparse matrix classes...
Definition: Forward.h:129
ConstIterator & operator--()
Pre-decrement operator.
Definition: DVecDVecOuterExpr.h:319
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
size_t columns() const noexcept
Returns the current number of columns of the matrix.
Definition: DVecDVecOuterExpr.h:590
typename T::ReturnType ReturnType_
Alias declaration for nested ReturnType type definitions.The ReturnType_ alias declaration provides a...
Definition: Aliases.h:363
Constraint on the transpose flag of vector types.
Compile time check for the alignment of data types.This type trait tests whether the given data type ...
Definition: IsAligned.h:87
RightOperand rightOperand() const noexcept
Returns the right-hand side dense vector operand.
Definition: DVecDVecOuterExpr.h:610
Constraint on the data type.
typename MultExprTrait< T1, T2 >::Type MultExprTrait_
Auxiliary alias declaration for the MultExprTrait class template.The MultExprTrait_ alias declaration...
Definition: MultExprTrait.h:112
Header file for the MultExprTrait class template.
bool canAlias(const T *alias) const noexcept
Returns whether the expression can alias with the given address alias.
Definition: DVecDVecOuterExpr.h:622
Compile time check to query the requirement to evaluate an expression.Via this type trait it is possi...
Definition: RequiresEvaluation.h:71
typename T::CompositeType CompositeType_
Alias declaration for nested CompositeType type definitions.The CompositeType_ alias declaration prov...
Definition: Aliases.h:83
ReturnType operator*() const
Direct access to the element at the current iterator position.
Definition: DVecDVecOuterExpr.h:340
Header file for the IsTemporary type trait class.
ConstIterator(LeftIteratorType left, RightIteratorType right)
Constructor for the ConstIterator class.
Definition: DVecDVecOuterExpr.h:263
Header file for the multiplication trait.
ElementType_< RT2 > ET2
Element type of the right-hand side dense vector expression.
Definition: DVecDVecOuterExpr.h:111
Namespace of the Blaze C++ math library.
Definition: Blaze.h:58
#define BLAZE_ALWAYS_INLINE
Platform dependent setup of an enforced inline keyword.
Definition: Inline.h:85
auto load() const noexcept
Access to the SIMD elements of the matrix.
Definition: DVecDVecOuterExpr.h:350
Header file for the If class template.
#define BLAZE_CONSTRAINT_MUST_BE_COLUMN_MAJOR_MATRIX_TYPE(T)
Constraint on the data type.In case the given data type T is not a column-major dense or sparse matri...
Definition: ColumnMajorMatrix.h:61
const ConstIterator operator++(int)
Post-increment operator.
Definition: DVecDVecOuterExpr.h:309
#define BLAZE_CONSTRAINT_MUST_FORM_VALID_VECTVECMULTEXPR(T1, T2)
Constraint on the data type.In case the given data types T1 and T2 do not form a valid vector/vector ...
Definition: VecTVecMultExpr.h:104
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:102
bool isAliased(const T *alias) const noexcept
Returns whether the expression is aliased with the given address alias.
Definition: DVecDVecOuterExpr.h:634
LeftIteratorType left_
Iterator to the current left-hand side element.
Definition: DVecDVecOuterExpr.h:470
#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
Header file for the DenseMatrix base class.
const Element * ConstIterator
Iterator over constant elements.
Definition: CompressedMatrix.h:3085
typename T::ElementType ElementType_
Alias declaration for nested ElementType type definitions.The ElementType_ alias declaration provides...
Definition: Aliases.h:163
Header file for all SIMD functionality.
RightOperand rhs_
Right-hand side dense vector of the multiplication expression.
Definition: DVecDVecOuterExpr.h:662
Base class for N-dimensional dense vectors.The DenseVector class is a base class for all arbitrarily ...
Definition: DenseVector.h:76
ConstIterator & operator-=(size_t dec)
Subtraction assignment operator.
Definition: DVecDVecOuterExpr.h:287
MultTrait_< RT1, RT2 > ResultType
Result type for expression template evaluations.
Definition: DVecDVecOuterExpr.h:205
Header file for the IsAligned type trait.
bool operator==(const ConstIterator &rhs) const
Equality comparison between two ConstIterator objects.
Definition: DVecDVecOuterExpr.h:361
If_< IsExpression< VT2 >, const VT2, const VT2 &> RightOperand
Composite type of the right-hand side dense vector expression.
Definition: DVecDVecOuterExpr.h:221
bool operator<(const ConstIterator &rhs) const
Less-than comparison between two ConstIterator objects.
Definition: DVecDVecOuterExpr.h:383
Constraints on the storage order of matrix types.
Constraint on the data type.
bool canSMPAssign() const noexcept
Returns whether the expression can be used in SMP assignments.
Definition: DVecDVecOuterExpr.h:654
Header file for the exception macros of the math module.
ConstIterator end(size_t i) const
Returns an iterator just past the last non-zero element of row i.
Definition: DVecDVecOuterExpr.h:569
Constraint on the data type.
Header file for all forward declarations for expression class templates.
Header file for the VecTVecMultExpr base class.
Header file for the EnableIf class template.
DVecDVecOuterExpr(const VT1 &lhs, const VT2 &rhs) noexcept
Constructor for the DVecDVecOuterExpr class.
Definition: DVecDVecOuterExpr.h:496
Header file for the IsPadded type trait.
MultExprTrait_< RN1, RN2 > ExprReturnType
Expression return type for the subscript operator.
Definition: DVecDVecOuterExpr.h:138
IfTrue_< evaluateLeft, const RT1, CT1 > LT
Type for the assignment of the left-hand side dense vector operand.
Definition: DVecDVecOuterExpr.h:224
If_< IsExpression< VT1 >, const VT1, const VT1 &> LeftOperand
Composite type of the left-hand side dense vector expression.
Definition: DVecDVecOuterExpr.h:218
ReturnType at(size_t i, size_t j) const
Checked access to the matrix elements.
Definition: DVecDVecOuterExpr.h:525
bool operator<=(const ConstIterator &rhs) const
Less-than comparison between two ConstIterator objects.
Definition: DVecDVecOuterExpr.h:405
ConstIterator & operator+=(size_t inc)
Addition assignment operator.
Definition: DVecDVecOuterExpr.h:275
Header file for the IsSIMDCombinable type trait.
#define BLAZE_CONSTRAINT_MUST_NOT_BE_SYMMETRIC_MATRIX_TYPE(T)
Constraint on the data type.In case the given data type T is a symmetric matrix type, a compilation error is created.
Definition: Symmetric.h:79
#define BLAZE_CONSTRAINT_MUST_BE_ROW_MAJOR_MATRIX_TYPE(T)
Constraint on the data type.In case the given data type T is not a row-major dense or sparse matrix t...
Definition: RowMajorMatrix.h:61
Header file for the HasSIMDMult type trait.
bool operator>=(const ConstIterator &rhs) const
Greater-than comparison between two ConstIterator objects.
Definition: DVecDVecOuterExpr.h:416
const IfTrue_< returnExpr, ExprReturnType, ElementType > ReturnType
Return type for expression template evaluations.
Definition: DVecDVecOuterExpr.h:212
DifferenceType operator-(const ConstIterator &rhs) const
Calculating the number of elements between two iterators.
Definition: DVecDVecOuterExpr.h:427
Header file for run time assertion macros.
ResultType_< VT1 > RT1
Result type of the left-hand side dense vector expression.
Definition: DVecDVecOuterExpr.h:108
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:154
Expression object for outer products between two dense vectors.The DVecDVecOuterExpr class represents...
Definition: DVecDVecOuterExpr.h:102
RightIteratorType right_
Iterator to the current right-hand side element.
Definition: DVecDVecOuterExpr.h:471
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:94
ConstIterator begin(size_t i) const
Returns an iterator to the first non-zero element of row i.
Definition: DVecDVecOuterExpr.h:557
ReturnType_< VT2 > RN2
Return type of the right-hand side dense vector expression.
Definition: DVecDVecOuterExpr.h:113
Constraint on the data type.
Constraints on the storage order of matrix types.
decltype(auto) serial(const DenseMatrix< MT, SO > &dm)
Forces the serial evaluation of the given dense matrix expression dm.
Definition: DMatSerialExpr.h:816
SIMDTrait_< ElementType > SIMDType
Resulting SIMD element type.
Definition: DVecDVecOuterExpr.h:209
#define BLAZE_CONSTRAINT_MUST_NOT_REQUIRE_EVALUATION(T)
Constraint on the data type.In case the given data type T requires an intermediate evaluation within ...
Definition: RequiresEvaluation.h:81
Constraint on the data type.
Header file for the IsReference type trait.
typename EnableIf< Condition, T >::Type EnableIf_
Auxiliary alias declaration for the EnableIf class template.The EnableIf_ alias declaration provides ...
Definition: EnableIf.h:224
Base class for all outer product expression templates.The VecTVecMultExpr class serves as a tag for a...
Definition: VecTVecMultExpr.h:67
typename T::OppositeType OppositeType_
Alias declaration for nested OppositeType type definitions.The OppositeType_ alias declaration provid...
Definition: Aliases.h:263
#define BLAZE_CONSTRAINT_MATRICES_MUST_HAVE_SAME_STORAGE_ORDER(T1, T2)
Constraint on the data type.In case either of the two given data types T1 or T2 is not a matrix type ...
Definition: StorageOrder.h:84
CompositeType_< VT1 > CT1
Composite type of the left-hand side dense vector expression.
Definition: DVecDVecOuterExpr.h:114
const Type & ReturnType
Return type for expression template evaluations.
Definition: CompressedMatrix.h:3080
typename T::ConstIterator ConstIterator_
Alias declaration for nested ConstIterator type definitions.The ConstIterator_ alias declaration prov...
Definition: Aliases.h:103
#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
ReturnType_< VT1 > RN1
Return type of the left-hand side dense vector expression.
Definition: DVecDVecOuterExpr.h:112
Header file for the IsComputation type trait class.
bool operator>(const ConstIterator &rhs) const
Greater-than comparison between two ConstIterator objects.
Definition: DVecDVecOuterExpr.h:394
Base class for all compute expression templates.The Computation class serves as a tag for all computa...
Definition: Computation.h:66
bool isAligned() const noexcept
Returns whether the operands of the expression are properly aligned in memory.
Definition: DVecDVecOuterExpr.h:644
Compile time evaluation of the size of vectors and matrices.The Size type trait evaluates the size of...
Definition: Size.h:80
ElementType & ReferenceType
Reference return type.
Definition: DVecDVecOuterExpr.h:240
friend const ConstIterator operator-(const ConstIterator &it, size_t dec)
Subtraction between a ConstIterator and an integral value.
Definition: DVecDVecOuterExpr.h:463
PointerType pointer
Pointer return type.
Definition: DVecDVecOuterExpr.h:246
#define BLAZE_CONSTRAINT_MUST_BE_ROW_VECTOR_TYPE(T)
Constraint on the data type.In case the given data type T is not a row dense or sparse vector type (i...
Definition: RowVector.h:61
Compile time logical 'and' evaluation.The And alias declaration performs at compile time a logical 'a...
Definition: And.h:76
CompositeType_< VT2 > CT2
Composite type of the right-hand side dense vector expression.
Definition: DVecDVecOuterExpr.h:115
std::random_access_iterator_tag IteratorCategory
The iterator category.
Definition: DVecDVecOuterExpr.h:237
typename T::TransposeType TransposeType_
Alias declaration for nested TransposeType type definitions.The TransposeType_ alias declaration prov...
Definition: Aliases.h:423
IfTrue_< useAssign, const ResultType, const DVecDVecOuterExpr &> CompositeType
Data type for composite expression templates.
Definition: DVecDVecOuterExpr.h:215
LeftOperand lhs_
Left-hand side dense vector of the multiplication expression.
Definition: DVecDVecOuterExpr.h:661
friend const ConstIterator operator+(const ConstIterator &it, size_t inc)
Addition between a ConstIterator and an integral value.
Definition: DVecDVecOuterExpr.h:439
IteratorCategory iterator_category
The iterator category.
Definition: DVecDVecOuterExpr.h:244
Iterator over the elements of the dense matrix.
Definition: DVecDVecOuterExpr.h:233
OppositeType_< ResultType > OppositeType
Result type with opposite storage order for expression template evaluations.
Definition: DVecDVecOuterExpr.h:206
ReferenceType reference
Reference return type.
Definition: DVecDVecOuterExpr.h:247
System settings for the inline keywords.
Header file for the Size type trait.
Header file for the thresholds for matrix/vector and matrix/matrix multiplications.
#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
ElementType ValueType
Type of the underlying elements.
Definition: DVecDVecOuterExpr.h:238
Constraint on the transpose flag of vector types.
Header file for the IsExpression type trait class.
Header file for the function trace functionality.