35#ifndef _BLAZE_MATH_EXPRESSIONS_DVECSVECEQUALEXPR_H_
36#define _BLAZE_MATH_EXPRESSIONS_DVECSVECEQUALEXPR_H_
80inline bool equal(
const DenseVector<VT1,TF1>& lhs,
const SparseVector<VT2,TF2>& rhs )
82 using CT1 = CompositeType_t<VT1>;
83 using CT2 = CompositeType_t<VT2>;
86 if( (*lhs).size() != (*rhs).size() )
return false;
96 for(
auto element=b.begin(); element!=b.end(); ++element, ++i ) {
97 for( ; i<element->index(); ++i ) {
98 if( !isDefault<RF>( a[i] ) )
return false;
100 if( !equal<RF>( element->value(), a[i] ) )
return false;
102 for( ; i<a.size(); ++i ) {
103 if( !isDefault<RF>( a[i] ) )
return false;
131inline bool equal(
const SparseVector<VT1,TF1>& lhs,
const DenseVector<VT2,TF2>& rhs )
133 return equal<RF>( rhs, lhs );
147template<
typename VT1
153 return equal<relaxed>( lhs, rhs );
166template<
typename VT1
172 return equal<relaxed>( rhs, lhs );
185template<
typename VT1
191 return !equal<relaxed>( lhs, rhs );
204template<
typename VT1
210 return !equal<relaxed>( rhs, lhs );
Header file for auxiliary alias declarations.
Header file for the isDefault shim.
Deactivation of problematic macros.
Header file for the relaxation flag enumeration.
Base class for N-dimensional dense vectors.
Definition: DenseVector.h:77
Base class for sparse vectors.
Definition: SparseVector.h:72
Header file for the DenseVector base class.
Header file for the SparseVector base class.
bool operator!=(const SparseVector< VT1, TF1 > &lhs, const DenseVector< VT2, TF2 > &rhs)
Inequality operator for the comparison of a sparse vector and a dense vector.
Definition: DVecSVecEqualExpr.h:208
bool operator==(const SparseVector< VT1, TF1 > &lhs, const DenseVector< VT2, TF2 > &rhs)
Equality operator for the comparison of a sparse vector and a dense vector.
Definition: DVecSVecEqualExpr.h:170
RelaxationFlag
Relaxation flag for strict or relaxed semantics.
Definition: RelaxationFlag.h:66
bool equal(const SharedValue< T1 > &lhs, const SharedValue< T2 > &rhs)
Equality check for a two shared values.
Definition: SharedValue.h:343
Header file for the equal shim.
Header file for basic type definitions.