Searched refs:ApproxEqual (Results 1 - 18 of 18) sorted by relevance

/external/openfst/src/test/
H A Dweight-tester.h62 // Note in the tests below we use ApproxEqual rather than == and add
72 CHECK(ApproxEqual(Plus(w1, Plus(w2, w3)), Plus(Plus(w1, w2), w3)));
73 CHECK(ApproxEqual(Times(w1, Times(w2, w3)), Times(Times(w1, w2), w3)));
89 CHECK(ApproxEqual(Plus(w1, w2), Plus(w2, w1)));
91 CHECK(ApproxEqual(Times(w1, w2), Times(w2, w1)));
108 CHECK(ApproxEqual(Times(w1, Plus(w2, w3)),
111 CHECK(ApproxEqual(Times(Plus(w1, w2), w3),
135 CHECK(ApproxEqual(p, Times(w1, d)));
143 CHECK(ApproxEqual(p, Times(d, w2)));
151 CHECK(ApproxEqual(
[all...]
H A Dalgo_test.h629 CHECK(ApproxEqual(w, w1, kTestDelta));
633 CHECK(ApproxEqual(w, w2, kTestDelta));
782 CHECK(ApproxEqual(tsum, psum, kTestDelta));
805 CHECK(ApproxEqual(nsum, dsum, kTestDelta));
/external/openfst/src/include/fst/
H A Dequal.h58 if (!ApproxEqual(final1, final2, delta)) {
89 } else if (!ApproxEqual(arc1.weight, arc2.weight, delta)) {
H A Dpair-weight.h226 inline bool ApproxEqual(const PairWeight<W1, W2> &w1, function in namespace:fst
229 return ApproxEqual(w1.Value1(), w2.Value1(), delta) &&
230 ApproxEqual(w1.Value2(), w2.Value2(), delta);
H A Drandequivalent.h101 if (!ApproxEqual(sum1, sum2, delta)) {
H A Dsparse-power-weight.h65 return ApproxEqual(v1, v2, delta_) ? W::One() : W::Zero();
192 inline bool ApproxEqual(const SparsePowerWeight<W, K> &w1, function in namespace:fst
H A Dtuple-weight.h264 inline bool ApproxEqual(const TupleWeight<W, n> &w1, function in namespace:fst
270 ApproxEqual(w1.Value(i), w2.Value(i), delta);
H A Dsigned-log-weight.h189 inline bool ApproxEqual(const SignedLogWeightTpl<T> &w1, function in namespace:fst
195 return ApproxEqual(w1.Value2(), w2.Value2(), delta);
H A Dshortest-path.h229 // This forms a strict weak order so long as ApproxEqual(a, b) =>
230 // ApproxEqual(a, c) for all c s.t. less_(a, c) && less_(c, b).
232 return less_(wy, wx) || ApproxEqual(wx, wy, delta_);
234 return less_(wy, wx) && !ApproxEqual(wx, wy, delta_);
H A Dshortest-distance.h202 if (!ApproxEqual(nd, Plus(nd, w), delta_)) {
H A Dfloat-weight.h149 inline bool ApproxEqual(const FloatWeightTpl<T> &w1, function in namespace:fst
H A Dstring-weight.h318 inline bool ApproxEqual(const StringWeight<L, S> &w1, function in namespace:fst
/external/srec/tools/thirdparty/OpenFst/fst/lib/
H A Dequal.h55 if (!ApproxEqual(final1, final2)) {
86 } else if (!ApproxEqual(arc1.weight, arc2.weight)) {
H A Dshortest-path.h184 // This forms a strict weak order so long as ApproxEqual(a, b) =>
185 // ApproxEqual(a, c) for all c s.t. less_(a, c) && less_(c, b).
187 return less_(wy, wx) || ApproxEqual(wx, wy, delta_);
189 return less_(wy, wx) && !ApproxEqual(wx, wy, delta_);
H A Dfloat-weight.h80 inline bool ApproxEqual(const FloatWeight &w1, const FloatWeight &w2, function in namespace:fst
H A Dproduct-weight.h118 inline bool ApproxEqual(const ProductWeight<W1, W2> &w1, function in namespace:fst
H A Dshortest-distance.h165 if (!ApproxEqual(nd, Plus(nd, w), delta_)) {
H A Dstring-weight.h310 inline bool ApproxEqual(const StringWeight<L, S> &w1, function in namespace:fst

Completed in 468 milliseconds