35 #ifndef _BLAZE_MATH_EXPRESSIONS_DVECDVECOUTEREXPR_H_ 36 #define _BLAZE_MATH_EXPRESSIONS_DVECDVECOUTEREXPR_H_ 103 template<
typename VT1
106 :
public VecTVecMultExpr< DenseMatrix< DVecDVecOuterExpr<VT1,VT2>, false > >
152 enum :
bool { useAssign = ( evaluateLeft || evaluateRight ) };
155 template<
typename VT >
158 enum :
bool { value = useAssign };
169 template<
typename VT >
170 struct UseSMPAssign {
171 enum :
bool { value = evaluateRight };
181 template<
typename T1,
typename T2,
typename T3 >
182 struct UseVectorizedKernel {
183 enum :
bool { value = useOptimizedKernels &&
184 T1::simdEnabled && T2::simdEnabled && T3::simdEnabled &&
198 template<
typename T1,
typename T2,
typename T3 >
199 struct UseDefaultKernel {
200 enum :
bool { value = !UseVectorizedKernel<T1,T2,T3>::value };
344 return (*left_) * (*right_);
353 inline auto load() const noexcept {
354 return set( *left_ ) * right_.load();
365 return right_ == rhs.
right_;
376 return right_ != rhs.
right_;
387 return right_ < rhs.
right_;
398 return right_ > rhs.
right_;
409 return right_ <= rhs.
right_;
420 return right_ >= rhs.
right_;
431 return right_ - rhs.
right_;
481 enum :
bool { simdEnabled = VT1::simdEnabled && VT2::simdEnabled &&
485 enum :
bool { smpAssignable = VT1::smpAssignable && !evaluateRight };
529 if( i >=
lhs_.size() ) {
532 if( j >=
rhs_.size() ) {
550 return set(
lhs_[i] ) *
rhs_.load( j );
583 inline size_t rows() const noexcept {
624 template<
typename T >
625 inline bool canAlias(
const T* alias )
const noexcept {
626 return (
lhs_.canAlias( alias ) ||
rhs_.canAlias( alias ) );
636 template<
typename T >
637 inline bool isAliased(
const T* alias )
const noexcept {
638 return (
lhs_.isAliased( alias ) ||
rhs_.isAliased( alias ) );
648 return lhs_.isAligned() &&
rhs_.isAligned();
658 return (
rows() *
columns() >= SMP_DVECDVECOUTER_THRESHOLD );
682 template<
typename MT >
699 DVecDVecOuterExpr::selectAssignKernel( ~lhs, x, y );
718 template<
typename MT
724 const size_t M( (~A).
rows() );
725 const size_t N( (~A).
columns() );
727 const size_t jpos( N &
size_t(-2) );
730 for(
size_t i=0UL; i<M; ++i ) {
731 for(
size_t j=0UL; j<jpos; j+=2UL ) {
732 (~A)(i,j ) = x[i] * y[j ];
733 (~A)(i,j+1UL) = x[i] * y[j+1];
736 (~A)(i,jpos) = x[i] * y[jpos];
757 template<
typename MT
765 const size_t M( (~A).
rows() );
766 const size_t N( (~A).
columns() );
768 const size_t jpos( remainder ? ( N &
size_t(-SIMDSIZE) ) : N );
771 for(
size_t i=0UL; i<M; ++i )
777 for( ; j<jpos; j+=SIMDSIZE ) {
778 (~A).store( i, j, x1 * y.load(j) );
780 for( ; remainder && j<N; ++j ) {
781 (~A)(i,j) = x[i] * y[j];
800 template<
typename MT >
818 DVecDVecOuterExpr::selectAssignKernel( ~lhs, x, y );
837 template<
typename MT
843 const size_t M( (~A).
rows() );
844 const size_t N( (~A).
columns() );
846 const size_t ipos( M &
size_t(-2) );
849 for(
size_t j=0UL; j<N; ++j ) {
850 for(
size_t i=0UL; i<ipos; i+=2UL ) {
851 (~A)(i ,j) = x[i ] * y[j];
852 (~A)(i+1UL,j) = x[i+1] * y[j];
855 (~A)(ipos,j) = x[ipos] * y[j];
876 template<
typename MT
884 const size_t M( (~A).
rows() );
885 const size_t N( (~A).
columns() );
887 const size_t ipos( remainder ? ( M &
size_t(-SIMDSIZE) ) : M );
890 for(
size_t j=0UL; j<N; ++j )
896 for( ; i<ipos; i+=SIMDSIZE ) {
897 (~A).store( i, j, x.load(i) * y1 );
899 for( ; remainder && i<M; ++i ) {
900 (~A)(i,j) = x[i] * y[j];
919 template<
typename MT
937 const TmpType tmp(
serial( rhs ) );
958 template<
typename MT >
975 DVecDVecOuterExpr::selectAddAssignKernel( ~lhs, x, y );
994 template<
typename MT
1000 const size_t M( (~A).
rows() );
1001 const size_t N( (~A).
columns() );
1003 const size_t jpos( N &
size_t(-2) );
1006 for(
size_t i=0UL; i<M; ++i ) {
1007 for(
size_t j=0UL; j<jpos; j+=2UL ) {
1008 (~A)(i,j ) += x[i] * y[j ];
1009 (~A)(i,j+1UL) += x[i] * y[j+1UL];
1012 (~A)(i,jpos) += x[i] * y[jpos];
1033 template<
typename MT
1041 const size_t M( (~A).
rows() );
1042 const size_t N( (~A).
columns() );
1044 const size_t jpos( remainder ? ( N &
size_t(-SIMDSIZE) ) : N );
1047 for(
size_t i=0UL; i<M; ++i )
1053 for( ; j<jpos; j+=SIMDSIZE ) {
1054 (~A).store( i, j, (~A).load(i,j) + x1 * y.load(j) );
1056 for( ; remainder && j<N; ++j ) {
1057 (~A)(i,j) += x[i] * y[j];
1077 template<
typename MT >
1095 DVecDVecOuterExpr::selectAddAssignKernel( ~lhs, x, y );
1114 template<
typename MT
1120 const size_t M( (~A).
rows() );
1121 const size_t N( (~A).
columns() );
1123 const size_t ipos( M &
size_t(-2) );
1126 for(
size_t j=0UL; j<N; ++j ) {
1127 for(
size_t i=0UL; i<ipos; i+=2UL ) {
1128 (~A)(i ,j) += x[i ] * y[j];
1129 (~A)(i+1UL,j) += x[i+1UL] * y[j];
1132 (~A)(ipos,j) += x[ipos] * y[j];
1153 template<
typename MT
1161 const size_t M( (~A).
rows() );
1162 const size_t N( (~A).
columns() );
1164 const size_t ipos( remainder ? ( M &
size_t(-SIMDSIZE) ) : M );
1167 for(
size_t j=0UL; j<N; ++j )
1173 for( ; i<ipos; i+=SIMDSIZE ) {
1174 (~A).store( i, j, (~A).load(i,j) + x.load(i) * y1 );
1176 for( ; remainder && i<M; ++i ) {
1177 (~A)(i,j) += x[i] * y[j];
1203 template<
typename MT >
1220 DVecDVecOuterExpr::selectSubAssignKernel( ~lhs, x, y );
1239 template<
typename MT
1245 const size_t M( (~A).
rows() );
1246 const size_t N( (~A).
columns() );
1248 const size_t jpos( N &
size_t(-2) );
1251 for(
size_t i=0UL; i<M; ++i ) {
1252 for(
size_t j=0UL; j<jpos; j+=2UL ) {
1253 (~A)(i,j ) -= x[i] * y[j ];
1254 (~A)(i,j+1UL) -= x[i] * y[j+1UL];
1257 (~A)(i,jpos) -= x[i] * y[jpos];
1278 template<
typename MT
1286 const size_t M( (~A).
rows() );
1287 const size_t N( (~A).
columns() );
1289 const size_t jpos( remainder ? ( N &
size_t(-SIMDSIZE) ) : N );
1292 for(
size_t i=0UL; i<M; ++i )
1298 for( ; j<jpos; j+=SIMDSIZE ) {
1299 (~A).store( i, j, (~A).load(i,j) - x1 * y.load(j) );
1301 for( ; remainder && j<N; ++j ) {
1302 (~A)(i,j) -= x[i] * y[j];
1322 template<
typename MT >
1340 DVecDVecOuterExpr::selectSubAssignKernel( ~lhs, x, y );
1359 template<
typename MT
1365 const size_t M( (~A).
rows() );
1366 const size_t N( (~A).
columns() );
1368 const size_t ipos( M &
size_t(-2) );
1371 for(
size_t j=0UL; j<N; ++j ) {
1372 for(
size_t i=0UL; i<ipos; i+=2UL ) {
1373 (~A)(i ,j) -= x[i ] * y[j];
1374 (~A)(i+1UL,j) -= x[i+1UL] * y[j];
1377 (~A)(ipos,j) -= x[ipos] * y[j];
1398 template<
typename MT
1406 const size_t M( (~A).
rows() );
1407 const size_t N( (~A).
columns() );
1409 const size_t ipos( remainder ? ( M &
size_t(-SIMDSIZE) ) : M );
1412 for(
size_t j=0UL; j<N; ++j )
1418 for( ; i<ipos; i+=SIMDSIZE ) {
1419 (~A).store( i, j, (~A).load(i,j) - x.load(i) * y1 );
1421 for( ; remainder && i<M; ++i ) {
1422 (~A)(i,j) -= x[i] * y[j];
1448 template<
typename MT >
1465 DVecDVecOuterExpr::selectSchurAssignKernel( ~lhs, x, y );
1484 template<
typename MT
1490 const size_t M( (~A).
rows() );
1491 const size_t N( (~A).
columns() );
1493 const size_t jpos( N &
size_t(-2) );
1496 for(
size_t i=0UL; i<M; ++i ) {
1497 for(
size_t j=0UL; j<jpos; j+=2UL ) {
1498 (~A)(i,j ) *= x[i] * y[j ];
1499 (~A)(i,j+1UL) *= x[i] * y[j+1UL];
1502 (~A)(i,jpos) *= x[i] * y[jpos];
1523 template<
typename MT
1531 const size_t M( (~A).
rows() );
1532 const size_t N( (~A).
columns() );
1534 const size_t jpos( remainder ? ( N &
size_t(-SIMDSIZE) ) : N );
1537 for(
size_t i=0UL; i<M; ++i )
1543 for( ; j<jpos; j+=SIMDSIZE ) {
1544 (~A).store( i, j, (~A).load(i,j) * ( x1 * y.load(j) ) );
1546 for( ; remainder && j<N; ++j ) {
1547 (~A)(i,j) *= x[i] * y[j];
1567 template<
typename MT >
1585 DVecDVecOuterExpr::selectSchurAssignKernel( ~lhs, x, y );
1604 template<
typename MT
1610 const size_t M( (~A).
rows() );
1611 const size_t N( (~A).
columns() );
1613 const size_t ipos( M &
size_t(-2) );
1616 for(
size_t j=0UL; j<N; ++j ) {
1617 for(
size_t i=0UL; i<ipos; i+=2UL ) {
1618 (~A)(i ,j) *= x[i ] * y[j];
1619 (~A)(i+1UL,j) *= x[i+1UL] * y[j];
1622 (~A)(ipos,j) *= x[ipos] * y[j];
1643 template<
typename MT
1651 const size_t M( (~A).
rows() );
1652 const size_t N( (~A).
columns() );
1654 const size_t ipos( remainder ? ( M &
size_t(-SIMDSIZE) ) : M );
1657 for(
size_t j=0UL; j<N; ++j )
1663 for( ; i<ipos; i+=SIMDSIZE ) {
1664 (~A).store( i, j, (~A).load(i,j) * ( x.load(i) * y1 ) );
1666 for( ; remainder && i<M; ++i ) {
1667 (~A)(i,j) *= x[i] * y[j];
1700 template<
typename MT
1737 template<
typename MT
1756 const TmpType tmp( rhs );
1776 template<
typename MT >
1817 template<
typename MT >
1858 template<
typename MT >
1940 template<
typename VT1
1942 inline decltype(
auto)
1963 template<
typename VT1,
typename VT2 >
1964 struct Rows< DVecDVecOuterExpr<VT1,VT2> >
1981 template<
typename VT1,
typename VT2 >
1982 struct Columns< DVecDVecOuterExpr<VT1,VT2> >
1999 template<
typename VT1,
typename VT2 >
2000 struct IsAligned< DVecDVecOuterExpr<VT1,VT2> >
2001 :
public BoolConstant< And< IsAligned<VT1>, IsAligned<VT2> >::value >
2017 template<
typename VT1,
typename VT2 >
2018 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:333
Compile time check whether the given type is a computational expression template.This type trait clas...
Definition: IsComputation.h:72
ConstIterator_< VT1 > LeftIteratorType
ConstIterator type of the left-hand side dense matrix expression.
Definition: DVecDVecOuterExpr.h:254
ElementType_< ResultType > ElementType
Resulting element type.
Definition: DVecDVecOuterExpr.h:211
Compile time check whether the given type is a temporary vector or matrix type.This type trait class ...
Definition: IsTemporary.h:70
Header file for the Rows type trait.
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:375
size_t rows() const noexcept
Returns the current number of rows of the matrix.
Definition: DVecDVecOuterExpr.h:583
ResultType_< VT2 > RT2
Result type of the right-hand side dense vector expression.
Definition: DVecDVecOuterExpr.h:112
ConstIterator_< VT2 > RightIteratorType
ConstIterator type of the right-hand side dense matrix expression.
Definition: DVecDVecOuterExpr.h:257
#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.
Generic wrapper for a compile time constant integral value.The IntegralConstant class template repres...
Definition: IntegralConstant.h:71
#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:242
IfTrue_< evaluateRight, const RT2, CT2 > RT
Type for the assignment of the right-hand side dense vector operand.
Definition: DVecDVecOuterExpr.h:230
ReturnType operator()(size_t i, size_t j) const
2D-access to the matrix elements.
Definition: DVecDVecOuterExpr.h:512
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:301
friend const ConstIterator operator+(size_t inc, const ConstIterator &it)
Addition between an integral value and a ConstIterator.
Definition: DVecDVecOuterExpr.h:454
LeftOperand leftOperand() const noexcept
Returns the left-hand side dense vector operand.
Definition: DVecDVecOuterExpr.h:603
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:250
TransposeType_< ResultType > TransposeType
Transpose type for expression template evaluations.
Definition: DVecDVecOuterExpr.h:210
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:546
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:248
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:113
Base class for dense matrices.The DenseMatrix class is a base class for all dense matrix classes...
Definition: DenseMatrix.h:78
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:322
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:593
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:613
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:625
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
ReturnType operator*() const
Direct access to the element at the current iterator position.
Definition: DVecDVecOuterExpr.h:343
Header file for the IsTemporary type trait class.
ConstIterator(LeftIteratorType left, RightIteratorType right)
Constructor for the ConstIterator class.
Definition: DVecDVecOuterExpr.h:266
Header file for the multiplication trait.
ElementType_< RT2 > ET2
Element type of the right-hand side dense vector expression.
Definition: DVecDVecOuterExpr.h:114
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
auto load() const noexcept
Access to the SIMD elements of the matrix.
Definition: DVecDVecOuterExpr.h:353
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:312
#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:637
LeftIteratorType left_
Iterator to the current left-hand side element.
Definition: DVecDVecOuterExpr.h:473
#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.
Header file for the Columns type trait.
const Element * ConstIterator
Iterator over constant elements.
Definition: CompressedMatrix.h:3087
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:665
Base class for N-dimensional dense vectors.The DenseVector class is a base class for all arbitrarily ...
Definition: DenseVector.h:70
ConstIterator & operator-=(size_t dec)
Subtraction assignment operator.
Definition: DVecDVecOuterExpr.h:290
MultTrait_< RT1, RT2 > ResultType
Result type for expression template evaluations.
Definition: DVecDVecOuterExpr.h:208
Header file for the IsAligned type trait.
bool operator==(const ConstIterator &rhs) const
Equality comparison between two ConstIterator objects.
Definition: DVecDVecOuterExpr.h:364
If_< IsExpression< VT2 >, const VT2, const VT2 &> RightOperand
Composite type of the right-hand side dense vector expression.
Definition: DVecDVecOuterExpr.h:224
bool operator<(const ConstIterator &rhs) const
Less-than comparison between two ConstIterator objects.
Definition: DVecDVecOuterExpr.h:386
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:657
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:572
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:499
Header file for the IsPadded type trait.
MultExprTrait_< RN1, RN2 > ExprReturnType
Expression return type for the subscript operator.
Definition: DVecDVecOuterExpr.h:141
IfTrue_< evaluateLeft, const RT1, CT1 > LT
Type for the assignment of the left-hand side dense vector operand.
Definition: DVecDVecOuterExpr.h:227
If_< IsExpression< VT1 >, const VT1, const VT1 &> LeftOperand
Composite type of the left-hand side dense vector expression.
Definition: DVecDVecOuterExpr.h:221
ReturnType at(size_t i, size_t j) const
Checked access to the matrix elements.
Definition: DVecDVecOuterExpr.h:528
bool operator<=(const ConstIterator &rhs) const
Less-than comparison between two ConstIterator objects.
Definition: DVecDVecOuterExpr.h:408
ConstIterator & operator+=(size_t inc)
Addition assignment operator.
Definition: DVecDVecOuterExpr.h:278
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:419
const IfTrue_< returnExpr, ExprReturnType, ElementType > ReturnType
Return type for expression template evaluations.
Definition: DVecDVecOuterExpr.h:215
DifferenceType operator-(const ConstIterator &rhs) const
Calculating the number of elements between two iterators.
Definition: DVecDVecOuterExpr.h:430
Header file for run time assertion macros.
ResultType_< VT1 > RT1
Result type of the left-hand side dense vector expression.
Definition: DVecDVecOuterExpr.h:111
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:105
RightIteratorType right_
Iterator to the current right-hand side element.
Definition: DVecDVecOuterExpr.h:474
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:560
ReturnType_< VT2 > RN2
Return type of the right-hand side dense vector expression.
Definition: DVecDVecOuterExpr.h:116
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:819
SIMDTrait_< ElementType > SIMDType
Resulting SIMD element type.
Definition: DVecDVecOuterExpr.h:212
#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:117
const Type & ReturnType
Return type for expression template evaluations.
Definition: CompressedMatrix.h:3082
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:115
Header file for the IsComputation type trait class.
bool operator>(const ConstIterator &rhs) const
Greater-than comparison between two ConstIterator objects.
Definition: DVecDVecOuterExpr.h:397
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:647
Compile time evaluation of the size of a vector.The Size type trait evaluates the size of the given v...
Definition: Size.h:74
ElementType & ReferenceType
Reference return type.
Definition: DVecDVecOuterExpr.h:243
Header file for the IntegralConstant class template.
Compile time evaluation of the number of columns of a matrix.The Columns type trait evaluates the num...
Definition: Columns.h:75
friend const ConstIterator operator-(const ConstIterator &it, size_t dec)
Subtraction between a ConstIterator and an integral value.
Definition: DVecDVecOuterExpr.h:466
PointerType pointer
Pointer return type.
Definition: DVecDVecOuterExpr.h:249
#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 evaluation of the number of rows of a matrix.The Rows type trait evaluates the number of...
Definition: Rows.h:75
CompositeType_< VT2 > CT2
Composite type of the right-hand side dense vector expression.
Definition: DVecDVecOuterExpr.h:118
std::random_access_iterator_tag IteratorCategory
The iterator category.
Definition: DVecDVecOuterExpr.h:240
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:218
LeftOperand lhs_
Left-hand side dense vector of the multiplication expression.
Definition: DVecDVecOuterExpr.h:664
friend const ConstIterator operator+(const ConstIterator &it, size_t inc)
Addition between a ConstIterator and an integral value.
Definition: DVecDVecOuterExpr.h:442
IteratorCategory iterator_category
The iterator category.
Definition: DVecDVecOuterExpr.h:247
Iterator over the elements of the dense matrix.
Definition: DVecDVecOuterExpr.h:236
OppositeType_< ResultType > OppositeType
Result type with opposite storage order for expression template evaluations.
Definition: DVecDVecOuterExpr.h:209
ReferenceType reference
Reference return type.
Definition: DVecDVecOuterExpr.h:250
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:241
Constraint on the transpose flag of vector types.
Header file for the IsExpression type trait class.
Header file for the function trace functionality.