10 #ifndef MCL_EQUALITYOP_H
11 #define MCL_EQUALITYOP_H
14 #define VERY_SMALL (0.0001f)
35 const std::vector<Real>& vector_b);
38 bool IsEqual(
const std::vector<T>& vector_a,
const std::vector<T>& vector_b,
40 if ((
Int)vector_a.size() != (
Int)vector_b.size())
43 for (
Int i=0; i<(
Int)(
Int)vector_a.size(); ++i) {
44 if (!
IsEqual(vector_a[i], vector_b[i], precision))
51 bool IsEqual(
const std::vector<Int>& vector_a,
const std::vector<Int>& vector_b);
53 bool IsEqual(
const Quaternion& quaternion_a,
const Quaternion& quaternion_b);
60 bool IsEqual(std::vector<Point> points_a, std::vector<Point> points_b);
65 bool IsEqual(
const Real* input_data_a,
const std::vector<Real> input_data_b,
68 bool IsEqual(
const std::vector<Real> input_data_b,
const Real* input_data_a,
75 std::vector<bool>
IsNan(std::vector<Real> input);
78 std::vector<bool>
Not(std::vector<bool> input);
81 bool All(std::vector<bool> input);
84 bool Any(std::vector<bool> input);
87 bool None(std::vector<bool> input);
93 std::vector<bool>
IsInf(std::vector<Real> input);