|
@@ -137,8 +137,9 @@ unsigned* VECT_OP_FUNC(MaxIndexM)( unsigned* dp, const VECT_OP_TYPE* sp, unsign
|
137
|
137
|
/// Return true if s0p[sn] is equal to s1p[sn]
|
138
|
138
|
bool VECT_OP_FUNC(IsEqual)( const VECT_OP_TYPE* s0p, const VECT_OP_TYPE* s1p, unsigned sn );
|
139
|
139
|
|
140
|
|
-/// Return true if all elements of s0p[sn] are within 'pct' percent of s1p[sn].
|
141
|
|
-bool VECT_OP_FUNC(IsClose)( const VECT_OP_TYPE* s0p, const VECT_OP_TYPE* s1p, unsigned sn, double pct );
|
|
140
|
+/// Return true if all elements of s0p[sn] are within 'eps' of s1p[sn].
|
|
141
|
+/// This function is based on cmMath.h:cmIsCloseX()
|
|
142
|
+bool VECT_OP_FUNC(IsClose)( const VECT_OP_TYPE* s0p, const VECT_OP_TYPE* s1p, unsigned sn, double eps );
|
142
|
143
|
|
143
|
144
|
/// Return the most frequently occuring element in sp.
|
144
|
145
|
VECT_OP_TYPE VECT_OP_FUNC(Mode)( const VECT_OP_TYPE* sp, unsigned sn );
|