35#ifndef _BLAZE_MATH_EXPRESSIONS_SVECDVECOUTEREXPR_H_
36#define _BLAZE_MATH_EXPRESSIONS_SVECDVECOUTEREXPR_H_
103template<
typename VT1
106 :
public VecTVecMultExpr< SparseMatrix< SVecDVecOuterExpr<VT1,VT2>, true > >
128 static constexpr bool returnExpr = ( !IsTemporary_v<RN1> && !IsTemporary_v<RN2> );
142 static constexpr bool useAssign = ( IsComputation_v<VT1> || IsComputation_v<VT2> );
146 template<
typename MT >
147 static constexpr bool UseAssign_v =
useAssign;
156 template<
typename T1,
typename T2,
typename T3 >
157 static constexpr bool UseVectorizedKernel_v =
158 ( useOptimizedKernels &&
159 T1::simdEnabled && T3::simdEnabled &&
171 template<
typename T1,
typename T2,
typename T3 >
172 static constexpr bool UseDefaultKernel_v = !UseVectorizedKernel_v<T1,T2,T3>;
284 return it_->value() *
v_;
385 if( i >=
lhs_.size() ) {
388 if( j >=
rhs_.size() ) {
422 inline size_t rows() const noexcept {
443 return lhs_.nonZeros() *
rhs_.size();
455 return lhs_.nonZeros();
524 template<
typename T >
525 inline bool canAlias(
const T* alias )
const noexcept {
526 return (
lhs_.canAlias( alias ) ||
rhs_.canAlias( alias ) );
536 template<
typename T >
537 inline bool isAliased(
const T* alias )
const noexcept {
538 return (
lhs_.isAliased( alias ) ||
rhs_.isAliased( alias ) );
560 template<
typename MT >
578 SVecDVecOuterExpr::selectAssignKernel( *lhs, x, y );
597 template<
typename MT
600 static inline auto selectAssignKernel( MT& A,
const VT3& x,
const VT4& y )
603 const auto end( x.end() );
605 for(
auto element=x.begin(); element!=
end; ++element ) {
607 for(
size_t j=0UL; j<y.size(); ++j ) {
608 A(element->index(),j) = element->value() * y[j];
630 template<
typename MT
633 static inline auto selectAssignKernel( MT& A,
const VT3& x,
const VT4& y )
634 -> EnableIf_t< IsRowMajorMatrix_v<MT> && UseVectorizedKernel_v<MT,VT3,VT4> >
636 constexpr bool remainder( !IsPadded_v<MT> || !IsPadded_v<VT4> );
638 const size_t N( A.columns() );
643 const auto begin( x.begin() );
644 const auto end ( x.end() );
646 for(
auto element=
begin; element!=
end; ++element )
648 const SIMDTrait_t<ElementType> x1(
set( element->value() ) );
653 A.store( element->index(), j, x1 * y.load(j) );
655 for( ; remainder && j<N; ++j ) {
656 A(element->index(),j) = element->value() * y[j];
679 template<
typename MT >
680 friend inline auto assign( DenseMatrix<MT,true>& lhs,
const SVecDVecOuterExpr& rhs )
681 -> EnableIf_t< UseAssign_v<MT> >
696 const auto end( x.end() );
698 for(
size_t i=0UL; i<y.size(); ++i ) {
700 for(
auto element=x.begin(); element!=
end; ++element ) {
701 (*lhs)(element->index(),i) = element->value() * y[i];
721 template<
typename MT >
722 friend inline void assign( SparseMatrix<MT,false>& lhs,
const SVecDVecOuterExpr& rhs )
740 (*lhs).reserve( x.nonZeros() * y.size() );
743 const auto begin( x.begin() );
744 const auto end ( x.end() );
749 (*lhs).reserve(
begin->
index(), rhs.nonZeros() );
753 for(
auto element=
begin; element!=
end; ++element ) {
755 for( ; index < element->index(); ++index ) {
756 (*lhs).finalize( index );
758 for(
size_t i=0UL; i<y.size(); ++i ) {
759 (*lhs).append( element->index(), i, element->value() * y[i] );
761 (*lhs).finalize( index++ );
765 for( ; index < x.size(); ++index ) {
766 (*lhs).finalize( index );
788 template<
typename MT >
789 friend inline auto assign( SparseMatrix<MT,true>& lhs,
const SVecDVecOuterExpr& rhs )
790 -> EnableIf_t< UseAssign_v<MT> >
806 const auto begin( x.begin() );
807 const auto end ( x.end() );
812 for(
size_t i=0UL; i<y.size(); ++i ) {
814 for(
auto element=
begin; element!=
end; ++element ) {
815 (*lhs).append( element->index(), i, element->value() * y[i] );
818 (*lhs).finalize( i );
837 template<
typename MT >
838 friend inline void addAssign( DenseMatrix<MT,false>& lhs,
const SVecDVecOuterExpr& rhs )
855 SVecDVecOuterExpr::selectAddAssignKernel( *lhs, x, y );
874 template<
typename MT
877 static inline auto selectAddAssignKernel( MT& A,
const VT3& x,
const VT4& y )
878 -> EnableIf_t< IsRowMajorMatrix_v<MT> && UseDefaultKernel_v<MT,VT3,VT4> >
880 const auto end( x.end() );
882 for(
auto element=x.begin(); element!=
end; ++element ) {
884 for(
size_t i=0UL; i<y.size(); ++i ) {
885 A(element->index(),i) += element->value() * y[i];
907 template<
typename MT
910 static inline auto selectAddAssignKernel( MT& A,
const VT3& x,
const VT4& y )
911 -> EnableIf_t< IsRowMajorMatrix_v<MT> && UseVectorizedKernel_v<MT,VT3,VT4> >
913 constexpr bool remainder( !IsPadded_v<MT> || !IsPadded_v<VT4> );
915 const size_t N( A.columns() );
920 const auto begin( x.begin() );
921 const auto end ( x.end() );
923 for(
auto element=
begin; element!=
end; ++element )
925 if(
isDefault( element->value() ) )
continue;
927 const SIMDTrait_t<ElementType> x1(
set( element->value() ) );
932 A.store( element->index(), j, A.load(element->index(),j) + x1 * y.load(j) );
934 for( ; remainder && j<N; ++j ) {
935 A(element->index(),j) += element->value() * y[j];
958 template<
typename MT >
959 friend inline auto addAssign( DenseMatrix<MT,true>& lhs,
const SVecDVecOuterExpr& rhs )
960 -> EnableIf_t< UseAssign_v<MT> >
975 const auto end( x.end() );
977 for(
size_t i=0UL; i<y.size(); ++i ) {
979 for(
auto element=x.begin(); element!=
end; ++element ) {
980 (*lhs)(element->index(),i) += element->value() * y[i];
1005 template<
typename MT >
1006 friend inline void subAssign( DenseMatrix<MT,false>& lhs,
const SVecDVecOuterExpr& rhs )
1023 SVecDVecOuterExpr::selectSubAssignKernel( *lhs, x, y );
1042 template<
typename MT
1045 static inline auto selectSubAssignKernel( MT& A,
const VT3& x,
const VT4& y )
1046 -> EnableIf_t< IsRowMajorMatrix_v<MT> && UseDefaultKernel_v<MT,VT3,VT4> >
1048 const auto end( x.end() );
1050 for(
auto element=x.begin(); element!=
end; ++element ) {
1052 for(
size_t i=0UL; i<y.size(); ++i ) {
1053 A(element->index(),i) -= element->value() * y[i];
1075 template<
typename MT
1078 static inline auto selectSubAssignKernel( MT& A,
const VT3& x,
const VT4& y )
1079 -> EnableIf_t< IsRowMajorMatrix_v<MT> && UseVectorizedKernel_v<MT,VT3,VT4> >
1081 constexpr bool remainder( !IsPadded_v<MT> || !IsPadded_v<VT4> );
1083 const size_t N( A.columns() );
1088 const auto begin( x.begin() );
1089 const auto end ( x.end() );
1091 for(
auto element=
begin; element!=
end; ++element )
1093 if(
isDefault( element->value() ) )
continue;
1095 const SIMDTrait_t<ElementType> x1(
set( element->value() ) );
1100 A.store( element->index(), j, A.load(element->index(),j) - x1 * y.load(j) );
1102 for( ; remainder && j<N; ++j ) {
1103 A(element->index(),j) -= element->value() * y[j];
1126 template<
typename MT >
1127 friend inline auto subAssign( DenseMatrix<MT,true>& lhs,
const SVecDVecOuterExpr& rhs )
1128 -> EnableIf_t< UseAssign_v<MT> >
1143 const auto end( x.end() );
1145 for(
size_t i=0UL; i<y.size(); ++i ) {
1147 for(
auto element=x.begin(); element!=
end; ++element ) {
1148 (*lhs)(element->index(),i) -= element->value() * y[i];
1173 template<
typename MT >
1174 friend inline void schurAssign( DenseMatrix<MT,false>& lhs,
const SVecDVecOuterExpr& rhs )
1191 SVecDVecOuterExpr::selectSchurAssignKernel( *lhs, x, y );
1210 template<
typename MT
1213 static inline auto selectSchurAssignKernel( MT& A,
const VT3& x,
const VT4& y )
1214 -> EnableIf_t< IsRowMajorMatrix_v<MT> && UseDefaultKernel_v<MT,VT3,VT4> >
1216 const auto end( x.end() );
1220 for(
auto element=x.begin(); element!=
end; ++element )
1222 if(
isDefault( element->value() ) )
continue;
1224 for( ; i<element->index(); ++i ) {
1225 for(
size_t j=0UL; j<y.size(); ++j )
1229 for(
size_t j=0UL; j<y.size(); ++j ) {
1230 A(element->index(),j) *= element->value() * y[j];
1236 for( ; i<x.size(); ++i ) {
1237 for(
size_t j=0UL; j<y.size(); ++j )
1258 template<
typename MT
1261 static inline auto selectSchurAssignKernel( MT& A,
const VT3& x,
const VT4& y )
1262 -> EnableIf_t< IsRowMajorMatrix_v<MT> && UseVectorizedKernel_v<MT,VT3,VT4> >
1264 constexpr bool remainder( !IsPadded_v<MT> || !IsPadded_v<VT4> );
1266 const size_t M( A.rows() );
1267 const size_t N( A.columns() );
1272 const auto begin( x.begin() );
1273 const auto end ( x.end() );
1277 for(
auto element=
begin; element!=
end; ++element )
1279 if(
isDefault( element->value() ) )
continue;
1281 for( ; i<element->index(); ++i ) {
1282 for(
size_t j=0UL; j<N; ++j )
1286 const SIMDTrait_t<ElementType> x1(
set( element->value() ) );
1291 A.store( element->index(), j, A.load(element->index(),j) * ( x1 * y.load(j) ) );
1293 for( ; remainder && j<N; ++j ) {
1294 A(element->index(),j) *= element->value() * y[j];
1301 for(
size_t j=0UL; j<N; ++j )
1324 template<
typename MT >
1325 friend inline auto schurAssign( DenseMatrix<MT,true>& lhs,
const SVecDVecOuterExpr& rhs )
1326 -> EnableIf_t< UseAssign_v<MT> >
1341 const auto end( x.end() );
1343 for(
size_t j=0UL; j<y.size(); ++j )
1347 for(
auto element=x.begin(); element!=
end; ++element, ++i ) {
1348 for( ; i<element->index(); ++i )
1349 reset( (*lhs)(i,j) );
1350 (*lhs)(element->index(),j) *= element->value() * y[j];
1353 for( ; i<x.size(); ++i ) {
1354 reset( (*lhs)(i,j) );
1408template<
typename VT1
1410 , DisableIf_t< IsZero_v<VT1> >* =
nullptr >
1411inline const SVecDVecOuterExpr<VT1,VT2>
1412 svecdvecouter(
const SparseVector<VT1,false>& lhs,
const DenseVector<VT2,true>& rhs )
1416 return SVecDVecOuterExpr<VT1,VT2>( *lhs, *rhs );
1435template<
typename VT1
1437 , EnableIf_t< IsZero_v<VT1> >* =
nullptr >
1438inline decltype(
auto)
1439 svecdvecouter(
const SparseVector<VT1,false>& lhs,
const DenseVector<VT2,true>& rhs )
1443 using ReturnType =
const MultTrait_t< ResultType_t<VT1>, ResultType_t<VT2> >;
1448 return ReturnType( (*lhs).size(), (*rhs).size() );
1483template<
typename VT1
1485inline decltype(
auto)
1490 return svecdvecouter( *lhs, *rhs );
1505template<
typename VT1,
typename VT2 >
1506struct Size< SVecDVecOuterExpr<VT1,VT2>, 0UL >
1507 :
public Size<VT1,0UL>
1510template<
typename VT1,
typename VT2 >
1511struct Size< SVecDVecOuterExpr<VT1,VT2>, 1UL >
1512 :
public Size<VT2,0UL>
Header file for auxiliary alias declarations.
typename T::CompositeType CompositeType_t
Alias declaration for nested CompositeType type definitions.
Definition: Aliases.h:110
typename T::ReturnType ReturnType_t
Alias declaration for nested ReturnType type definitions.
Definition: Aliases.h:470
typename T::ResultType ResultType_t
Alias declaration for nested ResultType type definitions.
Definition: Aliases.h:450
typename T::ElementType ElementType_t
Alias declaration for nested ElementType type definitions.
Definition: Aliases.h:190
typename T::OppositeType OppositeType_t
Alias declaration for nested OppositeType type definitions.
Definition: Aliases.h:310
typename T::ConstIterator ConstIterator_t
Alias declaration for nested ConstIterator type definitions.
Definition: Aliases.h:130
typename T::TransposeType TransposeType_t
Alias declaration for nested TransposeType type definitions.
Definition: Aliases.h:550
Header file for run time assertion macros.
Constraints on the storage order of matrix types.
Constraint on the transpose flag of vector types.
Header file for the EnableIf class template.
Header file for the function trace functionality.
Header file for the HasSIMDMult type trait.
Header file for the If class template.
Header file for the IsComputation type trait class.
Header file for the isDefault shim.
Header file for the IsExpression type trait class.
Header file for the IsPadded type trait.
Header file for the IsRowMajorMatrix type trait.
Header file for the IsSame and IsStrictlySame type traits.
Header file for the IsTemporary type trait class.
Deactivation of problematic macros.
Header file for the MAYBE_UNUSED function template.
Header file for the multiplication trait.
Header file for the prevMultiple shim.
Header file for the RemoveReference type trait.
Constraint on the transpose flag of vector types.
Header file for all SIMD functionality.
Constraint on the data type.
Header file for the ValueIndexPair class.
Constraint on the data type.
Base class for dense matrices.
Definition: DenseMatrix.h:82
Base class for N-dimensional dense vectors.
Definition: DenseVector.h:77
SIMD characteristics of data types.
Definition: SIMDTrait.h:297
Iterator over the elements of the sparse vector-dense vector outer product expression.
Definition: SVecDVecOuterExpr.h:212
std::forward_iterator_tag IteratorCategory
The iterator category.
Definition: SVecDVecOuterExpr.h:224
IteratorCategory iterator_category
The iterator category.
Definition: SVecDVecOuterExpr.h:231
DifferenceType operator-(const ConstIterator &rhs) const
Calculating the number of elements between two expression iterators.
Definition: SVecDVecOuterExpr.h:326
ValueIndexPair< ElementType > Element
Element type of the sparse matrix expression.
Definition: SVecDVecOuterExpr.h:216
RightElement v_
Element of the right-hand side dense vector expression.
Definition: SVecDVecOuterExpr.h:334
bool operator==(const ConstIterator &rhs) const
Equality comparison between two ConstIterator objects.
Definition: SVecDVecOuterExpr.h:304
ConstIterator_t< RemoveReference_t< LeftOperand > > IteratorType
Iterator type of the sparse vector expression.
Definition: SVecDVecOuterExpr.h:219
IteratorType it_
Iterator over the elements of the left-hand side sparse vector expression.
Definition: SVecDVecOuterExpr.h:333
ConstIterator(IteratorType it, RightElement v)
Constructor for the ConstIterator class.
Definition: SVecDVecOuterExpr.h:241
Element ValueType
Type of the underlying pointers.
Definition: SVecDVecOuterExpr.h:225
const Element operator*() const
Direct access to the sparse matrix element at the current iterator position.
Definition: SVecDVecOuterExpr.h:263
bool operator!=(const ConstIterator &rhs) const
Inequality comparison between two ConstIterator objects.
Definition: SVecDVecOuterExpr.h:315
ptrdiff_t DifferenceType
Difference between two iterators.
Definition: SVecDVecOuterExpr.h:228
ET2 RightElement
Element type of the dense vector expression.
Definition: SVecDVecOuterExpr.h:222
ValueType & ReferenceType
Reference return type.
Definition: SVecDVecOuterExpr.h:227
DifferenceType difference_type
Difference between two iterators.
Definition: SVecDVecOuterExpr.h:235
ConstIterator & operator++()
Pre-increment operator.
Definition: SVecDVecOuterExpr.h:252
ValueType * PointerType
Pointer return type.
Definition: SVecDVecOuterExpr.h:226
ReturnType value() const
Access to the current value of the sparse element.
Definition: SVecDVecOuterExpr.h:283
const ConstIterator * operator->() const
Direct access to the sparse matrix element at the current iterator position.
Definition: SVecDVecOuterExpr.h:273
size_t index() const
Access to the current index of the sparse element.
Definition: SVecDVecOuterExpr.h:293
Expression object for sparse vector-dense vector outer products.
Definition: SVecDVecOuterExpr.h:108
CompositeType_t< VT2 > CT2
Composite type of the right-hand side dense vector expression.
Definition: SVecDVecOuterExpr.h:116
ConstIterator end(size_t i) const
Returns an iterator just past the last non-zero element of column i.
Definition: SVecDVecOuterExpr.h:412
ElementType_t< VT2 > ET2
Element type of the right-hand side dense vector expression.
Definition: SVecDVecOuterExpr.h:118
RightOperand rightOperand() const noexcept
Returns the right-hand side dense vector operand.
Definition: SVecDVecOuterExpr.h:513
static constexpr bool returnExpr
Compilation switch for the selection of the subscript operator return type.
Definition: SVecDVecOuterExpr.h:128
SVecDVecOuterExpr(const VT1 &lhs, const VT2 &rhs) noexcept
Constructor for the SVecDVecOuterExpr class.
Definition: SVecDVecOuterExpr.h:355
ConstIterator begin(size_t i) const
Returns an iterator to the first non-zero element of column i.
Definition: SVecDVecOuterExpr.h:401
LeftOperand leftOperand() const noexcept
Returns the left-hand side sparse vector operand.
Definition: SVecDVecOuterExpr.h:503
RightOperand rhs_
Right-hand side dense vector of the multiplication expression.
Definition: SVecDVecOuterExpr.h:545
ElementType_t< VT1 > ET1
Element type of the left-hand side sparse vector expression.
Definition: SVecDVecOuterExpr.h:117
CompositeType_t< VT1 > CT1
Composite type of the left-hand side sparse vector expression.
Definition: SVecDVecOuterExpr.h:115
const If_t< returnExpr, ExprReturnType, ElementType > ReturnType
Return type for expression template evaluations.
Definition: SVecDVecOuterExpr.h:190
ElementType_t< ResultType > ElementType
Resulting element type.
Definition: SVecDVecOuterExpr.h:187
ConstIterator upperBound(size_t i, size_t j) const
Returns an iterator to the first index greater then the given index.
Definition: SVecDVecOuterExpr.h:492
size_t nonZeros(size_t i) const
Returns the number of non-zero elements in the specified column.
Definition: SVecDVecOuterExpr.h:453
If_t< IsComputation_v< VT2 >, const RT2, CT2 > RT
Type for the assignment of the right-hand side dense vector operand.
Definition: SVecDVecOuterExpr.h:205
ResultType_t< VT1 > RT1
Result type of the left-hand side sparse vector expression.
Definition: SVecDVecOuterExpr.h:111
bool isAliased(const T *alias) const noexcept
Returns whether the expression is aliased with the given address alias.
Definition: SVecDVecOuterExpr.h:537
If_t< IsComputation_v< VT1 >, const RT1, CT1 > LT
Type for the assignment of the left-hand side dense vector operand.
Definition: SVecDVecOuterExpr.h:202
static constexpr bool useAssign
Compilation switch for the evaluation strategy of the multiplication expression.
Definition: SVecDVecOuterExpr.h:142
If_t< IsExpression_v< VT1 >, const VT1, const VT1 & > LeftOperand
Composite type of the left-hand side sparse vector expression.
Definition: SVecDVecOuterExpr.h:196
ResultType_t< VT2 > RT2
Result type of the right-hand side dense vector expression.
Definition: SVecDVecOuterExpr.h:112
LeftOperand lhs_
Left-hand side sparse vector of the multiplication expression.
Definition: SVecDVecOuterExpr.h:544
MultTrait_t< RT1, RT2 > ResultType
Result type for expression template evaluations.
Definition: SVecDVecOuterExpr.h:184
bool canAlias(const T *alias) const noexcept
Returns whether the expression can alias with the given address alias.
Definition: SVecDVecOuterExpr.h:525
ReturnType_t< VT1 > RN1
Return type of the left-hand side sparse vector expression.
Definition: SVecDVecOuterExpr.h:113
OppositeType_t< ResultType > OppositeType
Result type with opposite storage order for expression template evaluations.
Definition: SVecDVecOuterExpr.h:185
ReturnType operator()(size_t i, size_t j) const
2D-access to the matrix elements.
Definition: SVecDVecOuterExpr.h:368
size_t nonZeros() const
Returns the number of non-zero elements in the sparse matrix.
Definition: SVecDVecOuterExpr.h:442
ConstIterator find(size_t i, size_t j) const
Searches for a specific matrix element.
Definition: SVecDVecOuterExpr.h:466
ConstIterator lowerBound(size_t i, size_t j) const
Returns an iterator to the first index not less then the given index.
Definition: SVecDVecOuterExpr.h:479
static constexpr size_t SIMDSIZE
The number of elements packed within a single SIMD element.
Definition: SVecDVecOuterExpr.h:346
ReturnType_t< VT2 > RN2
Return type of the right-hand side dense vector expression.
Definition: SVecDVecOuterExpr.h:114
If_t< useAssign, const ResultType, const SVecDVecOuterExpr & > CompositeType
Data type for composite expression templates.
Definition: SVecDVecOuterExpr.h:193
size_t rows() const noexcept
Returns the current number of rows of the matrix.
Definition: SVecDVecOuterExpr.h:422
TransposeType_t< ResultType > TransposeType
Transpose type for expression template evaluations.
Definition: SVecDVecOuterExpr.h:186
static constexpr bool smpAssignable
Compilation switch for the expression template assignment strategy.
Definition: SVecDVecOuterExpr.h:341
decltype(std::declval< RN1 >() *std::declval< RN2 >()) ExprReturnType
Expression return type for the subscript operator.
Definition: SVecDVecOuterExpr.h:131
If_t< IsExpression_v< VT2 >, const VT2, const VT2 & > RightOperand
Composite type of the right-hand side dense vector expression.
Definition: SVecDVecOuterExpr.h:199
ReturnType at(size_t i, size_t j) const
Checked access to the matrix elements.
Definition: SVecDVecOuterExpr.h:384
size_t columns() const noexcept
Returns the current number of columns of the matrix.
Definition: SVecDVecOuterExpr.h:432
Base class for sparse vectors.
Definition: SparseVector.h:72
Index-value-pair for sparse vectors and matrices.
Definition: ValueIndexPair.h:75
Constraint on the data type.
Constraint on the data type.
Constraint on the data type.
Constraint on the data type.
Constraint on the data type.
Header file for the Computation base class.
Header file for the SparseMatrix base class.
Header file for the VecTVecMultExpr base class.
decltype(auto) serial(const DenseMatrix< MT, SO > &dm)
Forces the serial evaluation of the given dense matrix expression dm.
Definition: DMatSerialExpr.h:812
bool isDefault(const DiagonalMatrix< MT, SO, DF > &m)
Returns whether the given diagonal matrix is in default state.
Definition: DiagonalMatrix.h:169
#define BLAZE_CONSTRAINT_MUST_NOT_BE_SYMMETRIC_MATRIX_TYPE(T)
Constraint on the data type.
Definition: Symmetric.h:79
#define BLAZE_CONSTRAINT_MUST_NOT_REQUIRE_EVALUATION(T)
Constraint on the data type.
Definition: RequiresEvaluation.h:81
#define BLAZE_CONSTRAINT_MUST_FORM_VALID_VECTVECMULTEXPR(T1, T2)
Constraint on the data type.
Definition: VecTVecMultExpr.h:103
#define BLAZE_CONSTRAINT_MUST_NOT_BE_ZERO_TYPE(T)
Constraint on the data type.
Definition: Zero.h:81
#define BLAZE_CONSTRAINT_MUST_BE_SPARSE_VECTOR_TYPE(T)
Constraint on the data type.
Definition: SparseVector.h:61
#define BLAZE_CONSTRAINT_MUST_BE_DENSE_VECTOR_TYPE(T)
Constraint on the data type.
Definition: DenseVector.h:61
#define BLAZE_CONSTRAINT_MUST_BE_COLUMN_VECTOR_TYPE(T)
Constraint on the data type.
Definition: ColumnVector.h:61
#define BLAZE_CONSTRAINT_MUST_BE_ROW_VECTOR_TYPE(T)
Constraint on the data type.
Definition: RowVector.h:61
#define BLAZE_CONSTRAINT_MUST_BE_COLUMN_MAJOR_MATRIX_TYPE(T)
Constraint on the data type.
Definition: ColumnMajorMatrix.h:61
#define BLAZE_CONSTRAINT_MUST_BE_ZERO_TYPE(T)
Constraint on the data type.
Definition: Zero.h:61
typename MultTrait< T1, T2 >::Type MultTrait_t
Auxiliary alias declaration for the MultTrait class template.
Definition: MultTrait.h:165
BLAZE_ALWAYS_INLINE constexpr auto prevMultiple(T1 value, T2 factor) noexcept
Rounds down an integral value to the previous multiple of a given factor.
Definition: PrevMultiple.h:68
constexpr void reset(Matrix< MT, SO > &matrix)
Resetting the given matrix.
Definition: Matrix.h:806
#define BLAZE_INTERNAL_ASSERT(expr, msg)
Run time assertion macro for internal checks.
Definition: Assert.h:101
BLAZE_ALWAYS_INLINE const EnableIf_t< IsIntegral_v< T > &&HasSize_v< T, 1UL >, If_t< IsSigned_v< T >, SIMDint8, SIMDuint8 > > set(T value) noexcept
Sets all values in the vector to the given 1-byte integral value.
Definition: Set.h:75
typename EnableIf< Condition, T >::Type EnableIf_t
Auxiliary type for the EnableIf class template.
Definition: EnableIf.h:138
constexpr void MAYBE_UNUSED(const Args &...)
Suppression of unused parameter warnings.
Definition: MaybeUnused.h:81
typename If< Condition >::template Type< T1, T2 > If_t
Auxiliary alias template for the If class template.
Definition: If.h:108
#define BLAZE_THROW_OUT_OF_RANGE(MESSAGE)
Macro for the emission of a std::out_of_range exception.
Definition: Exception.h:331
#define BLAZE_FUNCTION_TRACE
Function trace macro.
Definition: FunctionTrace.h:94
Header file for the exception macros of the math module.
Header file for all forward declarations for expression class templates.
Header file for the Size type trait.
Header file for the reset shim.
Header file for the serial shim.
Base class for all compute expression templates.
Definition: Computation.h:68
Base class for all outer product expression templates.
Definition: VecTVecMultExpr.h:69
System settings for performance optimizations.
Header file for the IsZero type trait.
Header file for basic type definitions.