35 #ifndef _BLAZE_MATH_EXPRESSIONS_TSVECDMATMULTEXPR_H_
36 #define _BLAZE_MATH_EXPRESSIONS_TSVECDMATMULTEXPR_H_
94 class TSVecDMatMultExpr :
public DenseVector< TSVecDMatMultExpr<VT,MT>, true >
95 ,
private TVecMatMultExpr
125 template<
typename T1 >
126 struct UseSMPAssign {
127 enum { value = ( evaluateVector || evaluateMatrix ) };
138 template<
typename T1,
typename T2,
typename T3 >
139 struct UseVectorizedKernel {
140 enum { value = T1::vectorizable && T3::vectorizable &&
141 IsSame<typename T1::ElementType,typename T2::ElementType>::value &&
142 IsSame<typename T1::ElementType,typename T3::ElementType>::value &&
143 IntrinsicTrait<typename T1::ElementType>::addition &&
144 IntrinsicTrait<typename T1::ElementType>::multiplication };
155 template<
typename T1,
typename T2,
typename T3 >
156 struct UseOptimizedKernel {
157 enum { value = !UseVectorizedKernel<T1,T2,T3>::value &&
158 !IsResizable<typename T1::ElementType>::value &&
159 !IsResizable<VET>::value };
169 template<
typename T1,
typename T2,
typename T3 >
170 struct UseDefaultKernel {
171 enum { value = !UseVectorizedKernel<T1,T2,T3>::value &&
172 !UseOptimizedKernel<T1,T2,T3>::value };
202 enum { vectorizable = MT::vectorizable &&
208 enum { smpAssignable = !evaluateVector && VT::smpAssignable &&
209 !evaluateMatrix && MT::smpAssignable };
241 const ConstIterator end( x.end() );
242 ConstIterator element( x.begin() );
245 if( element != end ) {
246 res = element->value() *
mat_( element->index(), index );
248 for( ; element!=end; ++element )
249 res += element->value() *
mat_( element->index(), index );
265 return mat_.columns();
295 template<
typename T >
297 return vec_.isAliased( alias ) ||
mat_.isAliased( alias );
307 template<
typename T >
309 return vec_.isAliased( alias ) ||
mat_.isAliased( alias );
319 return mat_.isAligned();
352 template<
typename VT2 >
361 if( x.nonZeros() == 0UL ) {
376 TSVecDMatMultExpr::selectAssignKernel( ~lhs, x, A );
395 template<
typename VT1
399 selectAssignKernel( VT1& y,
const VT2& x,
const MT1& A )
405 const size_t N( A.columns() );
407 ConstIterator element( x.begin() );
408 const ConstIterator end( x.end() );
410 for(
size_t j=0UL; j<N; ++j ) {
411 y[j] = element->value() * A(element->index(),j);
416 for( ; element!=end; ++element ) {
417 for(
size_t j=0UL; j<N; ++j ) {
418 y[j] += element->value() * A(element->index(),j);
439 template<
typename VT1
442 static inline typename EnableIf< UseOptimizedKernel<VT1,VT2,MT1> >::Type
443 selectAssignKernel( VT1& y,
const VT2& x,
const MT1& A )
449 const size_t N( A.columns() );
451 ConstIterator element( x.begin() );
452 const ConstIterator end( x.end() );
454 const size_t iend( x.nonZeros() & size_t(-4) );
455 BLAZE_INTERNAL_ASSERT( ( x.nonZeros() - ( x.nonZeros() % 4UL ) ) == iend,
"Invalid end calculation" );
459 const size_t i1( element->index() );
460 const VET v1( element->value() );
462 const size_t i2( element->index() );
463 const VET v2( element->value() );
465 const size_t i3( element->index() );
466 const VET v3( element->value() );
468 const size_t i4( element->index() );
469 const VET v4( element->value() );
472 for(
size_t j=0UL; j<N; ++j ) {
473 y[j] = v1 * A(i1,j) + v2 * A(i2,j) + v3 * A(i3,j) + v4 * A(i4,j);
478 const size_t i1( element->index() );
479 const VET v1( element->value() );
482 for(
size_t j=0UL; j<N; ++j ) {
487 for(
size_t i=(iend>3UL)?(4UL):(1UL); (i+4UL)<=iend; i+=4UL )
489 const size_t i1( element->index() );
490 const VET v1( element->value() );
492 const size_t i2( element->index() );
493 const VET v2( element->value() );
495 const size_t i3( element->index() );
496 const VET v3( element->value() );
498 const size_t i4( element->index() );
499 const VET v4( element->value() );
502 for(
size_t j=0UL; j<N; ++j ) {
503 y[j] += v1 * A(i1,j) + v2 * A(i2,j) + v3 * A(i3,j) + v4 * A(i4,j);
506 for( ; element!=end; ++element )
508 const size_t i1( element->index() );
509 const VET v1( element->value() );
511 for(
size_t j=0UL; j<N; ++j ) {
512 y[j] += v1 * A(i1,j);
533 template<
typename VT1
536 static inline typename EnableIf< UseVectorizedKernel<VT1,VT2,MT1> >::Type
537 selectAssignKernel( VT1& y,
const VT2& x,
const MT1& A )
539 typedef IntrinsicTrait<ElementType> IT;
544 const size_t N( A.columns() );
546 ConstIterator element( x.begin() );
547 const ConstIterator end( x.end() );
549 const size_t iend( x.nonZeros() & size_t(-4) );
550 BLAZE_INTERNAL_ASSERT( ( x.nonZeros() - ( x.nonZeros() % 4UL ) ) == iend,
"Invalid end calculation" );
554 const size_t i1( element->index() );
557 const size_t i2( element->index() );
560 const size_t i3( element->index() );
563 const size_t i4( element->index() );
567 for(
size_t j=0UL; j<N; j+=IT::size ) {
568 y.store( j, v1 * A.load(i1,j) + v2 * A.load(i2,j) + v3 * A.load(i3,j) + v4 * A.load(i4,j) );
573 const size_t i1( element->index() );
577 for(
size_t j=0UL; j<N; j+=IT::size ) {
578 y.store( j, v1 * A.load(i1,j) );
582 for(
size_t i=(iend>3UL)?(4UL):(1UL); (i+4UL)<=iend; i+=4UL )
584 const size_t i1( element->index() );
587 const size_t i2( element->index() );
590 const size_t i3( element->index() );
593 const size_t i4( element->index() );
597 for(
size_t j=0UL; j<N; j+=IT::size ) {
598 y.store( j, y.load(j) + v1 * A.load(i1,j) + v2 * A.load(i2,j) + v3 * A.load(i3,j) + v4 * A.load(i4,j) );
601 for( ; element!=end; ++element )
603 const size_t i1( element->index() );
606 for(
size_t j=0UL; j<N; j+=IT::size ) {
607 y.store( j, y.load(j) + v1 * A.load(i1,j) );
627 template<
typename VT2 >
656 template<
typename VT2 >
665 if( x.nonZeros() == 0UL )
return;
677 TSVecDMatMultExpr::selectAddAssignKernel( ~lhs, x, A );
695 template<
typename VT1
699 selectAddAssignKernel( VT1& y,
const VT2& x,
const MT1& A )
705 const size_t N( A.columns() );
707 ConstIterator element( x.begin() );
708 const ConstIterator end( x.end() );
710 for( ; element!=end; ++element ) {
711 for(
size_t j=0UL; j<N; ++j ) {
712 y[j] += element->value() * A(element->index(),j);
733 template<
typename VT1
736 static inline typename EnableIf< UseOptimizedKernel<VT1,VT2,MT1> >::Type
737 selectAddAssignKernel( VT1& y,
const VT2& x,
const MT1& A )
743 const size_t N( A.columns() );
745 ConstIterator element( x.begin() );
746 const ConstIterator end( x.end() );
748 const size_t iend( x.nonZeros() & size_t(-4) );
749 BLAZE_INTERNAL_ASSERT( ( x.nonZeros() - ( x.nonZeros() % 4UL ) ) == iend,
"Invalid end calculation" );
751 for(
size_t i=0UL; (i+4UL)<=iend; i+=4UL )
753 const size_t i1( element->index() );
754 const VET v1( element->value() );
756 const size_t i2( element->index() );
757 const VET v2( element->value() );
759 const size_t i3( element->index() );
760 const VET v3( element->value() );
762 const size_t i4( element->index() );
763 const VET v4( element->value() );
766 for(
size_t j=0UL; j<N; ++j ) {
767 y[j] += v1 * A(i1,j) + v2 * A(i2,j) + v3 * A(i3,j) + v4 * A(i4,j);
770 for( ; element!=end; ++element )
772 const size_t i1( element->index() );
773 const VET v1( element->value() );
775 for(
size_t j=0UL; j<N; ++j ) {
776 y[j] += v1 * A(i1,j);
797 template<
typename VT1
800 static inline typename EnableIf< UseVectorizedKernel<VT1,VT2,MT1> >::Type
801 selectAddAssignKernel( VT1& y,
const VT2& x,
const MT1& A )
803 typedef IntrinsicTrait<ElementType> IT;
808 const size_t N( A.columns() );
810 ConstIterator element( x.begin() );
811 const ConstIterator end( x.end() );
813 const size_t iend( x.nonZeros() & size_t(-4) );
814 BLAZE_INTERNAL_ASSERT( ( x.nonZeros() - ( x.nonZeros() % 4UL ) ) == iend,
"Invalid end calculation" );
816 for(
size_t i=0UL; (i+4UL)<=iend; i+=4UL )
818 const size_t i1( element->index() );
821 const size_t i2( element->index() );
824 const size_t i3( element->index() );
827 const size_t i4( element->index() );
831 for(
size_t j=0UL; j<N; j+=IT::size ) {
832 y.store( j, y.load(j) + v1 * A.load(i1,j) + v2 * A.load(i2,j) + v3 * A.load(i3,j) + v4 * A.load(i4,j) );
835 for( ; element!=end; ++element )
837 const size_t i1( element->index() );
840 for(
size_t j=0UL; j<N; j+=IT::size ) {
841 y.store( j, y.load(j) + v1 * A.load(i1,j) );
864 template<
typename VT2 >
875 if( x.nonZeros() == 0UL )
return;
887 TSVecDMatMultExpr::selectSubAssignKernel( ~lhs, x, A );
905 template<
typename VT1
909 selectSubAssignKernel( VT1& y,
const VT2& x,
const MT1& A )
915 const size_t N( A.columns() );
917 ConstIterator element( x.begin() );
918 const ConstIterator end( x.end() );
920 for( ; element!=end; ++element ) {
921 for(
size_t j=0UL; j<N; ++j ) {
922 y[j] -= element->value() * A(element->index(),j);
943 template<
typename VT1
946 static inline typename EnableIf< UseOptimizedKernel<VT1,VT2,MT1> >::Type
947 selectSubAssignKernel( VT1& y,
const VT2& x,
const MT1& A )
953 const size_t N( A.columns() );
955 ConstIterator element( x.begin() );
956 const ConstIterator end( x.end() );
958 const size_t iend( x.nonZeros() & size_t(-4) );
959 BLAZE_INTERNAL_ASSERT( ( x.nonZeros() - ( x.nonZeros() % 4UL ) ) == iend,
"Invalid end calculation" );
961 for(
size_t i=0UL; (i+4UL)<=iend; i+=4UL )
963 const size_t i1( element->index() );
964 const VET v1( element->value() );
966 const size_t i2( element->index() );
967 const VET v2( element->value() );
969 const size_t i3( element->index() );
970 const VET v3( element->value() );
972 const size_t i4( element->index() );
973 const VET v4( element->value() );
976 for(
size_t j=0UL; j<N; ++j ) {
977 y[j] -= v1 * A(i1,j) + v2 * A(i2,j) + v3 * A(i3,j) + v4 * A(i4,j);
980 for( ; element!=end; ++element )
982 const size_t i1( element->index() );
983 const VET v1( element->value() );
985 for(
size_t j=0UL; j<N; ++j ) {
986 y[j] -= v1 * A(i1,j);
1007 template<
typename VT1
1010 static inline typename EnableIf< UseVectorizedKernel<VT1,VT2,MT1> >::Type
1011 selectSubAssignKernel( VT1& y,
const VT2& x,
const MT1& A )
1013 typedef IntrinsicTrait<ElementType> IT;
1018 const size_t N( A.columns() );
1020 ConstIterator element( x.begin() );
1021 const ConstIterator end( x.end() );
1023 const size_t iend( x.nonZeros() & size_t(-4) );
1024 BLAZE_INTERNAL_ASSERT( ( x.nonZeros() - ( x.nonZeros() % 4UL ) ) == iend,
"Invalid end calculation" );
1026 for(
size_t i=0UL; (i+4UL)<=iend; i+=4UL )
1028 const size_t i1( element->index() );
1031 const size_t i2( element->index() );
1034 const size_t i3( element->index() );
1037 const size_t i4( element->index() );
1041 for(
size_t j=0UL; j<N; j+=IT::size ) {
1042 y.store( j, y.load(j) - v1 * A.load(i1,j) - v2 * A.load(i2,j) - v3 * A.load(i3,j) - v4 * A.load(i4,j) );
1045 for( ; element!=x.end(); ++element )
1047 const size_t i1( element->index() );
1050 for(
size_t j=0UL; j<N; j+=IT::size ) {
1051 y.store( j, y.load(j) - v1 * A.load(i1,j) );
1074 template<
typename VT2 >
1109 template<
typename VT2 >
1119 if( x.nonZeros() == 0UL ) {
1154 template<
typename VT2 >
1155 friend inline typename EnableIf< UseSMPAssign<VT2> >::Type
1186 template<
typename VT2 >
1187 friend inline typename EnableIf< UseSMPAssign<VT2> >::Type
1196 if( x.nonZeros() == 0UL )
return;
1230 template<
typename VT2 >
1242 if( x.nonZeros() == 0UL )
return;
1276 template<
typename VT2 >
1348 template<
typename T1,
typename T2 >
1349 inline const typename DisableIf< IsMatMatMultExpr<T2>, TSVecDMatMultExpr<T1,T2> >::Type
1354 if( (~vec).
size() != (~mat).
rows() )
1355 throw std::invalid_argument(
"Vector and matrix sizes do not match" );
1383 template<
typename T1
1386 inline const typename EnableIf< IsMatMatMultExpr<T2>, MultExprTrait<T1,T2> >::Type::Type
1406 template<
typename VT,
typename MT,
bool AF >
1411 typedef typename MultExprTrait< VT, typename SubmatrixExprTrait<const MT,AF>::Type >::Type Type;
Compile time check whether the given type is a computational expression template.This type trait clas...
Definition: IsComputation.h:89
void reset(DynamicMatrix< Type, SO > &m)
Resetting the given dense matrix.
Definition: DynamicMatrix.h:4599
friend void multAssign(DenseVector< VT2, true > &lhs, const TSVecDMatMultExpr &rhs)
Multiplication assignment of a transpose sparse vector-dense matrix multiplication to a dense vector ...
Definition: TSVecDMatMultExpr.h:1075
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:4329
TSVecDMatMultExpr< VT, MT > This
Type of this TSVecDMatMultExpr instance.
Definition: TSVecDMatMultExpr.h:179
ResultType::TransposeType TransposeType
Transpose type for expression template evaluations.
Definition: TSVecDMatMultExpr.h:181
Expression object for transpose sparse vector-dense matrix multiplications.The TSVecDMatMultExpr clas...
Definition: Forward.h:147
SelectType< evaluateMatrix, const MRT, MCT >::Type RT
Type for the assignment of the right-hand side dense matrix operand.
Definition: TSVecDMatMultExpr.h:197
SelectType< IsExpression< MT >::value, const MT, const MT & >::Type RightOperand
Composite type of the right-hand side sparse matrix expression.
Definition: TSVecDMatMultExpr.h:191
ReturnType operator[](size_t index) const
Subscript operator for the direct access to the vector elements.
Definition: TSVecDMatMultExpr.h:232
Efficient implementation of a compressed matrix.The CompressedMatrix class template is the represent...
Definition: CompressedMatrix.h:199
VT::ResultType VRT
Result type of the left-hand side sparse vector expression.
Definition: TSVecDMatMultExpr.h:100
#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:79
Header file for the IsSame and IsStrictlySame type traits.
const This & CompositeType
Data type for composite expression templates.
Definition: CompressedMatrix.h:2408
Type ElementType
Type of the sparse matrix elements.
Definition: CompressedMatrix.h:251
VT::CompositeType VCT
Composite type of the left-hand side sparse vector expression.
Definition: TSVecDMatMultExpr.h:104
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:690
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 enumeration is set to 1, the nested type definition Type is TrueType, and the class derives from TrueType. Otherwise value is set to 0, Type is FalseType, and the class derives from FalseType.
Definition: IsSame.h:158
Header file for the RequiresEvaluation type trait.
IntrinsicTrait< ElementType >::Type IntrinsicType
Resulting intrinsic element type.
Definition: TSVecDMatMultExpr.h:183
Base class for dense matrices.The DenseMatrix class is a base class for all dense matrix classes...
Definition: DenseMatrix.h:70
bool isAligned() const
Returns whether the operands of the expression are properly aligned in memory.
Definition: TSVecDMatMultExpr.h:318
const ElementType ReturnType
Return type for expression template evaluations.
Definition: TSVecDMatMultExpr.h:184
Constraint on the data type.
Constraint on the data type.
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:90
size_t size() const
Returns the current size/dimension of the vector.
Definition: TSVecDMatMultExpr.h:264
const This & CompositeType
Data type for composite expression templates.
Definition: CompressedMatrix.h:253
Compile time type selection.The SelectType class template selects one of the two given types T1 and T...
Definition: SelectType.h:59
Header file for the DisableIf class template.
friend void addAssign(DenseVector< VT2, true > &lhs, const TSVecDMatMultExpr &rhs)
Addition assignment of a transpose sparse vector-dense matrix multiplication to a dense vector ( )...
Definition: TSVecDMatMultExpr.h:657
Header file for the multiplication trait.
MT::CompositeType MCT
Composite type of the right-hand side dense matrix expression.
Definition: TSVecDMatMultExpr.h:105
LeftOperand leftOperand() const
Returns the left-hand side sparse vector operand.
Definition: TSVecDMatMultExpr.h:274
const Element * ConstIterator
Iterator over constant elements.
Definition: CompressedMatrix.h:2412
TSVecDMatMultExpr(const VT &vec, const MT &mat)
Constructor for the TSVecDMatMultExpr class.
Definition: TSVecDMatMultExpr.h:218
Header file for the IsMatMatMultExpr type trait class.
MT::ResultType MRT
Result type of the right-hand side dense matrix expression.
Definition: TSVecDMatMultExpr.h:101
bool isAliased(const T *alias) const
Returns whether the expression is aliased with the given address alias.
Definition: TSVecDMatMultExpr.h:308
void assign(Matrix< MT1, SO1 > &lhs, const Matrix< MT2, SO2 > &rhs)
Default implementation of the assignment of a matrix to a matrix.
Definition: Matrix.h:271
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:79
Constraint on the data type.
#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:78
SelectType< IsExpression< VT >::value, const VT, const VT & >::Type LeftOperand
Composite type of the left-hand side sparse vector expression.
Definition: TSVecDMatMultExpr.h:188
Constraints on the storage order of matrix types.
Constraint on the data type.
MRT::ElementType MET
Element type of the right-hand side dense matrix expression.
Definition: TSVecDMatMultExpr.h:103
Type ElementType
Type of the sparse matrix elements.
Definition: CompressedMatrix.h:2406
Header file for the SelectType class template.
Header file for all forward declarations for expression class templates.
MultTrait< VRT, MRT >::Type ResultType
Result type for expression template evaluations.
Definition: TSVecDMatMultExpr.h:180
Constraint on the data type.
Header file for the EnableIf class template.
Header file for the serial shim.
void smpAssign(DenseMatrix< MT1, SO1 > &lhs, const Matrix< MT2, SO2 > &rhs)
Default implementation of the SMP assignment of a matrix to a dense matrix.
Definition: DenseMatrix.h:92
friend EnableIf< UseSMPAssign< VT2 > >::Type smpMultAssign(DenseVector< VT2, true > &lhs, const TSVecDMatMultExpr &rhs)
SMP multiplication assignment of a transpose sparse vector-dense matrix multiplication to a dense vec...
Definition: TSVecDMatMultExpr.h:1278
Header file for the SubmatrixExprTrait class template.
#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: StorageOrder.h:81
Removal of reference modifiers.The RemoveCV type trait removes any reference modifiers from the given...
Definition: RemoveReference.h:69
Intrinsic characteristics of data types.The IntrinsicTrait class template provides the intrinsic char...
Definition: IntrinsicTrait.h:748
Header file for run time assertion macros.
Base template for the MultTrait class.
Definition: MultTrait.h:141
const ResultType CompositeType
Data type for composite expression templates.
Definition: TSVecDMatMultExpr.h:185
friend EnableIf< UseSMPAssign< VT2 > >::Type smpAddAssign(DenseVector< VT2, true > &lhs, const TSVecDMatMultExpr &rhs)
SMP addition assignment of a transpose sparse vector-dense matrix multiplication to a dense vector ( ...
Definition: TSVecDMatMultExpr.h:1188
Substitution Failure Is Not An Error (SFINAE) class.The EnableIf class template is an auxiliary tool ...
Definition: EnableIf.h:184
Header file for the reset shim.
bool canAlias(const T *alias) const
Returns whether the expression can alias with the given address alias.
Definition: TSVecDMatMultExpr.h:296
Compile time check for data types.This type trait tests whether or not the given template parameter i...
Definition: IsBlasCompatible.h:99
SelectType< evaluateVector, const VRT, VCT >::Type LT
Type for the assignment of the left-hand side sparse vector operand.
Definition: TSVecDMatMultExpr.h:194
Header file for the TVecMatMultExpr base class.
Header file for the RemoveReference type trait.
Header file for all intrinsic functionality.
#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:79
const size_t SMP_TSVECDMATMULT_THRESHOLD
SMP sparse vector/row-major dense matrix multiplication threshold.This threshold specifies when a spa...
Definition: Thresholds.h:460
bool canSMPAssign() const
Returns whether the expression can be used in SMP assignments.
Definition: TSVecDMatMultExpr.h:328
RightOperand mat_
Right-hand side dense matrix of the multiplication expression.
Definition: TSVecDMatMultExpr.h:336
LeftOperand vec_
Left-hand side sparse vector of the multiplication expression.
Definition: TSVecDMatMultExpr.h:335
Header file for the IsComputation type trait class.
friend EnableIf< UseSMPAssign< VT2 > >::Type smpSubAssign(DenseVector< VT2, true > &lhs, const TSVecDMatMultExpr &rhs)
SMP subtraction assignment of a transpose sparse vector-dense matrix multiplication to a dense vector...
Definition: TSVecDMatMultExpr.h:1232
Base class for sparse vectors.The SparseVector class is a base class for all arbitrarily sized (N-dim...
Definition: Forward.h:108
#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
This ResultType
Result type for expression template evaluations.
Definition: CompressedMatrix.h:2403
Header file for basic type definitions.
#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: TransposeFlag.h:81
Header file for the SubvectorExprTrait class template.
VRT::ElementType VET
Element type of the left-hand side sparse vector expression.
Definition: TSVecDMatMultExpr.h:102
friend void subAssign(DenseVector< VT2, true > &lhs, const TSVecDMatMultExpr &rhs)
Subtraction assignment of a transpose sparse vector-dense matrix multiplication to a dense vector ( )...
Definition: TSVecDMatMultExpr.h:865
Header file for the IsResizable type trait.
Header file for the thresholds for matrix/vector and matrix/matrix multiplications.
RightOperand rightOperand() const
Returns the right-hand side dense matrix operand.
Definition: TSVecDMatMultExpr.h:284
size_t rows(const Matrix< MT, SO > &m)
Returns the current number of rows of the matrix.
Definition: Matrix.h:154
#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
EnableIf< IsIntegral< T >, Set< T, sizeof(T)> >::Type::Type set(T value)
Sets all values in the vector to the given integral value.
Definition: Set.h:209
ResultType::ElementType ElementType
Resulting element type.
Definition: TSVecDMatMultExpr.h:182
Header file for the IsExpression type trait class.
Header file for the FunctionTrace class.