35 #ifndef _BLAZE_MATH_EXPRESSIONS_DVECSCALARMULTEXPR_H_ 36 #define _BLAZE_MATH_EXPRESSIONS_DVECSCALARMULTEXPR_H_ 114 template<
typename VT
153 template<
typename VT2 >
156 enum :
bool { value = useAssign };
169 template<
typename VT2 >
170 struct UseSMPAssign {
171 enum :
bool { value = ( !VT2::smpAssignable || !VT::smpAssignable ) && useAssign };
227 : iterator_( iterator )
313 inline auto load() const noexcept {
314 return iterator_.load() *
set(
scalar_ );
441 enum :
bool { simdEnabled = VT::simdEnabled &&
447 enum :
bool { smpAssignable = VT::smpAssignable };
486 inline ReturnType
at(
size_t index )
const {
487 if( index >=
vector_.size() ) {
490 return (*
this)[index];
532 inline size_t size() const noexcept {
563 template<
typename T >
564 inline bool canAlias(
const T* alias )
const noexcept {
575 template<
typename T >
576 inline bool isAliased(
const T* alias )
const noexcept {
577 return vector_.isAliased( alias );
597 return vector_.canSMPAssign() || (
size() > SMP_DVECSCALARMULT_THRESHOLD );
621 template<
typename VT2 >
630 assign( ~lhs, (~lhs) * rhs.
scalar_ );
649 template<
typename VT2 >
677 template<
typename VT2 >
689 const ResultType tmp(
serial( rhs ) );
690 addAssign( ~lhs, tmp );
713 template<
typename VT2 >
725 const ResultType tmp(
serial( rhs ) );
726 subAssign( ~lhs, tmp );
749 template<
typename VT2 >
761 const ResultType tmp(
serial( rhs ) );
762 multAssign( ~lhs, tmp );
785 template<
typename VT2 >
797 const ResultType tmp(
serial( rhs ) );
798 divAssign( ~lhs, tmp );
821 template<
typename VT2 >
849 template<
typename VT2 >
877 template<
typename VT2 >
889 const ResultType tmp( rhs );
913 template<
typename VT2 >
925 const ResultType tmp( rhs );
949 template<
typename VT2 >
961 const ResultType tmp( rhs );
985 template<
typename VT2 >
997 const ResultType tmp( rhs );
1044 template<
typename VT
1087 template<
typename T1
1122 template<
typename T1
1161 template<
typename VT
1170 const ElementType len (
length( ~vec ) );
1198 template<
typename VT
1233 template<
typename VT
1261 template<
typename ST1
1289 template<
typename VT
1319 template<
typename VT1
1348 template<
typename VT1
1377 template<
typename VT1
1407 template<
typename VT1
1435 template<
typename VT1
1463 template<
typename VT1
1492 template<
typename VT1
1496 inline const MultExprTrait_< DVecScalarMultExpr<VT1,ST,TF>, VT2 >
1521 template<
typename VT1
1551 template<
typename VT1
1582 template<
typename VT1
1612 template<
typename VT1
1615 inline const MultExprTrait_< DVecScalarMultExpr<VT1,ST,false>, VT2 >
1640 template<
typename VT1
1669 template<
typename VT1
1699 template<
typename VT1
1728 template<
typename MT
1757 template<
typename VT
1786 template<
typename MT
1815 template<
typename VT
1819 inline const MultExprTrait_< DVecScalarMultExpr<VT,ST,true>, MT >
1840 template<
typename VT,
typename ST,
bool TF >
1841 struct Size< DVecScalarMultExpr<VT,ST,TF> > :
public Size<VT>
1857 template<
typename VT,
typename ST,
bool TF >
1858 struct IsAligned< DVecScalarMultExpr<VT,ST,TF> >
1875 template<
typename VT,
typename ST,
bool TF >
1876 struct IsPadded< DVecScalarMultExpr<VT,ST,TF> >
1893 template<
typename VT,
typename ST1,
typename ST2 >
1918 template<
typename VT,
typename ST1,
typename ST2 >
1943 template<
typename VT,
typename ST1,
typename ST2 >
1975 template<
typename VT,
typename ST1,
typename ST2 >
2007 template<
typename VT1,
typename ST,
typename VT2 >
2025 template<
typename VT1,
typename VT2,
typename ST >
2043 template<
typename VT1,
typename ST1,
typename VT2,
typename ST2 >
2044 struct DVecDVecMultExprTrait< DVecScalarMultExpr<VT1,ST1,false>, DVecScalarMultExpr<VT2,ST2,false> >
2069 template<
typename VT1,
typename ST,
typename VT2 >
2087 template<
typename VT1,
typename VT2,
typename ST >
2105 template<
typename VT1,
typename ST1,
typename VT2,
typename ST2 >
2131 template<
typename VT1,
typename ST,
typename VT2 >
2149 template<
typename VT1,
typename VT2,
typename ST >
2167 template<
typename VT1,
typename ST1,
typename VT2,
typename ST2 >
2193 template<
typename VT1,
typename VT2,
typename ST >
2211 template<
typename VT1,
typename ST1,
typename VT2,
typename ST2 >
2212 struct DVecSVecMultExprTrait< DVecScalarMultExpr<VT1,ST1,false>, SVecScalarMultExpr<VT2,ST2,false> >
2237 template<
typename VT1,
typename ST,
typename VT2 >
2255 template<
typename VT1,
typename ST1,
typename VT2,
typename ST2 >
2281 template<
typename VT1,
typename ST,
typename VT2 >
2299 template<
typename VT1,
typename ST1,
typename VT2,
typename ST2 >
2325 template<
typename VT1,
typename VT2,
typename ST >
2343 template<
typename VT1,
typename ST1,
typename VT2,
typename ST2 >
2344 struct SVecDVecMultExprTrait< SVecScalarMultExpr<VT1,ST1,false>, DVecScalarMultExpr<VT2,ST2,false> >
2369 template<
typename VT1,
typename VT2,
typename ST >
2387 template<
typename VT1,
typename ST1,
typename VT2,
typename ST2 >
2413 template<
typename VT1,
typename VT2,
typename ST >
2431 template<
typename VT1,
typename ST1,
typename VT2,
typename ST2 >
2457 template<
typename MT,
typename VT,
typename ST >
2483 template<
typename MT,
typename VT,
typename ST >
2509 template<
typename VT,
typename MT,
typename ST >
2535 template<
typename VT,
typename MT,
typename ST >
2561 template<
typename MT,
typename VT,
typename ST >
2587 template<
typename MT,
typename VT,
typename ST >
2613 template<
typename VT,
typename MT,
typename ST >
2639 template<
typename VT,
typename MT,
typename ST >
2665 template<
typename VT,
typename ST,
bool TF,
bool AF >
RightOperand rightOperand() const noexcept
Returns the right-hand side scalar operand.
Definition: SVecScalarMultExpr.h:450
bool isAligned() const noexcept
Returns whether the operands of the expression are properly aligned in memory.
Definition: DVecScalarMultExpr.h:586
Pointer difference type of the Blaze library.
LeftOperand leftOperand() const noexcept
Returns the left-hand side dense vector operand.
Definition: DVecScalarMultExpr.h:542
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.
Compile time check whether the given type is a computational expression template.This type trait clas...
Definition: IsComputation.h:72
Compile time check for numeric types.This type trait tests whether or not the given template paramete...
Definition: IsNumeric.h:79
Constraint on the data type.
TransposeType_< ResultType > TransposeType
Transpose type for expression template evaluations.
Definition: DVecScalarMultExpr.h:180
Evaluation of the expression type of a sparse vector/dense vector multiplication.Via this type trait ...
Definition: SVecDVecMultExprTrait.h:78
Compile time check whether the given type is a temporary vector or matrix type.This type trait class ...
Definition: IsTemporary.h:70
Evaluation of the expression type type of a subvector operation.Via this type trait it is possible to...
Definition: SubvectorExprTrait.h:79
Evaluation of the expression type of a transpose dense vector/scalar multiplication.Via this type trait it is possible to evaluate the resulting expression type of a transpose dense vector/scalar multiplication. Given the transpose dense vector type VT and the scalar type ST, the nested type Type corresponds to the resulting expression type. In case either VT is not a transpose dense vector type or ST is not a scalar type, the resulting Type is set to INVALID_TYPE.
Definition: TDVecScalarMultExprTrait.h:126
typename DMatScalarMultExprTrait< MT, ST >::Type DMatScalarMultExprTrait_
Auxiliary alias declaration for the DMatScalarMultExprTrait class template.The DMatScalarMultExprTrai...
Definition: DMatScalarMultExprTrait.h:164
Header file for basic type definitions.
Header file for the SparseVector base class.
typename DVecScalarMultExprTrait< VT, ST >::Type DVecScalarMultExprTrait_
Auxiliary alias declaration for the DVecScalarMultExprTrait class template.The DVecScalarMultExprTrai...
Definition: DVecScalarMultExprTrait.h:164
BLAZE_ALWAYS_INLINE auto load(size_t index) const noexcept
Access to the SIMD elements of the vector.
Definition: DVecScalarMultExpr.h:500
Evaluation of the expression type of a transpose dense vector/transpose sparse vector multiplication...
Definition: TDVecTSVecMultExprTrait.h:78
Evaluation of the expression type of a sparse vector/transpose dense vector multiplication.Via this type trait it is possible to evaluate the resulting expression type of a sparse vector/transpose dense vector multiplication (outer product). Given the non-transpose sparse vector type VT1 and the transpose dense vector type VT2, the nested type Type corresponds to the resulting expression type. In case either VT1 is not a non-transpose sparse vector type or VT2 is not a transpose dense vector type, the resulting Type is set to INVALID_TYPE.
Definition: SVecDVecOuterExprTrait.h:79
RightOperand rightOperand() const noexcept
Returns the right-hand side scalar operand.
Definition: DVecScalarMultExpr.h:552
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
Header file for the IsSparseMatrix type trait.
Header file for the serial shim.
Generic wrapper for a compile time constant integral value.The IntegralConstant class template repres...
Definition: IntegralConstant.h:71
const ConstIterator operator++(int)
Post-increment operator.
Definition: DVecScalarMultExpr.h:272
Evaluation of the expression type of a dense vector/scalar multiplication.Via this type trait it is p...
Definition: DVecScalarMultExprTrait.h:126
Availability of a SIMD multiplication for the given data types.Depending on the available instruction...
Definition: HasSIMDMult.h:162
ResultType_< VT > RT
Result type of the dense vector expression.
Definition: DVecScalarMultExpr.h:123
Header file for the IsColumnMajorMatrix type trait.
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
size_t size() const noexcept
Returns the current size/dimension of the vector.
Definition: DVecScalarMultExpr.h:532
Header file for the And class template.
Header file for the DenseVector base class.
const DMatSerialExpr< MT, SO > serial(const DenseMatrix< MT, SO > &dm)
Forces the serial evaluation of the given dense matrix expression dm.
Definition: DMatSerialExpr.h:721
typename MultTrait< T1, T2 >::Type MultTrait_
Auxiliary alias declaration for the MultTrait class template.The MultTrait_ alias declaration provide...
Definition: MultTrait.h:245
Header file for the Computation base class.
auto load() const noexcept
Access to the SIMD elements of the vector.
Definition: DVecScalarMultExpr.h:313
Evaluation of the expression type of a dense matrix/dense vector multiplication.Via this type trait i...
Definition: DMatDVecMultExprTrait.h:78
Header file for the UnderlyingElement type trait.
const DenseIterator< Type, AF > operator-(const DenseIterator< Type, AF > &it, ptrdiff_t inc) noexcept
Subtraction between a DenseIterator and an integral value.
Definition: DenseIterator.h:731
Header file for the RequiresEvaluation type trait.
bool operator==(const ConstIterator &rhs) const
Equality comparison between two ConstIterator objects.
Definition: DVecScalarMultExpr.h:324
Evaluation of the expression type of a transpose dense vector/transpose dense vector multiplication...
Definition: TDVecTDVecMultExprTrait.h:77
ConstIterator(IteratorType iterator, RightOperand scalar)
Constructor for the ConstIterator class.
Definition: DVecScalarMultExpr.h:226
Header file for the VecScalarMultExpr base class.
typename T::ResultType ResultType_
Alias declaration for nested ResultType type definitions.The ResultType_ alias declaration provides a...
Definition: Aliases.h:323
Evaluation of the expression type of a sparse matrix/dense vector multiplication.Via this type trait ...
Definition: SMatDVecMultExprTrait.h:78
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
ConstIterator_< VT > IteratorType
ConstIterator type of the dense vector expression.
Definition: DVecScalarMultExpr.h:217
ConstIterator end() const
Returns an iterator just past the last non-zero element of the dense vector.
Definition: DVecScalarMultExpr.h:522
typename UnderlyingBuiltin< T >::Type UnderlyingBuiltin_
Auxiliary alias declaration for the UnderlyingBuiltin type trait.The UnderlyingBuiltin_ alias declara...
Definition: UnderlyingBuiltin.h:133
Base class for dense matrices.The DenseMatrix class is a base class for all dense matrix classes...
Definition: DenseMatrix.h:71
Base class for sparse matrices.The SparseMatrix class is a base class for all sparse matrix classes...
Definition: Forward.h:119
Constraint on the data type.
auto length(const DenseVector< VT, TF > &dv) -> decltype(sqrt(sqrLength(~dv)))
Calculation of the dense vector length .
Definition: DenseVector.h:574
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
ValueType value_type
Type of the underlying elements.
Definition: DVecScalarMultExpr.h:211
typename T::ReturnType ReturnType_
Alias declaration for nested ReturnType type definitions.The ReturnType_ alias declaration provides a...
Definition: Aliases.h:343
Header file for the SparseMatrix base class.
Header file for the DivExprTrait class template.
ReturnType_< VT > RN
Return type of the dense vector expression.
Definition: DVecScalarMultExpr.h:124
PointerType pointer
Pointer return type.
Definition: DVecScalarMultExpr.h:212
Compile time check for the alignment of data types.This type trait tests whether the given data type ...
Definition: IsAligned.h:87
typename MultExprTrait< T1, T2 >::Type MultExprTrait_
Auxiliary alias declaration for the MultExprTrait class template.The MultExprTrait_ alias declaration...
Definition: MultExprTrait.h:344
Header file for the MultExprTrait class template.
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
Evaluation of the expression type of a dense vector/transpose dense vector multiplication.Via this type trait it is possible to evaluate the resulting expression type of a dense vector/transpose dense vector multiplication (outer product). Given the non-transpose dense vector type VT1 and the transpose dense vector type VT2, the nested type Type corresponds to the resulting expression type. In case either VT1 is not a non-transpose dense vector type or VT2 is not a transpose dense vector type, the resulting Type is set to INVALID_TYPE.
Definition: DVecDVecOuterExprTrait.h:78
ptrdiff_t DifferenceType
Difference between two iterators.
Definition: DVecScalarMultExpr.h:207
const EnableIf_< IsNumeric< T2 >, DivExprTrait_< T1, T2 > > operator/(const DenseMatrix< T1, SO > &mat, T2 scalar)
Division operator for the division of a dense matrix by a scalar value ( ).
Definition: DMatScalarDivExpr.h:966
ReturnType at(size_t index) const
Checked access to the vector elements.
Definition: DVecScalarMultExpr.h:486
Header file for the IsTemporary type trait class.
CompositeType_< VT > CT
Composite type of the dense vector expression.
Definition: DVecScalarMultExpr.h:126
Compile time check for dense vector types.This type trait tests whether or not the given template par...
Definition: IsDenseVector.h:78
Header file for the multiplication trait.
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.
Compile time check for row-major matrix types.This type trait tests whether or not the given template...
Definition: IsRowMajorMatrix.h:83
Evaluation of the expression type of a dense vector/transpose sparse matrix multiplication.Via this type trait it is possible to evaluate the resulting expression type of a dense vector/transpose sparse matrix multiplication. Given the transpose dense vector type VT and the column-major sparse matrix type MT, the nested type Type corresponds to the resulting expression type. In case either VT is not a transpose dense vector type or MT is not a column-major sparse matrix type, the resulting data type Type is set to INVALID_TYPE.
Definition: TDVecTSMatMultExprTrait.h:79
Header file for the UnderlyingBuiltin type trait.
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
Header file for the Or class template.
#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
Iterator over the elements of the dense vector.
Definition: DVecScalarMultExpr.h:199
Header file for the DenseMatrix base class.
bool operator<=(const ConstIterator &rhs) const
Less-than comparison between two ConstIterator objects.
Definition: DVecScalarMultExpr.h:368
ConstIterator begin() const
Returns an iterator to the first non-zero element of the dense vector.
Definition: DVecScalarMultExpr.h:512
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.
ST RightOperand
Composite type of the right-hand side scalar value.
Definition: DVecScalarMultExpr.h:193
Base class for N-dimensional dense vectors.The DenseVector class is a base class for all arbitrarily ...
Definition: DenseVector.h:70
Compile time check for sparse vector types.This type trait tests whether or not the given template pa...
Definition: IsSparseVector.h:78
#define BLAZE_CONSTRAINT_MUST_BE_SAME_TYPE(A, B)
Data type constraint.In case the two types A and B are not the same (ignoring all cv-qualifiers of bo...
Definition: SameType.h:71
Header file for the IsAligned type trait.
Constraint on the data type.
Evaluation of the expression type of a dense vector/sparse matrix multiplication.Via this type trait ...
Definition: TDVecSMatMultExprTrait.h:80
#define BLAZE_CONSTRAINT_MUST_BE_REFERENCE_TYPE(T)
Constraint on the data type.In case the given data type T is not a reference type, a compilation error is created.
Definition: Reference.h:60
typename DVecScalarDivExprTrait< VT, ST >::Type DVecScalarDivExprTrait_
Auxiliary alias declaration for the DVecScalarDivExprTrait class template.The DVecScalarDivExprTrait_...
Definition: DVecScalarDivExprTrait.h:172
std::random_access_iterator_tag IteratorCategory
The iterator category.
Definition: DVecScalarMultExpr.h:203
Compile time check for column vector types.This type trait tests whether or not the given template ar...
Definition: IsColumnVector.h:80
Constraint on the data type.
Header file for the exception macros of the math module.
DVecScalarMultExpr< VT, ST, TF > This
Type of this DVecScalarMultExpr instance.
Definition: DVecScalarMultExpr.h:178
Compile time check for dense matrix types.This type trait tests whether or not the given template par...
Definition: IsDenseMatrix.h:78
LeftOperand vector_
Left-hand side dense vector of the multiplication expression.
Definition: DVecScalarMultExpr.h:603
Header file for all forward declarations for expression class templates.
Header file for the IsDenseMatrix type trait.
Header file for the EnableIf class template.
ReferenceType reference
Reference return type.
Definition: DVecScalarMultExpr.h:213
ConstIterator & operator++()
Pre-increment operator.
Definition: DVecScalarMultExpr.h:261
Header file for the IsPadded type trait.
bool isAliased(const T *alias) const noexcept
Returns whether the expression is aliased with the given address alias.
Definition: DVecScalarMultExpr.h:576
DifferenceType operator-(const ConstIterator &rhs) const
Calculating the number of elements between two iterators.
Definition: DVecScalarMultExpr.h:390
typename DivTrait< T1, T2 >::Type DivTrait_
Auxiliary alias declaration for the DivTrait class template.The DivTrait_ alias declaration provides ...
Definition: DivTrait.h:245
friend const ConstIterator operator+(const ConstIterator &it, size_t inc)
Addition between a ConstIterator and an integral value.
Definition: DVecScalarMultExpr.h:402
bool operator<(const ConstIterator &rhs) const
Less-than comparison between two ConstIterator objects.
Definition: DVecScalarMultExpr.h:346
If_< IsExpression< VT >, const VT, const VT &> LeftOperand
Composite type of the left-hand side dense vector expression.
Definition: DVecScalarMultExpr.h:190
Header file for the IsNumeric type trait.
RightOperand scalar_
Right-hand side scalar of the multiplication expression.
Definition: DVecScalarMultExpr.h:604
ElementType ValueType
Type of the underlying elements.
Definition: DVecScalarMultExpr.h:204
ReturnType operator[](size_t index) const
Subscript operator for the direct access to the vector elements.
Definition: DVecScalarMultExpr.h:473
typename SMatScalarMultExprTrait< MT, ST >::Type SMatScalarMultExprTrait_
Auxiliary alias declaration for the SMatScalarMultExprTrait class template.The SMatScalarMultExprTrai...
Definition: SMatScalarMultExprTrait.h:164
Base class for all vector/scalar multiplication expression templates.The VecScalarMultExpr class serv...
Definition: VecScalarMultExpr.h:66
typename SVecScalarMultExprTrait< VT, ST >::Type SVecScalarMultExprTrait_
Auxiliary alias declaration for the SVecScalarMultExprTrait class template.The SVecScalarMultExprTrai...
Definition: SVecScalarMultExprTrait.h:164
ElementType_< VT > ET
Element type of the dense vector expression.
Definition: DVecScalarMultExpr.h:125
Header file for the IsSparseVector type trait.
Header file for the HasSIMDMult type trait.
Header file for run time assertion macros.
Compile time check for column-major matrix types.This type trait tests whether or not the given templ...
Definition: IsColumnMajorMatrix.h:83
bool canSMPAssign() const noexcept
Returns whether the expression can be used in SMP assignments.
Definition: DVecScalarMultExpr.h:596
Utility type for generic codes.
Evaluation of the expression type of a dense vector/scalar division.Via this type trait it is possibl...
Definition: DVecScalarDivExprTrait.h:134
Header file for the division trait.
IteratorType iterator_
Iterator to the current element.
Definition: DVecScalarMultExpr.h:433
bool operator!=(const ConstIterator &rhs) const
Inequality comparison between two ConstIterator objects.
Definition: DVecScalarMultExpr.h:335
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
Constraint on the data type.
#define BLAZE_CONSTRAINT_MUST_BE_NUMERIC_TYPE(T)
Constraint on the data type.In case the given data type T is not a numeric (integral or floating poin...
Definition: Numeric.h:61
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
typename TSVecScalarMultExprTrait< VT, ST >::Type TSVecScalarMultExprTrait_
Auxiliary alias declaration for the TSVecScalarMultExprTrait class template.The TSVecScalarMultExprTr...
Definition: TSVecScalarMultExprTrait.h:164
friend const ConstIterator operator+(size_t inc, const ConstIterator &it)
Addition between an integral value and a ConstIterator.
Definition: DVecScalarMultExpr.h:414
ElementType * PointerType
Pointer return type.
Definition: DVecScalarMultExpr.h:205
Compile time check for data types.This type trait tests whether or not the given template parameter i...
Definition: IsInvertible.h:83
typename TSMatScalarMultExprTrait< MT, ST >::Type TSMatScalarMultExprTrait_
Auxiliary alias declaration for the TSMatScalarMultExprTrait class template.The TSMatScalarMultExprTr...
Definition: TSMatScalarMultExprTrait.h:164
Evaluation of the expression type of a transpose dense vector/scalar division.Via this type trait it ...
Definition: TDVecScalarDivExprTrait.h:133
Header file for the IsInvertible type trait.
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.
friend const ConstIterator operator-(const ConstIterator &it, size_t dec)
Subtraction between a ConstIterator and an integral value.
Definition: DVecScalarMultExpr.h:426
MultTrait_< RT, ST > ResultType
Result type for expression template evaluations.
Definition: DVecScalarMultExpr.h:179
Evaluation of the expression type of a dense vector/dense matrix multiplication.Via this type trait i...
Definition: TDVecDMatMultExprTrait.h:78
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
ElementType & ReferenceType
Reference return type.
Definition: DVecScalarMultExpr.h:206
bool canAlias(const T *alias) const noexcept
Returns whether the expression can alias with the given address alias.
Definition: DVecScalarMultExpr.h:564
MultExprTrait_< RN, ST > ExprReturnType
Expression return type for the subscript operator.
Definition: DVecScalarMultExpr.h:139
Evaluation of the expression type of a dense vector/transpose dense matrix multiplication.Via this type trait it is possible to evaluate the resulting expression type of a dense vector/transpose dense matrix multiplication. Given the transpose dense vector type VT and the column-major dense matrix type MT, the nested type Type corresponds to the resulting expression type. In case either VT is not a transpose dense vector type or MT is not a column-major dense matrix type, the resulting data type Type is set to INVALID_TYPE.
Definition: TDVecTDMatMultExprTrait.h:79
const DVecScalarMultExpr< VT, ElementType_< VT >, TF > normalize(const DenseVector< VT, TF > &vec)
Normalization of the dense vector ( ).
Definition: DVecScalarMultExpr.h:1164
IfTrue_< useAssign, const ResultType, const DVecScalarMultExpr &> CompositeType
Data type for composite expression templates.
Definition: DVecScalarMultExpr.h:187
const IfTrue_< returnExpr, ExprReturnType, ElementType > ReturnType
Return type for expression template evaluations.
Definition: DVecScalarMultExpr.h:184
Header file for the IsRowMajorMatrix type trait.
Evaluation of the expression type of a dense vector/sparse vector multiplication.Via this type trait ...
Definition: DVecSVecMultExprTrait.h:77
Header file for the IsComputation type trait class.
bool operator>(const ConstIterator &rhs) const
Greater-than comparison between two ConstIterator objects.
Definition: DVecScalarMultExpr.h:357
Evaluation of the expression type of a transpose sparse matrix/dense vector multiplication.Via this type trait it is possible to evaluate the resulting expression type of a transpose sparse matrix/dense vector multiplication. Given the column-major sparse matrix type MT and the non-transpose dense vector type VT, the nested type Type corresponds to the resulting expression type. In case either MT is not a column-major sparse matrix type or VT is not a non-transpose dense vector type, the resulting data type Type is set to INVALID_TYPE.
Definition: TSMatDVecMultExprTrait.h:81
const ConstIterator operator--(int)
Post-decrement operator.
Definition: DVecScalarMultExpr.h:293
Expression object for dense vector-scalar multiplications.The DVecScalarMultExpr class represents the...
Definition: DVecScalarMultExpr.h:117
typename DivExprTrait< T1, T2 >::Type DivExprTrait_
Auxiliary alias declaration for the DivExprTrait class template.The DivExprTrait_ alias declaration p...
Definition: DivExprTrait.h:196
Expression object for sparse vector-scalar multiplications.The SVecScalarMultExpr class represents th...
Definition: Forward.h:129
ConstIterator & operator+=(size_t inc)
Addition assignment operator.
Definition: DVecScalarMultExpr.h:238
Base class for all compute expression templates.The Computation class serves as a tag for all computa...
Definition: Computation.h:59
Compile time logical or evaluation.The Or class template performs at compile time a logical or ('&&')...
Definition: Or.h:101
Evaluation of the expression type of a transpose sparse vector/transpose dense vector multiplication...
Definition: TSVecTDVecMultExprTrait.h:78
DVecScalarMultExpr(const VT &vector, ST scalar) noexcept
Constructor for the DVecScalarMultExpr class.
Definition: DVecScalarMultExpr.h:461
Compile time evaluation of the size of a vector.The Size type trait evaluates the size of the given v...
Definition: Size.h:75
Evaluation of the expression type of a transpose dense matrix/dense vector multiplication.Via this type trait it is possible to evaluate the resulting expression type of a transpose dense matrix/dense vector multiplication. Given the column-major dense matrix type MT and the non-transpose dense vector type VT, the nested type Type corresponds to the resulting expression type. In case either MT is not a column-major dense matrix type or VT is not a non-transpose dense vector type, the resulting data type Type is set to INVALID_TYPE.
Definition: TDMatDVecMultExprTrait.h:79
Base class for sparse vectors.The SparseVector class is a base class for all arbitrarily sized (N-dim...
Definition: Forward.h:120
ConstIterator & operator-=(size_t dec)
Subtraction assignment operator.
Definition: DVecScalarMultExpr.h:250
Header file for the IntegralConstant class template.
typename TDVecScalarDivExprTrait< VT, ST >::Type TDVecScalarDivExprTrait_
Auxiliary alias declaration for the TDVecScalarDivExprTrait class template.The TDVecScalarDivExprTrai...
Definition: TDVecScalarDivExprTrait.h:171
Header file for the SubvectorExprTrait class template.
Compile time check for sparse matrix types.This type trait tests whether or not the given template pa...
Definition: IsSparseMatrix.h:78
typename TDVecScalarMultExprTrait< VT, ST >::Type TDVecScalarMultExprTrait_
Auxiliary alias declaration for the TDVecScalarMultExprTrait class template.The TDVecScalarMultExprTr...
Definition: TDVecScalarMultExprTrait.h:164
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.
ReturnType operator*() const
Direct access to the element at the current iterator position.
Definition: DVecScalarMultExpr.h:303
IteratorCategory iterator_category
The iterator category.
Definition: DVecScalarMultExpr.h:210
bool operator>=(const ConstIterator &rhs) const
Greater-than comparison between two ConstIterator objects.
Definition: DVecScalarMultExpr.h:379
Evaluation of the expression type of a dense vector/transpose sparse vector multiplication.Via this type trait it is possible to evaluate the resulting expression type of a dense vector/transpose sparse vector multiplication (outer product). Given the non-transpose dense vector type VT1 and the transpose sparse vector type VT2, the nested type Type corresponds to the resulting expression type. In case either VT1 is not a non-transpose dense vector type or VT2 is not a transpose sparse vector type, the resulting Type is set to INVALID_TYPE.
Definition: DVecSVecOuterExprTrait.h:79
const DMatDMatMultExpr< T1, T2, false, false, false, false > operator*(const DenseMatrix< T1, false > &lhs, const DenseMatrix< T2, false > &rhs)
Multiplication operator for the multiplication of two row-major dense matrices ( ).
Definition: DMatDMatMultExpr.h:7505
System settings for the inline keywords.
Header file for the Size type trait.
RightOperand scalar_
Scalar of the multiplication expression.
Definition: DVecScalarMultExpr.h:434
#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
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
LeftOperand leftOperand() const noexcept
Returns the left-hand side sparse vector operand.
Definition: SVecScalarMultExpr.h:440
ElementType_< ResultType > ElementType
Resulting element type.
Definition: DVecScalarMultExpr.h:181
#define BLAZE_CONSTRAINT_MUST_BE_FLOATING_POINT_TYPE(T)
Constraint on the data type.In case the given data type T is not a floating point data type...
Definition: FloatingPoint.h:61
Header file for the IsExpression type trait class.
Header file for the function trace functionality.
DifferenceType difference_type
Difference between two iterators.
Definition: DVecScalarMultExpr.h:214
ConstIterator & operator--()
Pre-decrement operator.
Definition: DVecScalarMultExpr.h:282
Evaluation of the expression type of a dense vector/dense vector multiplication.Via this type trait i...
Definition: DVecDVecMultExprTrait.h:76