35 #ifndef _BLAZE_MATH_EXPRESSIONS_TSVECDMATMULTEXPR_H_ 36 #define _BLAZE_MATH_EXPRESSIONS_TSVECDMATMULTEXPR_H_ 105 template<
typename VT
107 class TSVecDMatMultExpr
108 :
public TVecMatMultExpr< DenseVector< TSVecDMatMultExpr<VT,MT>, true > >
109 ,
private Computation
137 template<
typename T1 >
138 struct UseSMPAssign {
139 enum :
bool { value = ( evaluateVector || evaluateMatrix ) };
150 template<
typename T1,
typename T2,
typename T3 >
151 struct UseVectorizedKernel {
152 enum :
bool { value = useOptimizedKernels &&
154 T1::simdEnabled && T3::simdEnabled &&
170 template<
typename T1,
typename T2,
typename T3 >
171 struct UseOptimizedKernel {
172 enum :
bool { value = useOptimizedKernels &&
173 !UseVectorizedKernel<T1,T2,T3>::value &&
186 template<
typename T1,
typename T2,
typename T3 >
187 struct UseDefaultKernel {
188 enum :
bool { value = !UseVectorizedKernel<T1,T2,T3>::value &&
189 !UseOptimizedKernel<T1,T2,T3>::value };
225 enum :
bool { smpAssignable = !evaluateVector && VT::smpAssignable &&
226 !evaluateMatrix && MT::smpAssignable };
259 return vec_[index] *
mat_(index,index);
287 if( index >=
mat_.columns() ) {
290 return (*
this)[index];
299 inline size_t size() const noexcept {
300 return mat_.columns();
330 template<
typename T >
331 inline bool canAlias(
const T* alias )
const noexcept {
332 return vec_.isAliased( alias ) ||
mat_.isAliased( alias );
342 template<
typename T >
343 inline bool isAliased(
const T* alias )
const noexcept {
344 return vec_.isAliased( alias ) ||
mat_.isAliased( alias );
354 return mat_.isAligned();
364 return (
size() > SMP_TSVECDMATMULT_THRESHOLD );
387 template<
typename VT2 >
396 if( x.nonZeros() == 0UL ) {
411 TSVecDMatMultExpr::selectAssignKernel( ~lhs, x, A );
430 template<
typename VT1
434 selectAssignKernel( VT1& y,
const VT2& x,
const MT1& A )
440 const size_t N( A.columns() );
449 for(
size_t j=0UL; j<jend; ++j )
453 for( ; element!=
end; ++element )
455 const size_t index( element->index() );
461 for(
size_t j=last; j<index; ++j )
464 y[index] = element->value() * A(index,index);
477 for(
size_t j=jbegin; j<last; ++j ) {
478 y[j] += element->value() * A(index,j);
480 for(
size_t j=last; j<jend; ++j ) {
481 y[j] = element->value() * A(index,j);
489 for(
size_t j=last; j<N; ++j )
510 template<
typename VT1
514 selectAssignKernel( VT1& y,
const VT2& x,
const MT1& A )
520 const size_t N( A.columns() );
525 const size_t ipos( x.nonZeros() &
size_t(-4) );
526 BLAZE_INTERNAL_ASSERT( ( x.nonZeros() - ( x.nonZeros() % 4UL ) ) == ipos,
"Invalid end calculation" );
530 const size_t i1( element->index() );
531 const VET v1( element->value() );
533 const size_t i2( element->index() );
534 const VET v2( element->value() );
536 const size_t i3( element->index() );
537 const VET v3( element->value() );
539 const size_t i4( element->index() );
540 const VET v4( element->value() );
545 for(
size_t j=0UL; j<N; ++j ) {
546 y[j] = v1 * A(i1,j) + v2 * A(i2,j) + v3 * A(i3,j) + v4 * A(i4,j);
551 const size_t i1( element->index() );
552 const VET v1( element->value() );
555 for(
size_t j=0UL; j<N; ++j ) {
560 for(
size_t i=(ipos>3UL)?(4UL):(1UL); (i+4UL)<=ipos; i+=4UL )
562 const size_t i1( element->index() );
563 const VET v1( element->value() );
565 const size_t i2( element->index() );
566 const VET v2( element->value() );
568 const size_t i3( element->index() );
569 const VET v3( element->value() );
571 const size_t i4( element->index() );
572 const VET v4( element->value() );
585 for(
size_t j=jbegin; j<jend; ++j ) {
586 y[j] += v1 * A(i1,j) + v2 * A(i2,j) + v3 * A(i3,j) + v4 * A(i4,j);
589 for( ; element!=
end; ++element )
591 const size_t i1( element->index() );
592 const VET v1( element->value() );
602 for(
size_t j=jbegin; j<jend; ++j ) {
603 y[j] += v1 * A(i1,j);
624 template<
typename VT1
628 selectAssignKernel( VT1& y,
const VT2& x,
const MT1& A )
636 const size_t N( A.columns() );
641 const size_t ipos( x.nonZeros() &
size_t(-4) );
642 BLAZE_INTERNAL_ASSERT( ( x.nonZeros() - ( x.nonZeros() % 4UL ) ) == ipos,
"Invalid end calculation" );
646 const size_t i1( element->index() );
647 const VET v1( element->value() );
649 const size_t i2( element->index() );
650 const VET v2( element->value() );
652 const size_t i3( element->index() );
653 const VET v3( element->value() );
655 const size_t i4( element->index() );
656 const VET v4( element->value() );
666 const size_t jpos( remainder ? ( N &
size_t(-SIMDSIZE) ) : N );
671 for( ; j<jpos; j+=SIMDSIZE ) {
672 y.store( j, xmm1 * A.load(i1,j) + xmm2 * A.load(i2,j) + xmm3 * A.load(i3,j) + xmm4 * A.load(i4,j) );
674 for( ; remainder && j<N; ++j ) {
675 y[j] = v1 * A(i1,j) + v2 * A(i2,j) + v3 * A(i3,j) + v4 * A(i4,j);
680 const size_t i1( element->index() );
681 const VET v1( element->value() );
686 const size_t jpos( remainder ? ( N &
size_t(-SIMDSIZE) ) : N );
691 for( ; j<jpos; j+=SIMDSIZE ) {
692 y.store( j, xmm1 * A.load(i1,j) );
694 for( ; remainder && j<N; ++j ) {
699 for(
size_t i=(ipos>3UL)?(4UL):(1UL); (i+4UL)<=ipos; i+=4UL )
701 const size_t i1( element->index() );
702 const VET v1( element->value() );
704 const size_t i2( element->index() );
705 const VET v2( element->value() );
707 const size_t i3( element->index() );
708 const VET v3( element->value() );
710 const size_t i4( element->index() );
711 const VET v4( element->value() );
729 const size_t jpos( remainder ? ( jend &
size_t(-SIMDSIZE) ) : jend );
730 BLAZE_INTERNAL_ASSERT( !remainder || ( jend - ( jend % SIMDSIZE ) ) == jpos,
"Invalid end calculation" );
734 for( ; j<jpos; j+=SIMDSIZE ) {
735 y.store( j, y.load(j) + xmm1 * A.load(i1,j) + xmm2 * A.load(i2,j) + xmm3 * A.load(i3,j) + xmm4 * A.load(i4,j) );
737 for( ; remainder && j<jend; ++j ) {
738 y[j] += v1 * A(i1,j) + v2 * A(i2,j) + v3 * A(i3,j) + v4 * A(i4,j);
741 for( ; element!=
end; ++element )
743 const size_t i1( element->index() );
744 const VET v1( element->value() );
756 const size_t jpos( remainder ? ( jend &
size_t(-SIMDSIZE) ) : jend );
757 BLAZE_INTERNAL_ASSERT( !remainder || ( jend - ( jend % SIMDSIZE ) ) == jpos,
"Invalid end calculation" );
761 for( ; j<jpos; j+=SIMDSIZE ) {
762 y.store( j, y.load(j) + xmm1 * A.load(i1,j) );
764 for( ; remainder && j<jend; ++j ) {
765 y[j] += v1 * A(i1,j);
785 template<
typename VT2 >
814 template<
typename VT2 >
823 if( x.nonZeros() == 0UL )
return;
835 TSVecDMatMultExpr::selectAddAssignKernel( ~lhs, x, A );
853 template<
typename VT1
857 selectAddAssignKernel( VT1& y,
const VT2& x,
const MT1& A )
863 const size_t N( A.columns() );
868 for( ; element!=
end; ++element )
870 const size_t index( element->index() );
874 y[index] += A(index,index) * element->value();
886 for(
size_t j=jbegin; j<jend; ++j ) {
887 y[j] += element->value() * A(index,j);
909 template<
typename VT1
913 selectAddAssignKernel( VT1& y,
const VT2& x,
const MT1& A )
919 const size_t N( A.columns() );
924 const size_t ipos( x.nonZeros() &
size_t(-4) );
925 BLAZE_INTERNAL_ASSERT( ( x.nonZeros() - ( x.nonZeros() % 4UL ) ) == ipos,
"Invalid end calculation" );
927 for(
size_t i=0UL; (i+4UL)<=ipos; i+=4UL )
929 const size_t i1( element->index() );
930 const VET v1( element->value() );
932 const size_t i2( element->index() );
933 const VET v2( element->value() );
935 const size_t i3( element->index() );
936 const VET v3( element->value() );
938 const size_t i4( element->index() );
939 const VET v4( element->value() );
952 for(
size_t j=jbegin; j<jend; ++j ) {
953 y[j] += v1 * A(i1,j) + v2 * A(i2,j) + v3 * A(i3,j) + v4 * A(i4,j);
956 for( ; element!=
end; ++element )
958 const size_t i1( element->index() );
959 const VET v1( element->value() );
969 for(
size_t j=jbegin; j<jend; ++j ) {
970 y[j] += v1 * A(i1,j);
991 template<
typename VT1
995 selectAddAssignKernel( VT1& y,
const VT2& x,
const MT1& A )
1003 const size_t N( A.columns() );
1008 const size_t ipos( x.nonZeros() &
size_t(-4) );
1009 BLAZE_INTERNAL_ASSERT( ( x.nonZeros() - ( x.nonZeros() % 4UL ) ) == ipos,
"Invalid end calculation" );
1011 for(
size_t i=0UL; (i+4UL)<=ipos; i+=4UL )
1013 const size_t i1( element->index() );
1014 const VET v1( element->value() );
1016 const size_t i2( element->index() );
1017 const VET v2( element->value() );
1019 const size_t i3( element->index() );
1020 const VET v3( element->value() );
1022 const size_t i4( element->index() );
1023 const VET v4( element->value() );
1041 const size_t jpos( remainder ? ( jend &
size_t(-SIMDSIZE) ) : jend );
1042 BLAZE_INTERNAL_ASSERT( !remainder || ( jend - ( jend % SIMDSIZE ) ) == jpos,
"Invalid end calculation" );
1046 for( ; j<jpos; j+=SIMDSIZE ) {
1047 y.store( j, y.load(j) + xmm1 * A.load(i1,j) + xmm2 * A.load(i2,j) + xmm3 * A.load(i3,j) + xmm4 * A.load(i4,j) );
1049 for( ; remainder && j<jend; ++j ) {
1050 y[j] += v1 * A(i1,j) + v2 * A(i2,j) + v3 * A(i3,j) + v4 * A(i4,j);
1053 for( ; element!=
end; ++element )
1055 const size_t i1( element->index() );
1056 const VET v1( element->value() );
1068 const size_t jpos( remainder ? ( jend &
size_t(-SIMDSIZE) ) : jend );
1069 BLAZE_INTERNAL_ASSERT( !remainder || ( jend - ( jend % SIMDSIZE ) ) == jpos,
"Invalid end calculation" );
1073 for( ; j<jpos; j+=SIMDSIZE ) {
1074 y.store( j, y.load(j) + xmm1 * A.load(i1,j) );
1076 for( ; remainder && j<jend; ++j ) {
1077 y[j] += v1 * A(i1,j);
1100 template<
typename VT2 >
1109 if( x.nonZeros() == 0UL )
return;
1121 TSVecDMatMultExpr::selectSubAssignKernel( ~lhs, x, A );
1139 template<
typename VT1
1143 selectSubAssignKernel( VT1& y,
const VT2& x,
const MT1& A )
1149 const size_t N( A.columns() );
1154 for( ; element!=
end; ++element )
1156 const size_t index( element->index() );
1160 y[index] -= A(index,index) * element->value();
1172 for(
size_t j=jbegin; j<jend; ++j ) {
1173 y[j] -= element->value() * A(index,j);
1195 template<
typename VT1
1199 selectSubAssignKernel( VT1& y,
const VT2& x,
const MT1& A )
1205 const size_t N( A.columns() );
1210 const size_t ipos( x.nonZeros() &
size_t(-4) );
1211 BLAZE_INTERNAL_ASSERT( ( x.nonZeros() - ( x.nonZeros() % 4UL ) ) == ipos,
"Invalid end calculation" );
1213 for(
size_t i=0UL; (i+4UL)<=ipos; i+=4UL )
1215 const size_t i1( element->index() );
1216 const VET v1( element->value() );
1218 const size_t i2( element->index() );
1219 const VET v2( element->value() );
1221 const size_t i3( element->index() );
1222 const VET v3( element->value() );
1224 const size_t i4( element->index() );
1225 const VET v4( element->value() );
1238 for(
size_t j=jbegin; j<jend; ++j ) {
1239 y[j] -= v1 * A(i1,j) + v2 * A(i2,j) + v3 * A(i3,j) + v4 * A(i4,j);
1242 for( ; element!=
end; ++element )
1244 const size_t i1( element->index() );
1245 const VET v1( element->value() );
1255 for(
size_t j=jbegin; j<jend; ++j ) {
1256 y[j] -= v1 * A(i1,j);
1277 template<
typename VT1
1281 selectSubAssignKernel( VT1& y,
const VT2& x,
const MT1& A )
1289 const size_t N( A.columns() );
1294 const size_t ipos( x.nonZeros() &
size_t(-4) );
1295 BLAZE_INTERNAL_ASSERT( ( x.nonZeros() - ( x.nonZeros() % 4UL ) ) == ipos,
"Invalid end calculation" );
1297 for(
size_t i=0UL; (i+4UL)<=ipos; i+=4UL )
1299 const size_t i1( element->index() );
1300 const VET v1( element->value() );
1302 const size_t i2( element->index() );
1303 const VET v2( element->value() );
1305 const size_t i3( element->index() );
1306 const VET v3( element->value() );
1308 const size_t i4( element->index() );
1309 const VET v4( element->value() );
1327 const size_t jpos( remainder ? ( jend &
size_t(-SIMDSIZE) ) : jend );
1328 BLAZE_INTERNAL_ASSERT( !remainder || ( jend - ( jend % SIMDSIZE ) ) == jpos,
"Invalid end calculation" );
1332 for( ; j<jpos; j+=SIMDSIZE ) {
1333 y.store( j, y.load(j) - xmm1 * A.load(i1,j) - xmm2 * A.load(i2,j) - xmm3 * A.load(i3,j) - xmm4 * A.load(i4,j) );
1335 for( ; remainder && j<jend; ++j ) {
1336 y[j] -= v1 * A(i1,j) + v2 * A(i2,j) + v3 * A(i3,j) + v4 * A(i4,j);
1339 for( ; element!=
end; ++element )
1341 const size_t i1( element->index() );
1342 const VET v1( element->value() );
1354 const size_t jpos( remainder ? ( jend &
size_t(-SIMDSIZE) ) : jend );
1355 BLAZE_INTERNAL_ASSERT( !remainder || ( jend - ( jend % SIMDSIZE ) ) == jpos,
"Invalid end calculation" );
1359 for( ; j<jpos; j+=SIMDSIZE ) {
1360 y.store( j, y.load(j) - xmm1 * A.load(i1,j) );
1362 for( ; remainder && j<jend; ++j ) {
1363 y[j] -= v1 * A(i1,j);
1386 template<
typename VT2 >
1418 template<
typename VT2 >
1453 template<
typename VT2 >
1463 if( x.nonZeros() == 0UL ) {
1498 template<
typename VT2 >
1530 template<
typename VT2 >
1540 if( x.nonZeros() == 0UL )
return;
1574 template<
typename VT2 >
1584 if( x.nonZeros() == 0UL )
return;
1618 template<
typename VT2 >
1653 template<
typename VT2 >
1726 template<
typename VT
1728 inline decltype(
auto)
1735 if( (~vec).
size() != (~mat).
rows() ) {
1767 template<
typename VT
1769 inline decltype(
auto)
1790 template<
typename VT,
typename MT >
1791 struct Size< TSVecDMatMultExpr<VT,MT> >
1808 template<
typename VT,
typename MT >
1809 struct IsAligned< TSVecDMatMultExpr<VT,MT> >
friend EnableIf_< UseSMPAssign< VT2 > > smpDivAssign(DenseVector< VT2, true > &lhs, const TSVecDMatMultExpr &rhs)
SMP division assignment of a transpose sparse vector-dense matrix multiplication to a dense vector ( ...
Definition: TSVecDMatMultExpr.h:1655
#define BLAZE_THROW_INVALID_ARGUMENT(MESSAGE)
Macro for the emission of a std::invalid_argument exception.This macro encapsulates the default way o...
Definition: Exception.h:235
friend EnableIf_< UseSMPAssign< VT2 > > 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:1532
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
size_t size() const noexcept
Returns the current size/dimension of the vector.
Definition: TSVecDMatMultExpr.h:299
bool isAliased(const T *alias) const noexcept
Returns whether the expression is aliased with the given address alias.
Definition: TSVecDMatMultExpr.h:343
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:1387
const ElementType ReturnType
Return type for expression template evaluations.
Definition: TSVecDMatMultExpr.h:201
Header file for basic type definitions.
Expression object for transpose sparse vector-dense matrix multiplications.The TSVecDMatMultExpr clas...
Definition: Forward.h:173
Subvector< VT, AF > subvector(Vector< VT, TF > &vector, size_t index, size_t size)
Creating a view on a specific subvector of the given vector.
Definition: Subvector.h:322
friend EnableIf_< UseSMPAssign< VT2 > > 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:1620
Header file for the serial shim.
Header file for the IsDiagonal type trait.
Generic wrapper for a compile time constant integral value.The IntegralConstant class template repres...
Definition: IntegralConstant.h:71
CompositeType_< MT > MCT
Composite type of the right-hand side dense matrix expression.
Definition: TSVecDMatMultExpr.h:118
#define BLAZE_CONSTRAINT_MUST_BE_DENSE_MATRIX_TYPE(T)
Constraint on the data type.In case the given data type T is not a dense, N-dimensional matrix type...
Definition: DenseMatrix.h:61
Header file for the IsSame and IsStrictlySame type traits.
BLAZE_ALWAYS_INLINE MT::Iterator begin(Matrix< MT, SO > &matrix, size_t i)
Returns an iterator to the first element of row/column i.
Definition: Matrix.h:198
Availability of a SIMD multiplication for the given data types.Depending on the available instruction...
Definition: HasSIMDMult.h:172
LeftOperand vec_
Left-hand side sparse vector of the multiplication expression.
Definition: TSVecDMatMultExpr.h:370
typename SIMDTrait< T >::Type SIMDTrait_
Auxiliary alias declaration for the SIMDTrait class template.The SIMDTrait_ alias declaration provide...
Definition: SIMDTrait.h:316
void reset(const DiagonalProxy< MT > &proxy)
Resetting the represented element to the default initial values.
Definition: DiagonalProxy.h:560
ElementType_< VRT > VET
Element type of the left-hand side sparse vector expression.
Definition: TSVecDMatMultExpr.h:115
ElementType_< ResultType > ElementType
Resulting element type.
Definition: TSVecDMatMultExpr.h:199
IfTrue_< evaluateVector, const VRT, VCT > LT
Type for the assignment of the left-hand side sparse vector operand.
Definition: TSVecDMatMultExpr.h:211
Header file for the DenseVector base class.
Compile time check for lower triangular matrices.This type trait tests whether or not the given templ...
Definition: IsLower.h:88
Availability of a SIMD addition for the given data types.Depending on the available instruction set (...
Definition: HasSIMDAdd.h:171
bool canAlias(const T *alias) const noexcept
Returns whether the expression can alias with the given address alias.
Definition: TSVecDMatMultExpr.h:331
typename MultTrait< T1, T2 >::Type MultTrait_
Auxiliary alias declaration for the MultTrait class template.The MultTrait_ alias declaration provide...
Definition: MultTrait.h:250
Column< MT > column(Matrix< MT, SO > &matrix, size_t index)
Creating a view on a specific column of the given matrix.
Definition: Column.h:124
Header file for the Computation base class.
Header file for the MatMatMultExpr base class.
Compile time check for upper triangular matrices.This type trait tests whether or not the given templ...
Definition: IsUpper.h:88
Constraints on the storage order of matrix types.
TransposeType_< ResultType > TransposeType
Transpose type for expression template evaluations.
Definition: TSVecDMatMultExpr.h:198
Header file for the RequiresEvaluation type trait.
System settings for performance optimizations.
Compile time check for data types.This type trait tests whether or not the given types can be combine...
Definition: IsSIMDCombinable.h:120
typename T::ResultType ResultType_
Alias declaration for nested ResultType type definitions.The ResultType_ alias declaration provides a...
Definition: Aliases.h:343
Base class for dense matrices.The DenseMatrix class is a base class for all dense matrix classes...
Definition: DenseMatrix.h:78
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
Compile time check for the alignment of data types.This type trait tests whether the given data type ...
Definition: IsAligned.h:87
Constraint on the data type.
RightOperand mat_
Right-hand side dense matrix of the multiplication expression.
Definition: TSVecDMatMultExpr.h:371
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
MultTrait_< VRT, MRT > ResultType
Result type for expression template evaluations.
Definition: TSVecDMatMultExpr.h:197
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:815
Header file for the multiplication trait.
RightOperand rightOperand() const noexcept
Returns the right-hand side dense matrix operand.
Definition: TSVecDMatMultExpr.h:319
Header file for the IsStrictlyUpper type trait.
LeftOperand leftOperand() const noexcept
Returns the left-hand side sparse vector operand.
Definition: TSVecDMatMultExpr.h:309
Namespace of the Blaze C++ math library.
Definition: Blaze.h:57
Header file for the If class template.
friend void divAssign(DenseVector< VT2, true > &lhs, const TSVecDMatMultExpr &rhs)
Division assignment of a transpose sparse vector-dense matrix multiplication to a dense vector ( )...
Definition: TSVecDMatMultExpr.h:1419
Compile time check for data types with padding.This type trait tests whether the given data type empl...
Definition: IsPadded.h:76
EnableIf_< IsDenseMatrix< MT1 > > smpAssign(Matrix< MT1, SO1 > &lhs, const Matrix< MT2, SO2 > &rhs)
Default implementation of the SMP assignment of a matrix to a dense matrix.
Definition: DenseMatrix.h:102
const ResultType CompositeType
Data type for composite expression templates.
Definition: TSVecDMatMultExpr.h:202
#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 HasSIMDAdd type trait.
Header file for the Columns type trait.
const Element * ConstIterator
Iterator over constant elements.
Definition: CompressedMatrix.h:3087
typename T::ElementType ElementType_
Alias declaration for nested ElementType type definitions.The ElementType_ alias declaration provides...
Definition: Aliases.h:163
Header file for all SIMD functionality.
Base class for N-dimensional dense vectors.The DenseVector class is a base class for all arbitrarily ...
Definition: DenseVector.h:70
ResultType_< MT > MRT
Result type of the right-hand side dense matrix expression.
Definition: TSVecDMatMultExpr.h:114
Header file for the IsLower type trait.
#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
Header file for the IsAligned type trait.
Compile time check for diagonal matrices.This type trait tests whether or not the given template para...
Definition: IsDiagonal.h:90
If_< IsExpression< VT >, const VT, const VT &> LeftOperand
Composite type of the left-hand side sparse vector expression.
Definition: TSVecDMatMultExpr.h:205
#define BLAZE_CONSTRAINT_MUST_NOT_BE_MATMATMULTEXPR_TYPE(T)
Constraint on the data type.In case the given data type T is a matrix/matrix multiplication expressio...
Definition: MatMatMultExpr.h:88
ElementType_< MRT > MET
Element type of the right-hand side dense matrix expression.
Definition: TSVecDMatMultExpr.h:116
Constraint on the data type.
Header file for the exception macros of the math module.
Compile time check for strictly upper triangular matrices.This type trait tests whether or not the gi...
Definition: IsStrictlyUpper.h:86
BLAZE_ALWAYS_INLINE MT::Iterator end(Matrix< MT, SO > &matrix, size_t i)
Returns an iterator just past the last element of row/column i.
Definition: Matrix.h:264
decltype(auto) operator*(const DenseMatrix< MT1, false > &lhs, const DenseMatrix< MT2, false > &rhs)
Multiplication operator for the multiplication of two row-major dense matrices ( ).
Definition: DMatDMatMultExpr.h:8893
Constraint on the data type.
Header file for all forward declarations for expression class templates.
Constraint on the data type.
Header file for the EnableIf class template.
Header file for the IsStrictlyLower type trait.
IfTrue_< evaluateMatrix, const MRT, MCT > RT
Type for the assignment of the right-hand side dense matrix operand.
Definition: TSVecDMatMultExpr.h:214
Compile time check for resizable data types.This type trait tests whether the given data type is a re...
Definition: IsResizable.h:75
ResultType_< VT > VRT
Result type of the left-hand side sparse vector expression.
Definition: TSVecDMatMultExpr.h:113
Base class for all matrix/matrix multiplication expression templates.The MatMatMultExpr class serves ...
Definition: MatMatMultExpr.h:67
Header file for the IsSIMDCombinable type trait.
#define BLAZE_CONSTRAINT_MUST_BE_ROW_MAJOR_MATRIX_TYPE(T)
Constraint on the data type.In case the given data type T is not a row-major dense or sparse matrix t...
Definition: RowMajorMatrix.h:61
Header file for the HasSIMDMult type trait.
bool isAligned() const noexcept
Returns whether the operands of the expression are properly aligned in memory.
Definition: TSVecDMatMultExpr.h:353
Header file for run time assertion macros.
typename If< T1, T2, T3 >::Type If_
Auxiliary alias declaration for the If class template.The If_ alias declaration provides a convenient...
Definition: If.h:154
Header file for the reset shim.
Constraint on the data type.
SIMD characteristics of data types.The SIMDTrait class template provides the SIMD characteristics of ...
Definition: SIMDTrait.h:296
#define BLAZE_FUNCTION_TRACE
Function trace macro.This macro can be used to reliably trace function calls. In case function tracin...
Definition: FunctionTrace.h:94
ReturnType operator[](size_t index) const
Subscript operator for the direct access to the vector elements.
Definition: TSVecDMatMultExpr.h:254
Header file for the TVecMatMultExpr base class.
decltype(auto) serial(const DenseMatrix< MT, SO > &dm)
Forces the serial evaluation of the given dense matrix expression dm.
Definition: DMatSerialExpr.h:819
TSVecDMatMultExpr(const VT &vec, const MT &mat) noexcept
Constructor for the TSVecDMatMultExpr class.
Definition: TSVecDMatMultExpr.h:240
#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
SIMDTrait_< ElementType > SIMDType
Resulting SIMD element type.
Definition: TSVecDMatMultExpr.h:200
bool canSMPAssign() const noexcept
Returns whether the expression can be used in SMP assignments.
Definition: TSVecDMatMultExpr.h:363
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:224
Compile time check for strictly lower triangular matrices.This type trait tests whether or not the gi...
Definition: IsStrictlyLower.h:86
BLAZE_ALWAYS_INLINE size_t rows(const Matrix< MT, SO > &matrix) noexcept
Returns the current number of rows of the matrix.
Definition: Matrix.h:324
const Type & ReturnType
Return type for expression template evaluations.
Definition: CompressedMatrix.h:3082
typename T::ConstIterator ConstIterator_
Alias declaration for nested ConstIterator type definitions.The ConstIterator_ alias declaration prov...
Definition: Aliases.h:103
#define BLAZE_CONSTRAINT_MUST_BE_DENSE_VECTOR_TYPE(T)
Constraint on the data type.In case the given data type T is not a dense, N-dimensional vector type...
Definition: DenseVector.h:61
#define BLAZE_CONSTRAINT_MUST_FORM_VALID_TVECMATMULTEXPR(T1, T2)
Constraint on the data type.In case the given data types T1 and T2 do not form a valid vector/matrix ...
Definition: TVecMatMultExpr.h:109
Header file for the IsComputation type trait class.
Compile time evaluation of the size of a vector.The Size type trait evaluates the size of the given v...
Definition: Size.h:74
Base class for sparse vectors.The SparseVector class is a base class for all arbitrarily sized (N-dim...
Definition: Forward.h:130
Header file for the IntegralConstant class template.
Compile time evaluation of the number of columns of a matrix.The Columns type trait evaluates the num...
Definition: Columns.h:75
#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
typename T::TransposeType TransposeType_
Alias declaration for nested TransposeType type definitions.The TransposeType_ alias declaration prov...
Definition: Aliases.h:423
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:1101
Header file for the IsUpper type trait.
Constraint on the data type.
ReturnType at(size_t index) const
Checked access to the vector elements.
Definition: TSVecDMatMultExpr.h:286
friend EnableIf_< UseSMPAssign< VT2 > > 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:1576
Header file for the IsResizable type trait.
Header file for the Size type trait.
Size type of the Blaze library.
Header file for the thresholds for matrix/vector and matrix/matrix multiplications.
If_< IsExpression< MT >, const MT, const MT &> RightOperand
Composite type of the right-hand side sparse matrix expression.
Definition: TSVecDMatMultExpr.h:208
#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
CompositeType_< VT > VCT
Composite type of the left-hand side sparse vector expression.
Definition: TSVecDMatMultExpr.h:117
Constraint on the transpose flag of vector types.
Header file for the IsExpression type trait class.
Header file for the function trace functionality.