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);
289 if( index >=
mat_.columns() ) {
292 return (*
this)[index];
301 inline size_t size() const noexcept {
302 return mat_.columns();
332 template<
typename T >
333 inline bool canAlias(
const T* alias )
const noexcept {
334 return vec_.isAliased( alias ) ||
mat_.isAliased( alias );
344 template<
typename T >
345 inline bool isAliased(
const T* alias )
const noexcept {
346 return vec_.isAliased( alias ) ||
mat_.isAliased( alias );
356 return mat_.isAligned();
366 return (
size() > SMP_TSVECDMATMULT_THRESHOLD );
389 template<
typename VT2 >
398 if( x.nonZeros() == 0UL ) {
413 TSVecDMatMultExpr::selectAssignKernel( ~lhs, x, A );
432 template<
typename VT1
436 selectAssignKernel( VT1& y,
const VT2& x,
const MT1& A )
442 const size_t N( A.columns() );
451 for(
size_t j=0UL; j<jend; ++j )
455 for( ; element!=
end; ++element )
457 const size_t index( element->index() );
463 for(
size_t j=last; j<index; ++j )
466 y[index] = element->value() * A(index,index);
479 for(
size_t j=jbegin; j<last; ++j ) {
480 y[j] += element->value() * A(index,j);
482 for(
size_t j=last; j<jend; ++j ) {
483 y[j] = element->value() * A(index,j);
491 for(
size_t j=last; j<N; ++j )
512 template<
typename VT1
516 selectAssignKernel( VT1& y,
const VT2& x,
const MT1& A )
522 const size_t N( A.columns() );
527 const size_t ipos( x.nonZeros() &
size_t(-4) );
528 BLAZE_INTERNAL_ASSERT( ( x.nonZeros() - ( x.nonZeros() % 4UL ) ) == ipos,
"Invalid end calculation" );
532 const size_t i1( element->index() );
533 const VET v1( element->value() );
535 const size_t i2( element->index() );
536 const VET v2( element->value() );
538 const size_t i3( element->index() );
539 const VET v3( element->value() );
541 const size_t i4( element->index() );
542 const VET v4( element->value() );
547 for(
size_t j=0UL; j<N; ++j ) {
548 y[j] = v1 * A(i1,j) + v2 * A(i2,j) + v3 * A(i3,j) + v4 * A(i4,j);
553 const size_t i1( element->index() );
554 const VET v1( element->value() );
557 for(
size_t j=0UL; j<N; ++j ) {
562 for(
size_t i=(ipos>3UL)?(4UL):(1UL); (i+4UL)<=ipos; i+=4UL )
564 const size_t i1( element->index() );
565 const VET v1( element->value() );
567 const size_t i2( element->index() );
568 const VET v2( element->value() );
570 const size_t i3( element->index() );
571 const VET v3( element->value() );
573 const size_t i4( element->index() );
574 const VET v4( element->value() );
587 for(
size_t j=jbegin; j<jend; ++j ) {
588 y[j] += v1 * A(i1,j) + v2 * A(i2,j) + v3 * A(i3,j) + v4 * A(i4,j);
591 for( ; element!=
end; ++element )
593 const size_t i1( element->index() );
594 const VET v1( element->value() );
604 for(
size_t j=jbegin; j<jend; ++j ) {
605 y[j] += v1 * A(i1,j);
626 template<
typename VT1
630 selectAssignKernel( VT1& y,
const VT2& x,
const MT1& A )
638 const size_t N( A.columns() );
643 const size_t ipos( x.nonZeros() &
size_t(-4) );
644 BLAZE_INTERNAL_ASSERT( ( x.nonZeros() - ( x.nonZeros() % 4UL ) ) == ipos,
"Invalid end calculation" );
648 const size_t i1( element->index() );
649 const VET v1( element->value() );
651 const size_t i2( element->index() );
652 const VET v2( element->value() );
654 const size_t i3( element->index() );
655 const VET v3( element->value() );
657 const size_t i4( element->index() );
658 const VET v4( element->value() );
668 const size_t jpos( remainder ? ( N &
size_t(-SIMDSIZE) ) : N );
673 for( ; j<jpos; j+=SIMDSIZE ) {
674 y.store( j, xmm1 * A.load(i1,j) + xmm2 * A.load(i2,j) + xmm3 * A.load(i3,j) + xmm4 * A.load(i4,j) );
676 for( ; remainder && j<N; ++j ) {
677 y[j] = v1 * A(i1,j) + v2 * A(i2,j) + v3 * A(i3,j) + v4 * A(i4,j);
682 const size_t i1( element->index() );
683 const VET v1( element->value() );
688 const size_t jpos( remainder ? ( N &
size_t(-SIMDSIZE) ) : N );
693 for( ; j<jpos; j+=SIMDSIZE ) {
694 y.store( j, xmm1 * A.load(i1,j) );
696 for( ; remainder && j<N; ++j ) {
701 for(
size_t i=(ipos>3UL)?(4UL):(1UL); (i+4UL)<=ipos; i+=4UL )
703 const size_t i1( element->index() );
704 const VET v1( element->value() );
706 const size_t i2( element->index() );
707 const VET v2( element->value() );
709 const size_t i3( element->index() );
710 const VET v3( element->value() );
712 const size_t i4( element->index() );
713 const VET v4( element->value() );
731 const size_t jpos( remainder ? ( jend &
size_t(-SIMDSIZE) ) : jend );
732 BLAZE_INTERNAL_ASSERT( !remainder || ( jend - ( jend % SIMDSIZE ) ) == jpos,
"Invalid end calculation" );
736 for( ; j<jpos; j+=SIMDSIZE ) {
737 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) );
739 for( ; remainder && j<jend; ++j ) {
740 y[j] += v1 * A(i1,j) + v2 * A(i2,j) + v3 * A(i3,j) + v4 * A(i4,j);
743 for( ; element!=
end; ++element )
745 const size_t i1( element->index() );
746 const VET v1( element->value() );
758 const size_t jpos( remainder ? ( jend &
size_t(-SIMDSIZE) ) : jend );
759 BLAZE_INTERNAL_ASSERT( !remainder || ( jend - ( jend % SIMDSIZE ) ) == jpos,
"Invalid end calculation" );
763 for( ; j<jpos; j+=SIMDSIZE ) {
764 y.store( j, y.load(j) + xmm1 * A.load(i1,j) );
766 for( ; remainder && j<jend; ++j ) {
767 y[j] += v1 * A(i1,j);
787 template<
typename VT2 >
816 template<
typename VT2 >
825 if( x.nonZeros() == 0UL )
return;
837 TSVecDMatMultExpr::selectAddAssignKernel( ~lhs, x, A );
855 template<
typename VT1
859 selectAddAssignKernel( VT1& y,
const VT2& x,
const MT1& A )
865 const size_t N( A.columns() );
870 for( ; element!=
end; ++element )
872 const size_t index( element->index() );
876 y[index] += A(index,index) * element->value();
888 for(
size_t j=jbegin; j<jend; ++j ) {
889 y[j] += element->value() * A(index,j);
911 template<
typename VT1
915 selectAddAssignKernel( VT1& y,
const VT2& x,
const MT1& A )
921 const size_t N( A.columns() );
926 const size_t ipos( x.nonZeros() &
size_t(-4) );
927 BLAZE_INTERNAL_ASSERT( ( x.nonZeros() - ( x.nonZeros() % 4UL ) ) == ipos,
"Invalid end calculation" );
929 for(
size_t i=0UL; (i+4UL)<=ipos; i+=4UL )
931 const size_t i1( element->index() );
932 const VET v1( element->value() );
934 const size_t i2( element->index() );
935 const VET v2( element->value() );
937 const size_t i3( element->index() );
938 const VET v3( element->value() );
940 const size_t i4( element->index() );
941 const VET v4( element->value() );
954 for(
size_t j=jbegin; j<jend; ++j ) {
955 y[j] += v1 * A(i1,j) + v2 * A(i2,j) + v3 * A(i3,j) + v4 * A(i4,j);
958 for( ; element!=
end; ++element )
960 const size_t i1( element->index() );
961 const VET v1( element->value() );
971 for(
size_t j=jbegin; j<jend; ++j ) {
972 y[j] += v1 * A(i1,j);
993 template<
typename VT1
997 selectAddAssignKernel( VT1& y,
const VT2& x,
const MT1& A )
1005 const size_t N( A.columns() );
1010 const size_t ipos( x.nonZeros() &
size_t(-4) );
1011 BLAZE_INTERNAL_ASSERT( ( x.nonZeros() - ( x.nonZeros() % 4UL ) ) == ipos,
"Invalid end calculation" );
1013 for(
size_t i=0UL; (i+4UL)<=ipos; i+=4UL )
1015 const size_t i1( element->index() );
1016 const VET v1( element->value() );
1018 const size_t i2( element->index() );
1019 const VET v2( element->value() );
1021 const size_t i3( element->index() );
1022 const VET v3( element->value() );
1024 const size_t i4( element->index() );
1025 const VET v4( element->value() );
1043 const size_t jpos( remainder ? ( jend &
size_t(-SIMDSIZE) ) : jend );
1044 BLAZE_INTERNAL_ASSERT( !remainder || ( jend - ( jend % SIMDSIZE ) ) == jpos,
"Invalid end calculation" );
1048 for( ; j<jpos; j+=SIMDSIZE ) {
1049 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) );
1051 for( ; remainder && j<jend; ++j ) {
1052 y[j] += v1 * A(i1,j) + v2 * A(i2,j) + v3 * A(i3,j) + v4 * A(i4,j);
1055 for( ; element!=
end; ++element )
1057 const size_t i1( element->index() );
1058 const VET v1( element->value() );
1070 const size_t jpos( remainder ? ( jend &
size_t(-SIMDSIZE) ) : jend );
1071 BLAZE_INTERNAL_ASSERT( !remainder || ( jend - ( jend % SIMDSIZE ) ) == jpos,
"Invalid end calculation" );
1075 for( ; j<jpos; j+=SIMDSIZE ) {
1076 y.store( j, y.load(j) + xmm1 * A.load(i1,j) );
1078 for( ; remainder && j<jend; ++j ) {
1079 y[j] += v1 * A(i1,j);
1102 template<
typename VT2 >
1111 if( x.nonZeros() == 0UL )
return;
1123 TSVecDMatMultExpr::selectSubAssignKernel( ~lhs, x, A );
1141 template<
typename VT1
1145 selectSubAssignKernel( VT1& y,
const VT2& x,
const MT1& A )
1151 const size_t N( A.columns() );
1156 for( ; element!=
end; ++element )
1158 const size_t index( element->index() );
1162 y[index] -= A(index,index) * element->value();
1174 for(
size_t j=jbegin; j<jend; ++j ) {
1175 y[j] -= element->value() * A(index,j);
1197 template<
typename VT1
1201 selectSubAssignKernel( VT1& y,
const VT2& x,
const MT1& A )
1207 const size_t N( A.columns() );
1212 const size_t ipos( x.nonZeros() &
size_t(-4) );
1213 BLAZE_INTERNAL_ASSERT( ( x.nonZeros() - ( x.nonZeros() % 4UL ) ) == ipos,
"Invalid end calculation" );
1215 for(
size_t i=0UL; (i+4UL)<=ipos; i+=4UL )
1217 const size_t i1( element->index() );
1218 const VET v1( element->value() );
1220 const size_t i2( element->index() );
1221 const VET v2( element->value() );
1223 const size_t i3( element->index() );
1224 const VET v3( element->value() );
1226 const size_t i4( element->index() );
1227 const VET v4( element->value() );
1240 for(
size_t j=jbegin; j<jend; ++j ) {
1241 y[j] -= v1 * A(i1,j) + v2 * A(i2,j) + v3 * A(i3,j) + v4 * A(i4,j);
1244 for( ; element!=
end; ++element )
1246 const size_t i1( element->index() );
1247 const VET v1( element->value() );
1257 for(
size_t j=jbegin; j<jend; ++j ) {
1258 y[j] -= v1 * A(i1,j);
1279 template<
typename VT1
1283 selectSubAssignKernel( VT1& y,
const VT2& x,
const MT1& A )
1291 const size_t N( A.columns() );
1296 const size_t ipos( x.nonZeros() &
size_t(-4) );
1297 BLAZE_INTERNAL_ASSERT( ( x.nonZeros() - ( x.nonZeros() % 4UL ) ) == ipos,
"Invalid end calculation" );
1299 for(
size_t i=0UL; (i+4UL)<=ipos; i+=4UL )
1301 const size_t i1( element->index() );
1302 const VET v1( element->value() );
1304 const size_t i2( element->index() );
1305 const VET v2( element->value() );
1307 const size_t i3( element->index() );
1308 const VET v3( element->value() );
1310 const size_t i4( element->index() );
1311 const VET v4( element->value() );
1329 const size_t jpos( remainder ? ( jend &
size_t(-SIMDSIZE) ) : jend );
1330 BLAZE_INTERNAL_ASSERT( !remainder || ( jend - ( jend % SIMDSIZE ) ) == jpos,
"Invalid end calculation" );
1334 for( ; j<jpos; j+=SIMDSIZE ) {
1335 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) );
1337 for( ; remainder && j<jend; ++j ) {
1338 y[j] -= v1 * A(i1,j) + v2 * A(i2,j) + v3 * A(i3,j) + v4 * A(i4,j);
1341 for( ; element!=
end; ++element )
1343 const size_t i1( element->index() );
1344 const VET v1( element->value() );
1356 const size_t jpos( remainder ? ( jend &
size_t(-SIMDSIZE) ) : jend );
1357 BLAZE_INTERNAL_ASSERT( !remainder || ( jend - ( jend % SIMDSIZE ) ) == jpos,
"Invalid end calculation" );
1361 for( ; j<jpos; j+=SIMDSIZE ) {
1362 y.store( j, y.load(j) - xmm1 * A.load(i1,j) );
1364 for( ; remainder && j<jend; ++j ) {
1365 y[j] -= v1 * A(i1,j);
1388 template<
typename VT2 >
1420 template<
typename VT2 >
1455 template<
typename VT2 >
1465 if( x.nonZeros() == 0UL ) {
1500 template<
typename VT2 >
1532 template<
typename VT2 >
1542 if( x.nonZeros() == 0UL )
return;
1576 template<
typename VT2 >
1586 if( x.nonZeros() == 0UL )
return;
1620 template<
typename VT2 >
1655 template<
typename VT2 >
1728 template<
typename VT
1730 inline decltype(
auto)
1737 if( (~vec).
size() != (~mat).
rows() ) {
1769 template<
typename VT
1771 inline decltype(
auto)
1792 template<
typename VT,
typename MT >
1793 struct Size< TSVecDMatMultExpr<VT,MT>, 0UL >
1794 :
public Size<MT,1UL>
1810 template<
typename VT,
typename MT >
1811 struct IsAligned< TSVecDMatMultExpr<VT,MT> >
decltype(auto) subvector(Vector< VT, TF > &, RSAs...)
Creating a view on a specific subvector of the given vector.
Definition: Subvector.h:329
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:1657
#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:1534
Header file for auxiliary alias declarations.
decltype(auto) column(Matrix< MT, SO > &matrix, RCAs... args)
Creating a view on a specific column of the given matrix.
Definition: Column.h:131
Header file for the blaze::checked and blaze::unchecked instances.
Compile time check whether the given type is a computational expression template.This type trait clas...
Definition: IsComputation.h:71
size_t size() const noexcept
Returns the current size/dimension of the vector.
Definition: TSVecDMatMultExpr.h:301
bool isAliased(const T *alias) const noexcept
Returns whether the expression is aliased with the given address alias.
Definition: TSVecDMatMultExpr.h:345
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:1389
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
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:1622
Header file for the serial shim.
Header file for the IsDiagonal type trait.
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:364
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:372
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:588
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
constexpr Unchecked unchecked
Global Unchecked instance.The blaze::unchecked instance is an optional token for the creation of view...
Definition: Check.h:138
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:87
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:333
typename MultTrait< T1, T2 >::Type MultTrait_
Auxiliary alias declaration for the MultTrait class template.The MultTrait_ alias declaration provide...
Definition: MultTrait.h:291
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:87
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:80
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:373
Compile time check to query the requirement to evaluate an expression.Via this type trait it is possi...
Definition: RequiresEvaluation.h:71
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:817
Header file for the multiplication trait.
RightOperand rightOperand() const noexcept
Returns the right-hand side dense matrix operand.
Definition: TSVecDMatMultExpr.h:321
Header file for the IsStrictlyUpper type trait.
LeftOperand leftOperand() const noexcept
Returns the left-hand side sparse vector operand.
Definition: TSVecDMatMultExpr.h:311
Namespace of the Blaze C++ math library.
Definition: Blaze.h:58
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:1421
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.
const Element * ConstIterator
Iterator over constant elements.
Definition: CompressedMatrix.h:3085
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:76
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:89
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:87
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:430
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.
Header file for the IsPadded 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:355
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:816
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:365
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:490
const Type & ReturnType
Return type for expression template evaluations.
Definition: CompressedMatrix.h:3080
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:108
Header file for the IsComputation type trait class.
Compile time evaluation of the size of vectors and matrices.The Size type trait evaluates the size of...
Definition: Size.h:80
Base class for sparse vectors.The SparseVector class is a base class for all arbitrarily sized (N-dim...
Definition: Forward.h:130
#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:1103
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:288
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:1578
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.