35 #ifndef _BLAZE_MATH_SMP_DEFAULT_SPARSEVECTOR_H_ 36 #define _BLAZE_MATH_SMP_DEFAULT_SPARSEVECTOR_H_ 61 template<
typename VT1,
bool TF1,
typename VT2,
bool TF2 >
62 auto smpAssign( Vector<VT1,TF1>& lhs,
const Vector<VT2,TF2>& rhs )
63 -> EnableIf_t< IsSparseVector_v<VT1> >;
65 template<
typename VT1,
bool TF1,
typename VT2,
bool TF2 >
66 auto smpAddAssign( Vector<VT1,TF1>& lhs,
const Vector<VT2,TF2>& rhs )
67 -> EnableIf_t< IsSparseVector_v<VT1> >;
69 template<
typename VT1,
bool TF1,
typename VT2,
bool TF2 >
70 auto smpSubAssign( Vector<VT1,TF1>& lhs,
const Vector<VT2,TF2>& rhs )
71 -> EnableIf_t< IsSparseVector_v<VT1> >;
73 template<
typename VT1,
bool TF1,
typename VT2,
bool TF2 >
74 auto smpMultAssign( Vector<VT1,TF1>& lhs,
const Vector<VT2,TF2>& rhs )
75 -> EnableIf_t< IsSparseVector_v<VT1> >;
94 template<
typename VT1
98 inline auto smpAssign( Vector<VT1,TF1>& lhs,
const Vector<VT2,TF2>& rhs )
99 -> EnableIf_t< IsSparseVector_v<VT1> >
104 assign( ~lhs, ~rhs );
123 template<
typename VT1
127 inline auto smpAddAssign( Vector<VT1,TF1>& lhs,
const Vector<VT2,TF2>& rhs )
128 -> EnableIf_t< IsSparseVector_v<VT1> >
133 addAssign( ~lhs, ~rhs );
153 template<
typename VT1
157 inline auto smpSubAssign( Vector<VT1,TF1>& lhs,
const Vector<VT2,TF2>& rhs )
158 -> EnableIf_t< IsSparseVector_v<VT1> >
163 subAssign( ~lhs, ~rhs );
183 template<
typename VT1
187 inline auto smpMultAssign( Vector<VT1,TF1>& lhs,
const Vector<VT2,TF2>& rhs )
188 -> EnableIf_t< IsSparseVector_v<VT1> >
193 multAssign( ~lhs, ~rhs );
Namespace of the Blaze C++ math library.
Definition: Blaze.h:58
Header file for the EnableIf class template.
Header file for the IsSparseVector type trait.
Header file for run time assertion macros.
auto smpAddAssign(Matrix< MT1, SO1 > &lhs, const Matrix< MT2, SO2 > &rhs) -> EnableIf_t< IsDenseMatrix_v< MT1 > >
Default implementation of the SMP addition assignment of a matrix to a dense matrix.
Definition: DenseMatrix.h:131
#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
constexpr size_t size(const Matrix< MT, SO > &matrix) noexcept
Returns the total number of elements of the matrix.
Definition: Matrix.h:530
auto smpAssign(Matrix< MT1, SO1 > &lhs, const Matrix< MT2, SO2 > &rhs) -> EnableIf_t< IsDenseMatrix_v< MT1 > >
Default implementation of the SMP assignment of a matrix to a dense matrix.
Definition: DenseMatrix.h:100
auto smpSubAssign(Matrix< MT1, SO1 > &lhs, const Matrix< MT2, SO2 > &rhs) -> EnableIf_t< IsDenseMatrix_v< MT1 > >
Default implementation of the SMP subtraction assignment of a matrix to dense matrix.
Definition: DenseMatrix.h:162
Header file for the Vector CRTP base class.
#define BLAZE_INTERNAL_ASSERT(expr, msg)
Run time assertion macro for internal checks.In case of an invalid run time expression,...
Definition: Assert.h:101
auto smpMultAssign(Vector< VT1, TF1 > &lhs, const Vector< VT2, TF2 > &rhs) -> EnableIf_t< IsDenseVector_v< VT1 > >
Default implementation of the SMP multiplication assignment of a vector to a dense vector.
Definition: DenseVector.h:191
Header file for the function trace functionality.