HomeSort by relevance Sort by last modified time
    Searched refs:ApproxEqual (Results 1 - 18 of 18) sorted by null

  /external/openfst/src/test/
weight-tester.h 62 // 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(p, Times(d, w1)))
    [all...]
algo_test.h 629 CHECK(ApproxEqual(w, w1, kTestDelta));
633 CHECK(ApproxEqual(w, w2, kTestDelta));
782 CHECK(ApproxEqual(tsum, psum, kTestDelta));
805 CHECK(ApproxEqual(nsum, dsum, kTestDelta));
    [all...]
  /external/openfst/src/include/fst/
equal.h 58 if (!ApproxEqual(final1, final2, delta)) {
89 } else if (!ApproxEqual(arc1.weight, arc2.weight, delta)) {
pair-weight.h 226 inline bool ApproxEqual(const PairWeight<W1, W2> &w1,
229 return ApproxEqual(w1.Value1(), w2.Value1(), delta) &&
230 ApproxEqual(w1.Value2(), w2.Value2(), delta);
randequivalent.h 101 if (!ApproxEqual(sum1, sum2, delta)) {
sparse-power-weight.h 65 return ApproxEqual(v1, v2, delta_) ? W::One() : W::Zero();
192 inline bool ApproxEqual(const SparsePowerWeight<W, K> &w1,
tuple-weight.h 264 inline bool ApproxEqual(const TupleWeight<W, n> &w1,
270 ApproxEqual(w1.Value(i), w2.Value(i), delta);
signed-log-weight.h 189 inline bool ApproxEqual(const SignedLogWeightTpl<T> &w1,
195 return ApproxEqual(w1.Value2(), w2.Value2(), delta);
shortest-path.h 229 // 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_);
shortest-distance.h 201 if (!ApproxEqual(nd, Plus(nd, w), delta_)) {
float-weight.h 146 inline bool ApproxEqual(const FloatWeightTpl<T> &w1,
string-weight.h 318 inline bool ApproxEqual(const StringWeight<L, S> &w1,
  /external/srec/tools/thirdparty/OpenFst/fst/lib/
equal.h 55 if (!ApproxEqual(final1, final2)) {
86 } else if (!ApproxEqual(arc1.weight, arc2.weight)) {
shortest-path.h 184 // 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_);
float-weight.h 80 inline bool ApproxEqual(const FloatWeight &w1, const FloatWeight &w2,
product-weight.h 118 inline bool ApproxEqual(const ProductWeight<W1, W2> &w1,
shortest-distance.h 165 if (!ApproxEqual(nd, Plus(nd, w), delta_)) {
string-weight.h 310 inline bool ApproxEqual(const StringWeight<L, S> &w1,

Completed in 74 milliseconds