35 #ifndef _BLAZE_MATH_EXPRESSIONS_SVECTDVECMULTEXPR_H_
36 #define _BLAZE_MATH_EXPRESSIONS_SVECTDVECMULTEXPR_H_
103 template<
typename VT1
105 class SVecTDVecMultExpr :
public SparseMatrix< SVecTDVecMultExpr<VT1,VT2>, true >
106 ,
private VecTVecMultExpr
107 ,
private Computation
146 template<
typename MT >
149 enum :
bool { value = useAssign };
159 template<
typename T1,
typename T2,
typename T3 >
160 struct UseVectorizedKernel {
162 T1::simdEnabled && T3::simdEnabled &&
175 template<
typename T1,
typename T2,
typename T3 >
176 struct UseDefaultKernel {
177 enum :
bool { value = !UseVectorizedKernel<T1,T2,T3>::value };
285 return it_->value() *
v_;
342 enum :
bool { smpAssignable =
false };
385 inline ReturnType
at(
size_t i,
size_t j )
const {
386 if( i >=
lhs_.size() ) {
389 if( j >=
rhs_.size() ) {
423 inline size_t rows() const noexcept {
444 return lhs_.nonZeros() *
rhs_.size();
456 return lhs_.nonZeros();
525 template<
typename T >
526 inline bool canAlias(
const T* alias )
const noexcept {
527 return (
lhs_.canAlias( alias ) ||
rhs_.canAlias( alias ) );
537 template<
typename T >
538 inline bool isAliased(
const T* alias )
const noexcept {
539 return (
lhs_.isAliased( alias ) ||
rhs_.isAliased( alias ) );
561 template<
typename MT >
571 LT x(
serial( rhs.lhs_ ) );
572 RT y(
serial( rhs.rhs_ ) );
579 SVecTDVecMultExpr::selectAssignKernel( ~lhs, x, y );
598 template<
typename MT
606 const ConstIterator
end( x.end() );
608 for( ConstIterator element=x.begin(); element!=
end; ++element ) {
610 for(
size_t j=0UL; j<y.size(); ++j ) {
611 (~A)(element->index(),j) = element->
value() * y[j];
633 template<
typename MT
636 static inline EnableIf_< UseVectorizedKernel<MT,VT3,VT4> >
637 selectAssignKernel( DenseMatrix<MT,false>& A,
const VT3& x,
const VT4& y )
639 typedef ConstIterator_< RemoveReference_<LT> >
ConstIterator;
641 const size_t N( (~A).
columns() );
643 const bool remainder( !IsPadded<MT>::value || !IsPadded<VT4>::value );
645 const size_t jpos( remainder ? ( N &
size_t(-SIMDSIZE) ) : N );
648 const ConstIterator
begin( x.begin() );
649 const ConstIterator
end ( x.end() );
651 for( ConstIterator element=
begin; element!=
end; ++element )
653 const SIMDTrait_<ElementType> x1(
set( element->value() ) );
657 for( ; j<jpos; j+=SIMDSIZE ) {
658 (~A).store( element->index(), j, x1 * y.load(j) );
660 for( ; remainder && j<N; ++j ) {
661 (~A)(element->index(),j) = element->value() * y[j];
684 template<
typename MT >
685 friend inline EnableIf_< UseAssign<MT> >
693 typedef ConstIterator_< RemoveReference_<LT> >
ConstIterator;
695 LT x(
serial( rhs.lhs_ ) );
696 RT y(
serial( rhs.rhs_ ) );
703 const ConstIterator
end( x.end() );
705 for(
size_t i=0UL; i<y.size(); ++i ) {
707 for( ConstIterator element=x.begin(); element!=
end; ++element ) {
708 (~lhs)(element->index(),i) = element->
value() * y[i];
728 template<
typename MT >
729 friend inline void assign( SparseMatrix<MT,false>& lhs,
const SVecTDVecMultExpr& rhs )
738 typedef ConstIterator_< RemoveReference_<LT> >
ConstIterator;
740 LT x(
serial( rhs.lhs_ ) );
741 RT y(
serial( rhs.rhs_ ) );
748 const ConstIterator
begin( x.begin() );
749 const ConstIterator
end ( x.end() );
754 (~lhs).reserve(
begin->
index(), rhs.nonZeros() );
758 for( ConstIterator element=
begin; element!=
end; ++element ) {
760 for( ; index < element->index(); ++index ) {
761 (~lhs).finalize( index );
763 for(
size_t i=0UL; i<y.size(); ++i ) {
764 (~lhs).append( element->index(), i, element->value() * y[i] );
766 (~lhs).finalize( index++ );
770 for( ; index < x.size(); ++index ) {
771 (~lhs).finalize( index );
793 template<
typename MT >
794 friend inline EnableIf_< UseAssign<MT> >
803 typedef ConstIterator_< RemoveReference_<LT> >
ConstIterator;
805 LT x(
serial( rhs.lhs_ ) );
806 RT y(
serial( rhs.rhs_ ) );
813 const ConstIterator
begin( x.begin() );
814 const ConstIterator
end ( x.end() );
819 for(
size_t i=0UL; i<y.size(); ++i ) {
821 for( ConstIterator element=
begin; element!=
end; ++element ) {
822 (~lhs).append( element->index(), i, element->value() * y[i] );
825 (~lhs).finalize( i );
844 template<
typename MT >
845 friend inline void addAssign( DenseMatrix<MT,false>& lhs,
const SVecTDVecMultExpr& rhs )
854 LT x(
serial( rhs.lhs_ ) );
855 RT y(
serial( rhs.rhs_ ) );
862 SVecTDVecMultExpr::selectAddAssignKernel( ~lhs, x, y );
881 template<
typename MT
884 static inline EnableIf_< UseDefaultKernel<MT,VT3,VT4> >
885 selectAddAssignKernel( DenseMatrix<MT,false>& A,
const VT3& x,
const VT4& y )
887 typedef ConstIterator_< RemoveReference_<LT> >
ConstIterator;
889 const ConstIterator
end( x.end() );
891 for( ConstIterator element=x.begin(); element!=
end; ++element ) {
893 for(
size_t i=0UL; i<y.size(); ++i ) {
894 (~A)(element->index(),i) += element->
value() * y[i];
916 template<
typename MT
919 static inline EnableIf_< UseVectorizedKernel<MT,VT3,VT4> >
920 selectAddAssignKernel( DenseMatrix<MT,false>& A,
const VT3& x,
const VT4& y )
922 typedef ConstIterator_< RemoveReference_<LT> >
ConstIterator;
924 const size_t N( (~A).
columns() );
926 const bool remainder( !IsPadded<MT>::value || !IsPadded<VT4>::value );
928 const size_t jpos( remainder ? ( N &
size_t(-SIMDSIZE) ) : N );
931 const ConstIterator
begin( x.begin() );
932 const ConstIterator
end ( x.end() );
934 for( ConstIterator element=
begin; element!=
end; ++element )
936 const SIMDTrait_<ElementType> x1(
set( element->value() ) );
940 for( ; j<jpos; j+=SIMDSIZE ) {
941 (~A).store( element->index(), j, (~A).load(element->index(),j) + x1 * y.load(j) );
943 for( ; remainder && j<N; ++j ) {
944 (~A)(element->index(),j) += element->value() * y[j];
967 template<
typename MT >
968 friend inline EnableIf_< UseAssign<MT> >
976 typedef ConstIterator_< RemoveReference_<LT> >
ConstIterator;
978 LT x(
serial( rhs.lhs_ ) );
979 RT y(
serial( rhs.rhs_ ) );
986 const ConstIterator
end( x.end() );
988 for(
size_t i=0UL; i<y.size(); ++i ) {
990 for( ConstIterator element=x.begin(); element!=
end; ++element ) {
991 (~lhs)(element->index(),i) += element->
value() * y[i];
1016 template<
typename MT >
1017 friend inline void subAssign( DenseMatrix<MT,false>& lhs,
const SVecTDVecMultExpr& rhs )
1026 LT x(
serial( rhs.lhs_ ) );
1027 RT y(
serial( rhs.rhs_ ) );
1034 SVecTDVecMultExpr::selectSubAssignKernel( ~lhs, x, y );
1053 template<
typename MT
1056 static inline EnableIf_< UseDefaultKernel<MT,VT3,VT4> >
1057 selectSubAssignKernel( DenseMatrix<MT,false>& A,
const VT3& x,
const VT4& y )
1059 typedef ConstIterator_< RemoveReference_<LT> >
ConstIterator;
1061 const ConstIterator
end( x.end() );
1063 for( ConstIterator element=x.begin(); element!=
end; ++element ) {
1065 for(
size_t i=0UL; i<y.size(); ++i ) {
1066 (~A)(element->index(),i) -= element->
value() * y[i];
1088 template<
typename MT
1091 static inline EnableIf_< UseVectorizedKernel<MT,VT3,VT4> >
1092 selectSubAssignKernel( DenseMatrix<MT,false>& A,
const VT3& x,
const VT4& y )
1094 typedef ConstIterator_< RemoveReference_<LT> >
ConstIterator;
1096 const size_t N( (~A).
columns() );
1098 const bool remainder( !IsPadded<MT>::value || !IsPadded<VT4>::value );
1100 const size_t jpos( remainder ? ( N &
size_t(-SIMDSIZE) ) : N );
1103 const ConstIterator
begin( x.begin() );
1104 const ConstIterator
end ( x.end() );
1106 for( ConstIterator element=
begin; element!=
end; ++element )
1108 const SIMDTrait_<ElementType> x1(
set( element->value() ) );
1112 for( ; j<jpos; j+=SIMDSIZE ) {
1113 (~A).store( element->index(), j, (~A).load(element->index(),j) - x1 * y.load(j) );
1115 for( ; remainder && j<N; ++j ) {
1116 (~A)(element->index(),j) -= element->value() * y[j];
1139 template<
typename MT >
1140 friend inline EnableIf_< UseAssign<MT> >
1148 typedef ConstIterator_< RemoveReference_<LT> >
ConstIterator;
1150 LT x(
serial( rhs.lhs_ ) );
1151 RT y(
serial( rhs.rhs_ ) );
1158 const ConstIterator
end( x.end() );
1160 for(
size_t i=0UL; i<y.size(); ++i ) {
1162 for( ConstIterator element=x.begin(); element!=
end; ++element ) {
1163 (~lhs)(element->index(),i) -= element->
value() * y[i];
1233 template<
typename T1
1235 inline const SVecTDVecMultExpr<T1,T2>
1255 template<
typename VT1,
typename VT2 >
1272 template<
typename VT1,
typename VT2 >
1289 template<
typename VT1,
typename VT2,
bool AF >
1294 using Type = MultExprTrait_< SubvectorExprTrait_<const VT1,AF>
1295 , SubvectorExprTrait_<const VT2,AF> >;
1304 template<
typename VT1,
typename VT2 >
1309 using Type = MultExprTrait_< ReturnType_<VT1>, VT2 >;
1318 template<
typename VT1,
typename VT2 >
1323 using Type = MultExprTrait_< VT1, ReturnType_<VT2> >;
CompositeType_< VT2 > CT2
Composite type of the right-hand side dense vector expression.
Definition: SVecTDVecMultExpr.h:116
Pointer difference type of the Blaze library.
Header file for auxiliary alias declarations.
MultExprTrait_< RN1, RN2 > ExprReturnType
Expression return type for the subscript operator.
Definition: SVecTDVecMultExpr.h:131
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
constexpr bool useOptimizedKernels
Configuration switch for optimized kernels.This configuration switch enables/disables all optimized c...
Definition: Optimizations.h:84
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.
Header file for the UNUSED_PARAMETER function template.
const DMatDMatMultExpr< T1, T2 > 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:7800
Iterator over the elements of the sparse vector-dense vector outer product expression.
Definition: SVecTDVecMultExpr.h:212
BLAZE_ALWAYS_INLINE size_t capacity(const Matrix< MT, SO > &matrix) noexcept
Returns the maximum capacity of the matrix.
Definition: Matrix.h:346
Header file for basic type definitions.
size_t rows() const noexcept
Returns the current number of rows of the matrix.
Definition: SVecTDVecMultExpr.h:423
std::forward_iterator_tag IteratorCategory
The iterator category.
Definition: SVecTDVecMultExpr.h:225
ElementType_< VT1 > ET1
Element type of the left-hand side sparse vector expression.
Definition: SVecTDVecMultExpr.h:117
MultTrait_< RT1, RT2 > ResultType
Result type for expression template evaluations.
Definition: SVecTDVecMultExpr.h:185
#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
size_t columns() const noexcept
Returns the current number of columns of the matrix.
Definition: SVecTDVecMultExpr.h:433
Header file for the serial shim.
size_t nonZeros(size_t i) const
Returns the number of non-zero elements in the specified column.
Definition: SVecTDVecMultExpr.h:454
Header file for the ColumnExprTrait class template.
Header file for the IsSame and IsStrictlySame type traits.
DifferenceType difference_type
Difference between two iterators.
Definition: SVecTDVecMultExpr.h:236
Availability of a SIMD multiplication for the given data types.Depending on the available instruction...
Definition: HasSIMDMult.h:162
ValueType * PointerType
Pointer return type.
Definition: SVecTDVecMultExpr.h:227
Expression object for sparse vector-dense vector outer products.The SVecTDVecMultExpr class represent...
Definition: Forward.h:124
size_t nonZeros() const
Returns the number of non-zero elements in the sparse matrix.
Definition: SVecTDVecMultExpr.h:443
ConstIterator begin(size_t i) const
Returns an iterator to the first non-zero element of column i.
Definition: SVecTDVecMultExpr.h:402
const DMatSerialExpr< MT, SO > serial(const DenseMatrix< MT, SO > &dm)
Forces the serial evaluation of the given dense matrix expression dm.
Definition: DMatSerialExpr.h:723
typename MultTrait< T1, T2 >::Type MultTrait_
Auxiliary alias declaration for the MultTrait class template.The MultTrait_ alias declaration provide...
Definition: MultTrait.h:245
ConstIterator end(size_t i) const
Returns an iterator just past the last non-zero element of column i.
Definition: SVecTDVecMultExpr.h:413
If_< IsComputation< VT2 >, const RT2, CT2 > RT
Type for the assignment of the right-hand side dense vector operand.
Definition: SVecTDVecMultExpr.h:206
Header file for the Computation base class.
Type relationship analysis.This class tests if the two data types A and B are equal. For this type comparison, the cv-qualifiers of both data types are ignored. If A and B are the same data type (ignoring the cv-qualifiers), then the value member constant is set to true, the nested type definition Type is TrueType, and the class derives from TrueType. Otherwise value is set to false, Type is FalseType, and the class derives from FalseType.
Definition: IsSame.h:138
ElementType_< ResultType > ElementType
Resulting element type.
Definition: SVecTDVecMultExpr.h:188
System settings for performance optimizations.
ValueIndexPair< ElementType > Element
Element type of the sparse matrix expression.
Definition: SVecTDVecMultExpr.h:217
typename T::ResultType ResultType_
Alias declaration for nested ResultType type definitions.The ResultType_ alias declaration provides a...
Definition: Aliases.h:323
SVecTDVecMultExpr< VT1, VT2 > This
Type of this SVecTDVecMultExpr instance.
Definition: SVecTDVecMultExpr.h:184
RightElement v_
Element of the right-hand side dense vector expression.
Definition: SVecTDVecMultExpr.h:335
Base class for dense matrices.The DenseMatrix class is a base class for all dense matrix classes...
Definition: DenseMatrix.h:70
ValueType value_type
Type of the underlying pointers.
Definition: SVecTDVecMultExpr.h:233
bool isDefault(const DiagonalProxy< MT > &proxy)
Returns whether the represented element is in default state.
Definition: DiagonalProxy.h:573
Constraint on the data type.
typename IfTrue< Condition, T1, T2 >::Type IfTrue_
Auxiliary alias declaration for the IfTrue class template.The IfTrue_ alias declaration provides a co...
Definition: If.h:109
typename T::ReturnType ReturnType_
Alias declaration for nested ReturnType type definitions.The ReturnType_ alias declaration provides a...
Definition: Aliases.h:343
Header file for the SparseMatrix base class.
Constraint on the transpose flag of vector types.
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:344
Header file for the MultExprTrait class template.
typename T::CompositeType CompositeType_
Alias declaration for nested CompositeType type definitions.The CompositeType_ alias declaration prov...
Definition: Aliases.h:83
const ConstIterator * operator->() const
Direct access to the sparse matrix element at the current iterator position.
Definition: SVecTDVecMultExpr.h:274
IteratorType it_
Iterator over the elements of the left-hand side sparse vector expression.
Definition: SVecTDVecMultExpr.h:334
Header file for the ValueIndexPair class.
bool isAliased(const T *alias) const noexcept
Returns whether the expression is aliased with the given address alias.
Definition: SVecTDVecMultExpr.h:538
ReferenceType reference
Reference return type.
Definition: SVecTDVecMultExpr.h:235
Header file for the IsTemporary type trait class.
Header file for the multiplication trait.
CompositeType_< VT1 > CT1
Composite type of the left-hand side sparse vector expression.
Definition: SVecTDVecMultExpr.h:115
RightOperand rightOperand() const noexcept
Returns the right-hand side dense vector operand.
Definition: SVecTDVecMultExpr.h:514
Namespace of the Blaze C++ math library.
Definition: Blaze.h:57
Header file for the If class template.
LeftOperand leftOperand() const noexcept
Returns the left-hand side sparse vector operand.
Definition: SVecTDVecMultExpr.h:504
ResultType_< VT1 > RT1
Result type of the left-hand side sparse vector expression.
Definition: SVecTDVecMultExpr.h:111
bool operator!=(const ConstIterator &rhs) const
Inequality comparison between two ConstIterator objects.
Definition: SVecTDVecMultExpr.h:316
const Element * ConstIterator
Iterator over constant elements.
Definition: CompressedMatrix.h:2647
#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:105
bool operator==(const ConstIterator &rhs) const
Equality comparison between two ConstIterator objects.
Definition: SVecTDVecMultExpr.h:305
#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 Columns type trait.
If_< IsComputation< VT1 >, const RT1, CT1 > LT
Type for the assignment of the left-hand side dense vector operand.
Definition: SVecTDVecMultExpr.h:203
ConstIterator find(size_t i, size_t j) const
Searches for a specific matrix element.
Definition: SVecTDVecMultExpr.h:467
typename T::ElementType ElementType_
Alias declaration for nested ElementType type definitions.The ElementType_ alias declaration provides...
Definition: Aliases.h:163
DifferenceType operator-(const ConstIterator &rhs) const
Calculating the number of elements between two expression iterators.
Definition: SVecTDVecMultExpr.h:327
Header file for all SIMD functionality.
OppositeType_< ResultType > OppositeType
Result type with opposite storage order for expression template evaluations.
Definition: SVecTDVecMultExpr.h:186
Base class for N-dimensional dense vectors.The DenseVector class is a base class for all arbitrarily ...
Definition: DenseVector.h:70
#define BLAZE_CONSTRAINT_MUST_BE_SPARSE_VECTOR_TYPE(T)
Constraint on the data type.In case the given data type T is not a sparse, N-dimensional vector type...
Definition: SparseVector.h:61
ReturnType value() const
Access to the current value of the sparse element.
Definition: SVecTDVecMultExpr.h:284
Constraint on the data type.
LeftOperand lhs_
Left-hand side sparse vector of the multiplication expression.
Definition: SVecTDVecMultExpr.h:545
Header file for the exception macros of the math module.
Constraint on the data type.
Header file for the RowExprTrait class template.
bool canAlias(const T *alias) const noexcept
Returns whether the expression can alias with the given address alias.
Definition: SVecTDVecMultExpr.h:526
Header file for all forward declarations for expression class templates.
Constraint on the data type.
Header file for the VecTVecMultExpr base class.
RightOperand rhs_
Right-hand side dense vector of the multiplication expression.
Definition: SVecTDVecMultExpr.h:546
Header file for the EnableIf class template.
TransposeType_< ResultType > TransposeType
Transpose type for expression template evaluations.
Definition: SVecTDVecMultExpr.h:187
ReturnType_< VT1 > RN1
Return type of the left-hand side sparse vector expression.
Definition: SVecTDVecMultExpr.h:113
Element ValueType
Type of the underlying pointers.
Definition: SVecTDVecMultExpr.h:226
Header file for the IsNumeric type trait.
BLAZE_ALWAYS_INLINE const EnableIf_< And< IsIntegral< T >, HasSize< T, 1UL > >, If_< IsSigned< T >, SIMDint8, SIMDuint8 > > set(T value) noexcept
Sets all values in the vector to the given 1-byte integral value.
Definition: Set.h:76
ConstIterator lowerBound(size_t i, size_t j) const
Returns an iterator to the first index not less then the given index.
Definition: SVecTDVecMultExpr.h:480
#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
Header file for the SubmatrixExprTrait class template.
Header file for the HasSIMDMult type trait.
If_< IsExpression< VT2 >, const VT2, const VT2 & > RightOperand
Composite type of the right-hand side dense vector expression.
Definition: SVecTDVecMultExpr.h:200
Header file for run time assertion macros.
IfTrue_< useAssign, const ResultType, const SVecTDVecMultExpr & > CompositeType
Data type for composite expression templates.
Definition: SVecTDVecMultExpr.h:194
ConstIterator & operator++()
Pre-increment operator.
Definition: SVecTDVecMultExpr.h:253
SVecTDVecMultExpr(const VT1 &lhs, const VT2 &rhs) noexcept
Constructor for the SVecTDVecMultExpr class.
Definition: SVecTDVecMultExpr.h:356
ElementType_< VT2 > ET2
Element type of the right-hand side dense vector expression.
Definition: SVecTDVecMultExpr.h:118
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
ResultType_< VT2 > RT2
Result type of the right-hand side dense vector expression.
Definition: SVecTDVecMultExpr.h:112
SIMD characteristics of data types.The SIMDTrait class template provides the SIMD characteristics of ...
Definition: SIMDTrait.h:296
const Element operator*() const
Direct access to the sparse matrix element at the current iterator position.
Definition: SVecTDVecMultExpr.h:264
Header file for the isDefault shim.
ReturnType_< VT2 > RN2
Return type of the right-hand side dense vector expression.
Definition: SVecTDVecMultExpr.h:114
Constraint on the data type.
ET2 RightElement
Element type of the dense vector expression.
Definition: SVecTDVecMultExpr.h:223
#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
ConstIterator upperBound(size_t i, size_t j) const
Returns an iterator to the first index greater then the given index.
Definition: SVecTDVecMultExpr.h:493
Constraint on the data type.
ConstIterator(IteratorType it, RightElement v)
Constructor for the ConstIterator class.
Definition: SVecTDVecMultExpr.h:242
Header file for the RemoveReference 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
typename T::OppositeType OppositeType_
Alias declaration for nested OppositeType type definitions.The OppositeType_ alias declaration provid...
Definition: Aliases.h:243
ValueType & ReferenceType
Reference return type.
Definition: SVecTDVecMultExpr.h:228
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 operator()(size_t i, size_t j) const
2D-access to the matrix elements.
Definition: SVecTDVecMultExpr.h:369
Index-value-pair for sparse vectors and matrices.The ValueIndexPair class represents a single index-v...
Definition: ValueIndexPair.h:70
IteratorCategory iterator_category
The iterator category.
Definition: SVecTDVecMultExpr.h:232
Header file for the IsComputation type trait class.
Base class for sparse vectors.The SparseVector class is a base class for all arbitrarily sized (N-dim...
Definition: Forward.h:110
#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
const IfTrue_< returnExpr, ExprReturnType, ElementType > ReturnType
Return type for expression template evaluations.
Definition: SVecTDVecMultExpr.h:191
#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
Header file for the SubvectorExprTrait class template.
ConstIterator_< RemoveReference_< LeftOperand > > IteratorType
Iterator type of the sparse vector expression.
Definition: SVecTDVecMultExpr.h:220
typename T::TransposeType TransposeType_
Alias declaration for nested TransposeType type definitions.The TransposeType_ alias declaration prov...
Definition: Aliases.h:403
void UNUSED_PARAMETER(const Args &...)
Suppression of unused parameter warnings.
Definition: Unused.h:81
size_t index() const
Access to the current index of the sparse element.
Definition: SVecTDVecMultExpr.h:294
Header file for the Size type trait.
#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
If_< IsExpression< VT1 >, const VT1, const VT1 & > LeftOperand
Composite type of the left-hand side sparse vector expression.
Definition: SVecTDVecMultExpr.h:197
ptrdiff_t DifferenceType
Difference between two iterators.
Definition: SVecTDVecMultExpr.h:229
PointerType pointer
Pointer return type.
Definition: SVecTDVecMultExpr.h:234
Constraint on the transpose flag of vector types.
Header file for the IsExpression type trait class.
Header file for the FunctionTrace class.
ReturnType at(size_t i, size_t j) const
Checked access to the matrix elements.
Definition: SVecTDVecMultExpr.h:385