35 #ifndef _BLAZE_MATH_EXPRESSIONS_DVECTSVECMULTEXPR_H_
36 #define _BLAZE_MATH_EXPRESSIONS_DVECTSVECMULTEXPR_H_
103 template<
typename VT1
147 template<
typename MT >
150 enum :
bool { value = useAssign };
160 template<
typename T1,
typename T2,
typename T3 >
161 struct UseVectorizedKernel {
163 T1::simdEnabled && T2::simdEnabled &&
176 template<
typename T1,
typename T2,
typename T3 >
177 struct UseDefaultKernel {
178 enum :
bool { value = !UseVectorizedKernel<T1,T2,T3>::value };
286 return v_ *
it_->value();
343 enum :
bool { smpAssignable =
false };
386 inline ReturnType
at(
size_t i,
size_t j )
const {
387 if( i >=
lhs_.size() ) {
390 if( j >=
rhs_.size() ) {
424 inline size_t rows() const noexcept {
445 return lhs_.size() *
rhs_.nonZeros();
457 return rhs_.nonZeros();
526 template<
typename T >
527 inline bool canAlias(
const T* alias )
const noexcept {
528 return (
lhs_.canAlias( alias ) ||
rhs_.canAlias( alias ) );
538 template<
typename T >
539 inline bool isAliased(
const T* alias )
const noexcept {
540 return (
lhs_.isAliased( alias ) ||
rhs_.isAliased( alias ) );
565 template<
typename MT >
584 const ConstIterator
begin( y.begin() );
585 const ConstIterator
end ( y.end() );
587 for(
size_t i=0UL; i<(~lhs).
rows(); ++i ) {
588 for( ConstIterator element=
begin; element!=
end; ++element ) {
589 (~lhs)(i,element->index()) = x[i] * element->
value();
609 template<
typename MT >
627 DVecTSVecMultExpr::selectAssignKernel( ~lhs, x, y );
646 template<
typename MT
649 static inline EnableIf_< UseDefaultKernel<MT,VT3,VT4> >
650 selectAssignKernel( DenseMatrix<MT,true>& A,
const VT3& x,
const VT4& y )
652 typedef ConstIterator_< RemoveReference_<RT> >
ConstIterator;
654 const ConstIterator
begin( y.begin() );
655 const ConstIterator
end ( y.end() );
657 for( ConstIterator element=
begin; element!=
end; ++element ) {
658 for(
size_t i=0UL; i<(~A).
rows(); ++i ) {
659 (~A)(i,element->index()) = x[i] * element->
value();
680 template<
typename MT
683 static inline EnableIf_< UseVectorizedKernel<MT,VT3,VT4> >
684 selectAssignKernel( DenseMatrix<MT,true>& A,
const VT3& x,
const VT4& y )
686 typedef ConstIterator_< RemoveReference_<RT> >
ConstIterator;
688 const size_t M( (~A).
rows() );
690 const bool remainder( !IsPadded<MT>::value || !IsPadded<VT3>::value );
692 const size_t ipos( remainder ? ( M &
size_t(-SIMDSIZE) ) : M );
695 const ConstIterator
begin( y.begin() );
696 const ConstIterator
end ( y.end() );
698 for( ConstIterator element=
begin; element!=
end; ++element )
700 const SIMDTrait_<ElementType> y1(
set( element->value() ) );
704 for( ; i<ipos; i+=SIMDSIZE ) {
705 (~A).store( i, element->index(), x.load(i) * y1 );
707 for( ; remainder && i<M; ++i ) {
708 (~A)(i,element->index()) = x[i] * element->value();
730 template<
typename MT >
731 friend inline EnableIf_< UseAssign<MT> >
740 typedef ConstIterator_< RemoveReference_<RT> >
ConstIterator;
742 LT x(
serial( rhs.lhs_ ) );
743 RT y(
serial( rhs.rhs_ ) );
750 const ConstIterator
begin( y.begin() );
751 const ConstIterator
end ( y.end() );
756 for(
size_t i=0UL; i<x.size(); ++i ) {
758 for( ConstIterator element=
begin; element!=
end; ++element ) {
759 (~lhs).append( i, element->index(), x[i] * element->value() );
762 (~lhs).finalize( i );
781 template<
typename MT >
782 friend inline void assign( SparseMatrix<MT,true>& lhs,
const DVecTSVecMultExpr& rhs )
791 typedef ConstIterator_< RemoveReference_<RT> >
ConstIterator;
793 LT x(
serial( rhs.lhs_ ) );
794 RT y(
serial( rhs.rhs_ ) );
801 const ConstIterator
begin( y.begin() );
802 const ConstIterator
end ( y.end() );
807 (~lhs).reserve(
begin->
index(), rhs.nonZeros() );
811 for( ConstIterator element=
begin; element!=
end; ++element ) {
813 for( ; index < element->index(); ++index ) {
814 (~lhs).finalize( index );
816 for(
size_t i=0UL; i<(~lhs).
rows(); ++i ) {
817 (~lhs).append( i, element->index(), x[i] * element->value() );
819 (~lhs).finalize( index++ );
823 for( ; index < y.size(); ++index ) {
824 (~lhs).finalize( index );
846 template<
typename MT >
847 friend inline EnableIf_< UseAssign<MT> >
855 typedef ConstIterator_< RemoveReference_<RT> >
ConstIterator;
857 LT x(
serial( rhs.lhs_ ) );
858 RT y(
serial( rhs.rhs_ ) );
865 const ConstIterator
begin( y.begin() );
866 const ConstIterator
end ( y.end() );
868 for(
size_t i=0UL; i<(~lhs).
rows(); ++i ) {
869 for( ConstIterator element=
begin; element!=
end; ++element ) {
870 (~lhs)(i,element->index()) += x[i] * element->
value();
890 template<
typename MT >
891 friend inline void addAssign( DenseMatrix<MT,true>& lhs,
const DVecTSVecMultExpr& rhs )
900 LT x(
serial( rhs.lhs_ ) );
901 RT y(
serial( rhs.rhs_ ) );
908 DVecTSVecMultExpr::selectAddAssignKernel( ~lhs, x, y );
927 template<
typename MT
930 static inline EnableIf_< UseDefaultKernel<MT,VT3,VT4> >
931 selectAddAssignKernel( DenseMatrix<MT,true>& A,
const VT3& x,
const VT4& y )
933 typedef ConstIterator_< RemoveReference_<RT> >
ConstIterator;
935 const ConstIterator
begin( y.begin() );
936 const ConstIterator
end ( y.end() );
938 for( ConstIterator element=
begin; element!=
end; ++element ) {
939 for(
size_t i=0UL; i<(~A).
rows(); ++i ) {
940 (~A)(i,element->index()) += x[i] * element->
value();
961 template<
typename MT
964 static inline EnableIf_< UseVectorizedKernel<MT,VT3,VT4> >
965 selectAddAssignKernel( DenseMatrix<MT,true>& A,
const VT3& x,
const VT4& y )
967 typedef ConstIterator_< RemoveReference_<RT> >
ConstIterator;
969 const size_t M( (~A).
rows() );
971 const bool remainder( !IsPadded<MT>::value || !IsPadded<VT3>::value );
973 const size_t ipos( remainder ? ( M &
size_t(-SIMDSIZE) ) : M );
976 const ConstIterator
begin( y.begin() );
977 const ConstIterator
end ( y.end() );
979 for( ConstIterator element=
begin; element!=
end; ++element )
981 const SIMDTrait_<ElementType> y1(
set( element->value() ) );
985 for( ; i<ipos; i+=SIMDSIZE ) {
986 (~A).store( i, element->index(), (~A).load(i,element->index()) + x.load(i) * y1 );
988 for( ; remainder && i<M; ++i ) {
989 (~A)(i,element->index()) += x[i] * element->value();
1016 template<
typename MT >
1017 friend inline EnableIf_< UseAssign<MT> >
1025 typedef ConstIterator_< RemoveReference_<RT> >
ConstIterator;
1027 LT x(
serial( rhs.lhs_ ) );
1028 RT y(
serial( rhs.rhs_ ) );
1035 const ConstIterator
begin( y.begin() );
1036 const ConstIterator
end ( y.end() );
1038 for(
size_t i=0UL; i<(~lhs).
rows(); ++i ) {
1039 for( ConstIterator element=
begin; element!=
end; ++element ) {
1040 (~lhs)(i,element->index()) -= x[i] * element->
value();
1060 template<
typename MT >
1061 friend inline void subAssign( DenseMatrix<MT,true>& lhs,
const DVecTSVecMultExpr& rhs )
1070 LT x(
serial( rhs.lhs_ ) );
1071 RT y(
serial( rhs.rhs_ ) );
1078 DVecTSVecMultExpr::selectSubAssignKernel( ~lhs, x, y );
1097 template<
typename MT
1100 static inline EnableIf_< UseDefaultKernel<MT,VT3,VT4> >
1101 selectSubAssignKernel( DenseMatrix<MT,true>& A,
const VT3& x,
const VT4& y )
1103 typedef ConstIterator_< RemoveReference_<RT> >
ConstIterator;
1105 const ConstIterator
begin( y.begin() );
1106 const ConstIterator
end ( y.end() );
1108 for( ConstIterator element=
begin; element!=
end; ++element ) {
1109 for(
size_t i=0UL; i<(~A).
rows(); ++i ) {
1110 (~A)(i,element->index()) -= x[i] * element->
value();
1131 template<
typename MT
1134 static inline EnableIf_< UseVectorizedKernel<MT,VT3,VT4> >
1135 selectSubAssignKernel( DenseMatrix<MT,true>& A,
const VT3& x,
const VT4& y )
1137 typedef ConstIterator_< RemoveReference_<RT> >
ConstIterator;
1139 const size_t M( (~A).
rows() );
1141 const bool remainder( !IsPadded<MT>::value || !IsPadded<VT3>::value );
1143 const size_t ipos( remainder ? ( M &
size_t(-SIMDSIZE) ) : M );
1146 const ConstIterator
begin( y.begin() );
1147 const ConstIterator
end ( y.end() );
1149 for( ConstIterator element=
begin; element!=
end; ++element )
1151 const SIMDTrait_<ElementType> y1(
set( element->value() ) );
1155 for( ; i<ipos; i+=SIMDSIZE ) {
1156 (~A).store( i, element->index(), (~A).load(i,element->index()) - x.load(i) * y1 );
1158 for( ; remainder && i<M; ++i ) {
1159 (~A)(i,element->index()) -= x[i] * element->value();
1228 template<
typename T1
1230 inline const DVecTSVecMultExpr<T1,T2>
1250 template<
typename VT1,
typename VT2 >
1267 template<
typename VT1,
typename VT2 >
1284 template<
typename VT1,
typename VT2,
bool AF >
1289 using Type = MultExprTrait_< SubvectorExprTrait_<const VT1,AF>
1290 , SubvectorExprTrait_<const VT2,AF> >;
1299 template<
typename VT1,
typename VT2 >
1304 using Type = MultExprTrait_< ReturnType_<VT1>, VT2 >;
1313 template<
typename VT1,
typename VT2 >
1318 using Type = MultExprTrait_< VT1, ReturnType_<VT2> >;
ValueType * PointerType
Pointer return type.
Definition: DVecTSVecMultExpr.h:228
Pointer difference type of the Blaze library.
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
constexpr bool useOptimizedKernels
Configuration switch for optimized kernels.This configuration switch enables/disables all optimized c...
Definition: Optimizations.h:84
PointerType pointer
Pointer return type.
Definition: DVecTSVecMultExpr.h:235
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.
ValueType & ReferenceType
Reference return type.
Definition: DVecTSVecMultExpr.h:229
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
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.
ptrdiff_t DifferenceType
Difference between two iterators.
Definition: DVecTSVecMultExpr.h:230
#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
Header file for the serial shim.
ConstIterator lowerBound(size_t i, size_t j) const
Returns an iterator to the first index not less then the given index.
Definition: DVecTSVecMultExpr.h:481
LeftOperand leftOperand() const noexcept
Returns the left-hand side dense vector operand.
Definition: DVecTSVecMultExpr.h:505
Header file for the ColumnExprTrait class template.
Header file for the IsSame and IsStrictlySame type traits.
bool operator!=(const ConstIterator &rhs) const
Inequality comparison between two ConstIterator objects.
Definition: DVecTSVecMultExpr.h:317
Availability of a SIMD multiplication for the given data types.Depending on the available instruction...
Definition: HasSIMDMult.h:162
const ConstIterator * operator->() const
Direct access to the sparse matrix element at the current iterator position.
Definition: DVecTSVecMultExpr.h:275
ElementType_< VT1 > ET1
Element type of the left-hand side dense vector expression.
Definition: DVecTSVecMultExpr.h:117
CompositeType_< VT2 > CT2
Composite type of the right-hand side sparse vector expression.
Definition: DVecTSVecMultExpr.h:116
IteratorType it_
Iterator over the elements of the right-hand side sparse vector expression.
Definition: DVecTSVecMultExpr.h:336
MultTrait_< RT1, RT2 > ResultType
Result type for expression template evaluations.
Definition: DVecTSVecMultExpr.h:186
size_t index() const
Access to the current index of the sparse element.
Definition: DVecTSVecMultExpr.h:295
std::forward_iterator_tag IteratorCategory
The iterator category.
Definition: DVecTSVecMultExpr.h:226
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
Header file for the Computation base class.
If_< IsExpression< VT1 >, const VT1, const VT1 & > LeftOperand
Composite type of the left-hand side dense vector expression.
Definition: DVecTSVecMultExpr.h:198
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
ReturnType operator()(size_t i, size_t j) const
2D-access to the matrix elements.
Definition: DVecTSVecMultExpr.h:370
System settings for performance optimizations.
MultExprTrait_< RN1, RN2 > ExprReturnType
Expression return type for the subscript operator.
Definition: DVecTSVecMultExpr.h:131
ElementType_< ResultType > ElementType
Resulting element type.
Definition: DVecTSVecMultExpr.h:189
typename T::ResultType ResultType_
Alias declaration for nested ResultType type definitions.The ResultType_ alias declaration provides a...
Definition: Aliases.h:323
Element ValueType
Type of the underlying pointers.
Definition: DVecTSVecMultExpr.h:227
const Element operator*() const
Direct access to the sparse matrix element at the current iterator position.
Definition: DVecTSVecMultExpr.h:265
If_< IsComputation< VT1 >, const RT1, CT1 > LT
Type for the assignment of the left-hand side dense vector operand.
Definition: DVecTSVecMultExpr.h:204
Base class for dense matrices.The DenseMatrix class is a base class for all dense matrix classes...
Definition: DenseMatrix.h:70
Base class for sparse matrices.The SparseMatrix class is a base class for all sparse matrix classes...
Definition: Forward.h:109
bool isDefault(const DiagonalProxy< MT > &proxy)
Returns whether the represented element is in default state.
Definition: DiagonalProxy.h:573
Constraint on the data type.
bool canAlias(const T *alias) const noexcept
Returns whether the expression can alias with the given address alias.
Definition: DVecTSVecMultExpr.h:527
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
RightOperand rightOperand() const noexcept
Returns the right-hand side sparse vector operand.
Definition: DVecTSVecMultExpr.h:515
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.
ValueType value_type
Type of the underlying pointers.
Definition: DVecTSVecMultExpr.h:234
typename T::CompositeType CompositeType_
Alias declaration for nested CompositeType type definitions.The CompositeType_ alias declaration prov...
Definition: Aliases.h:83
ConstIterator begin(size_t i) const
Returns an iterator to the first non-zero element of row i.
Definition: DVecTSVecMultExpr.h:403
Header file for the ValueIndexPair class.
Header file for the IsTemporary type trait class.
Header file for the multiplication trait.
Namespace of the Blaze C++ math library.
Definition: Blaze.h:57
Header file for the If class template.
ResultType_< VT2 > RT2
Result type of the right-hand side sparse vector expression.
Definition: DVecTSVecMultExpr.h:112
ConstIterator & operator++()
Pre-increment operator.
Definition: DVecTSVecMultExpr.h:254
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
LeftOperand lhs_
Left-hand side dense vector of the multiplication expression.
Definition: DVecTSVecMultExpr.h:546
#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
size_t rows() const noexcept
Returns the current number of rows of the matrix.
Definition: DVecTSVecMultExpr.h:424
Header file for the Columns type trait.
Expression object for dense vector-sparse vector outer products.The DVecTSVecMultExpr class represent...
Definition: DVecTSVecMultExpr.h:105
ConstIterator(LeftElement v, IteratorType it)
Constructor for the ConstIterator class.
Definition: DVecTSVecMultExpr.h:243
If_< IsExpression< VT2 >, const VT2, const VT2 & > RightOperand
Composite type of the right-hand side sparse vector expression.
Definition: DVecTSVecMultExpr.h:201
bool operator==(const ConstIterator &rhs) const
Equality comparison between two ConstIterator objects.
Definition: DVecTSVecMultExpr.h:306
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.
Base class for N-dimensional dense vectors.The DenseVector class is a base class for all arbitrarily ...
Definition: DenseVector.h:70
IteratorCategory iterator_category
The iterator category.
Definition: DVecTSVecMultExpr.h:233
#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_< VT2 > RN2
Return type of the right-hand side sparse vector expression.
Definition: DVecTSVecMultExpr.h:114
const IfTrue_< returnExpr, ExprReturnType, ElementType > ReturnType
Return type for expression template evaluations.
Definition: DVecTSVecMultExpr.h:192
Constraint on the data type.
TransposeType_< ResultType > TransposeType
Transpose type for expression template evaluations.
Definition: DVecTSVecMultExpr.h:188
Header file for the exception macros of the math module.
DifferenceType difference_type
Difference between two iterators.
Definition: DVecTSVecMultExpr.h:237
bool isAliased(const T *alias) const noexcept
Returns whether the expression is aliased with the given address alias.
Definition: DVecTSVecMultExpr.h:539
Constraint on the data type.
Header file for the RowExprTrait class template.
Header file for all forward declarations for expression class templates.
Constraint on the data type.
Header file for the VecTVecMultExpr base class.
Header file for the EnableIf class template.
ConstIterator find(size_t i, size_t j) const
Searches for a specific matrix element.
Definition: DVecTSVecMultExpr.h:468
ConstIterator_< RemoveReference_< RightOperand > > IteratorType
Iterator type of the sparse vector expression.
Definition: DVecTSVecMultExpr.h:224
size_t columns() const noexcept
Returns the current number of columns of the matrix.
Definition: DVecTSVecMultExpr.h:434
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
DVecTSVecMultExpr(const VT1 &lhs, const VT2 &rhs) noexcept
Constructor for the DVecTSVecMultExpr class.
Definition: DVecTSVecMultExpr.h:357
ConstIterator end(size_t i) const
Returns an iterator just past the last non-zero element of row i.
Definition: DVecTSVecMultExpr.h:414
Iterator over the elements of the dense vector-sparse vector outer product expression.
Definition: DVecTSVecMultExpr.h:213
If_< IsComputation< VT2 >, const RT2, CT2 > RT
Type for the assignment of the right-hand side dense vector operand.
Definition: DVecTSVecMultExpr.h:207
IfTrue_< useAssign, const ResultType, const DVecTSVecMultExpr & > CompositeType
Data type for composite expression templates.
Definition: DVecTSVecMultExpr.h:195
#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.
Header file for run time assertion macros.
CompositeType_< VT1 > CT1
Composite type of the left-hand side dense vector expression.
Definition: DVecTSVecMultExpr.h:115
RightOperand rhs_
Right-hand side sparse vector of the multiplication expression.
Definition: DVecTSVecMultExpr.h:547
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
OppositeType_< ResultType > OppositeType
Result type with opposite storage order for expression template evaluations.
Definition: DVecTSVecMultExpr.h:187
ResultType_< VT1 > RT1
Result type of the left-hand side dense vector expression.
Definition: DVecTSVecMultExpr.h:111
DVecTSVecMultExpr< VT1, VT2 > This
Type of this DVecTSVecMultExpr instance.
Definition: DVecTSVecMultExpr.h:185
ValueIndexPair< ElementType > Element
Element type of the sparse matrix expression.
Definition: DVecTSVecMultExpr.h:218
size_t nonZeros(size_t i) const
Returns the number of non-zero elements in the specified row.
Definition: DVecTSVecMultExpr.h:455
SIMD characteristics of data types.The SIMDTrait class template provides the SIMD characteristics of ...
Definition: SIMDTrait.h:296
Header file for the isDefault shim.
ReferenceType reference
Reference return type.
Definition: DVecTSVecMultExpr.h:236
Constraint on the data type.
ReturnType value() const
Access to the current value of the sparse element.
Definition: DVecTSVecMultExpr.h:285
ReturnType at(size_t i, size_t j) const
Checked access to the matrix elements.
Definition: DVecTSVecMultExpr.h:386
#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 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
Base class for all outer product expression templates.The VecTVecMultExpr class serves as a tag for a...
Definition: VecTVecMultExpr.h:66
typename T::OppositeType OppositeType_
Alias declaration for nested OppositeType type definitions.The OppositeType_ alias declaration provid...
Definition: Aliases.h:243
ET1 LeftElement
Element type of the dense vector expression.
Definition: DVecTSVecMultExpr.h:221
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
Index-value-pair for sparse vectors and matrices.The ValueIndexPair class represents a single index-v...
Definition: ValueIndexPair.h:70
Header file for the IsComputation type trait class.
Base class for all compute expression templates.The Computation class serves as a tag for all computa...
Definition: Computation.h:59
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
LeftElement v_
Element of the left-hand side dense vector expression.
Definition: DVecTSVecMultExpr.h:335
DifferenceType operator-(const ConstIterator &rhs) const
Calculating the number of elements between two expression iterators.
Definition: DVecTSVecMultExpr.h:328
ReturnType_< VT1 > RN1
Return type of the left-hand side dense vector expression.
Definition: DVecTSVecMultExpr.h:113
#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.
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 nonZeros() const
Returns the number of non-zero elements in the sparse matrix.
Definition: DVecTSVecMultExpr.h:444
ElementType_< VT2 > ET2
Element type of the right-hand side sparse vector expression.
Definition: DVecTSVecMultExpr.h:118
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
ConstIterator upperBound(size_t i, size_t j) const
Returns an iterator to the first index greater then the given index.
Definition: DVecTSVecMultExpr.h:494
Constraint on the transpose flag of vector types.
Header file for the IsExpression type trait class.
Header file for the FunctionTrace class.