Home
last modified time | relevance | path

Searched refs:numerator (Results 1 – 25 of 267) sorted by relevance

1234567891011

/third_party/icu/vendor/double-conversion/upstream/double-conversion/
Dbignum-dtoa.cc57 Bignum* numerator,
68 Bignum* numerator, Bignum* denominator,
72 static void GenerateShortestDigits(Bignum* numerator, Bignum* denominator,
78 Bignum* numerator, Bignum* denominator,
85 Bignum* numerator, Bignum* denominator,
129 Bignum numerator; in BignumDtoa() local
140 &numerator, &denominator, in BignumDtoa()
144 &numerator, &denominator, in BignumDtoa()
151 GenerateShortestDigits(&numerator, &denominator, in BignumDtoa()
157 &numerator, &denominator, in BignumDtoa()
[all …]
/third_party/flutter/skia/third_party/externals/icu/source/i18n/
Ddouble-conversion-bignum-dtoa.cpp71 Bignum* numerator,
82 Bignum* numerator, Bignum* denominator,
86 static void GenerateShortestDigits(Bignum* numerator, Bignum* denominator,
92 Bignum* numerator, Bignum* denominator,
99 Bignum* numerator, Bignum* denominator,
143 Bignum numerator; in BignumDtoa() local
154 &numerator, &denominator, in BignumDtoa()
158 &numerator, &denominator, in BignumDtoa()
165 GenerateShortestDigits(&numerator, &denominator, in BignumDtoa()
171 &numerator, &denominator, in BignumDtoa()
[all …]
Dgregoimp.cpp25 int32_t ClockMath::floorDivide(int32_t numerator, int32_t denominator) { in floorDivide() argument
26 return (numerator >= 0) ? in floorDivide()
27 numerator / denominator : ((numerator + 1) / denominator) - 1; in floorDivide()
30 int64_t ClockMath::floorDivide(int64_t numerator, int64_t denominator) { in floorDivide() argument
31 return (numerator >= 0) ? in floorDivide()
32 numerator / denominator : ((numerator + 1) / denominator) - 1; in floorDivide()
35 int32_t ClockMath::floorDivide(double numerator, int32_t denominator, in floorDivide() argument
38 quotient = uprv_floor(numerator / denominator); in floorDivide()
39 remainder = (int32_t) (numerator - (quotient * denominator)); in floorDivide()
Dgregoimp.h41 static int32_t floorDivide(int32_t numerator, int32_t denominator);
52 static int64_t floorDivide(int64_t numerator, int64_t denominator);
63 static inline double floorDivide(double numerator, double denominator);
80 static int32_t floorDivide(double numerator, int32_t denominator,
267 inline double ClockMath::floorDivide(double numerator, double denominator) { in floorDivide() argument
268 return uprv_floor(numerator / denominator); in floorDivide()
/third_party/skia/third_party/externals/icu/source/i18n/
Ddouble-conversion-bignum-dtoa.cpp71 Bignum* numerator,
82 Bignum* numerator, Bignum* denominator,
86 static void GenerateShortestDigits(Bignum* numerator, Bignum* denominator,
92 Bignum* numerator, Bignum* denominator,
99 Bignum* numerator, Bignum* denominator,
143 Bignum numerator; in BignumDtoa() local
154 &numerator, &denominator, in BignumDtoa()
158 &numerator, &denominator, in BignumDtoa()
165 GenerateShortestDigits(&numerator, &denominator, in BignumDtoa()
171 &numerator, &denominator, in BignumDtoa()
[all …]
Dgregoimp.cpp25 int32_t ClockMath::floorDivide(int32_t numerator, int32_t denominator) { in floorDivide() argument
26 return (numerator >= 0) ? in floorDivide()
27 numerator / denominator : ((numerator + 1) / denominator) - 1; in floorDivide()
30 int64_t ClockMath::floorDivide(int64_t numerator, int64_t denominator) { in floorDivide() argument
31 return (numerator >= 0) ? in floorDivide()
32 numerator / denominator : ((numerator + 1) / denominator) - 1; in floorDivide()
35 int32_t ClockMath::floorDivide(double numerator, int32_t denominator, in floorDivide() argument
38 quotient = uprv_floor(numerator / denominator); in floorDivide()
39 remainder = (int32_t) (numerator - (quotient * denominator)); in floorDivide()
Dgregoimp.h41 static int32_t floorDivide(int32_t numerator, int32_t denominator);
52 static int64_t floorDivide(int64_t numerator, int64_t denominator);
63 static inline double floorDivide(double numerator, double denominator);
80 static int32_t floorDivide(double numerator, int32_t denominator,
267 inline double ClockMath::floorDivide(double numerator, double denominator) { in floorDivide() argument
268 return uprv_floor(numerator / denominator); in floorDivide()
/third_party/icu/icu4c/source/i18n/
Ddouble-conversion-bignum-dtoa.cpp71 Bignum* numerator,
82 Bignum* numerator, Bignum* denominator,
86 static void GenerateShortestDigits(Bignum* numerator, Bignum* denominator,
92 Bignum* numerator, Bignum* denominator,
99 Bignum* numerator, Bignum* denominator,
143 Bignum numerator; in BignumDtoa() local
154 &numerator, &denominator, in BignumDtoa()
158 &numerator, &denominator, in BignumDtoa()
165 GenerateShortestDigits(&numerator, &denominator, in BignumDtoa()
171 &numerator, &denominator, in BignumDtoa()
[all …]
Dgregoimp.cpp25 int32_t ClockMath::floorDivide(int32_t numerator, int32_t denominator) { in floorDivide() argument
26 return (numerator >= 0) ? in floorDivide()
27 numerator / denominator : ((numerator + 1) / denominator) - 1; in floorDivide()
30 int64_t ClockMath::floorDivide(int64_t numerator, int64_t denominator) { in floorDivide() argument
31 return (numerator >= 0) ? in floorDivide()
32 numerator / denominator : ((numerator + 1) / denominator) - 1; in floorDivide()
35 int32_t ClockMath::floorDivide(double numerator, int32_t denominator, in floorDivide() argument
38 quotient = uprv_floor(numerator / denominator); in floorDivide()
39 remainder = (int32_t) (numerator - (quotient * denominator)); in floorDivide()
Dgregoimp.h41 static int32_t floorDivide(int32_t numerator, int32_t denominator);
52 static int64_t floorDivide(int64_t numerator, int64_t denominator);
63 static inline double floorDivide(double numerator, double denominator);
80 static int32_t floorDivide(double numerator, int32_t denominator,
267 inline double ClockMath::floorDivide(double numerator, double denominator) { in floorDivide() argument
268 return uprv_floor(numerator / denominator); in floorDivide()
/third_party/node/deps/icu-small/source/i18n/
Ddouble-conversion-bignum-dtoa.cpp71 Bignum* numerator,
82 Bignum* numerator, Bignum* denominator,
86 static void GenerateShortestDigits(Bignum* numerator, Bignum* denominator,
92 Bignum* numerator, Bignum* denominator,
99 Bignum* numerator, Bignum* denominator,
143 Bignum numerator; in BignumDtoa() local
154 &numerator, &denominator, in BignumDtoa()
158 &numerator, &denominator, in BignumDtoa()
165 GenerateShortestDigits(&numerator, &denominator, in BignumDtoa()
171 &numerator, &denominator, in BignumDtoa()
[all …]
Dgregoimp.cpp25 int32_t ClockMath::floorDivide(int32_t numerator, int32_t denominator) { in floorDivide() argument
26 return (numerator >= 0) ? in floorDivide()
27 numerator / denominator : ((numerator + 1) / denominator) - 1; in floorDivide()
30 int64_t ClockMath::floorDivide(int64_t numerator, int64_t denominator) { in floorDivide() argument
31 return (numerator >= 0) ? in floorDivide()
32 numerator / denominator : ((numerator + 1) / denominator) - 1; in floorDivide()
35 int32_t ClockMath::floorDivide(double numerator, int32_t denominator, in floorDivide() argument
38 quotient = uprv_floor(numerator / denominator); in floorDivide()
39 remainder = (int32_t) (numerator - (quotient * denominator)); in floorDivide()
Dgregoimp.h41 static int32_t floorDivide(int32_t numerator, int32_t denominator);
52 static int64_t floorDivide(int64_t numerator, int64_t denominator);
63 static inline double floorDivide(double numerator, double denominator);
80 static int32_t floorDivide(double numerator, int32_t denominator,
267 inline double ClockMath::floorDivide(double numerator, double denominator) { in floorDivide() argument
268 return uprv_floor(numerator / denominator); in floorDivide()
/third_party/python/Lib/
Dfractions.py62 def __new__(cls, numerator=0, denominator=None, *, _normalize=True): argument
96 if type(numerator) is int:
97 self._numerator = numerator
101 elif isinstance(numerator, numbers.Rational):
102 self._numerator = numerator.numerator
103 self._denominator = numerator.denominator
106 elif isinstance(numerator, (float, Decimal)):
108 self._numerator, self._denominator = numerator.as_integer_ratio()
111 elif isinstance(numerator, str):
113 m = _RATIONAL_FORMAT.match(numerator)
[all …]
/third_party/boost/libs/rational/test/
Drational_test.cpp510 BOOST_CHECK_EQUAL( r1.numerator(), static_cast<T>( 0) ); in BOOST_FIXTURE_TEST_SUITE()
511 BOOST_CHECK_EQUAL( r2.numerator(), static_cast<T>( 0) ); in BOOST_FIXTURE_TEST_SUITE()
512 BOOST_CHECK_EQUAL( r3.numerator(), static_cast<T>( 1) ); in BOOST_FIXTURE_TEST_SUITE()
513 BOOST_CHECK_EQUAL( r4.numerator(), static_cast<T>(-3) ); in BOOST_FIXTURE_TEST_SUITE()
514 BOOST_CHECK_EQUAL( r5.numerator(), static_cast<T>( 7) ); in BOOST_FIXTURE_TEST_SUITE()
515 BOOST_CHECK_EQUAL( r6.numerator(), static_cast<T>( 1) ); in BOOST_FIXTURE_TEST_SUITE()
516 BOOST_CHECK_EQUAL( r7.numerator(), static_cast<T>(-2) ); in BOOST_FIXTURE_TEST_SUITE()
517 BOOST_CHECK_EQUAL( r8.numerator(), static_cast<T>(-2) ); in BOOST_FIXTURE_TEST_SUITE()
518 BOOST_CHECK_EQUAL( r9.numerator(), static_cast<T>( 1) ); in BOOST_FIXTURE_TEST_SUITE()
542 BOOST_CHECK_EQUAL( r.numerator(), static_cast<T>(3) ); in BOOST_AUTO_TEST_CASE_TEMPLATE()
[all …]
Dconstexpr_test.cpp19 static_assert(i1.numerator() == 0, "constexpr test"); in main()
21 static_assert(i2.numerator() == 3, "constexpr test"); in main()
23 static_assert(i3.numerator() == 3, "constexpr test"); in main()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/
DGrego.java185 public static long floorDivide(long numerator, long denominator) { in floorDivide() argument
188 return (numerator >= 0) ? in floorDivide()
189 numerator / denominator : in floorDivide()
190 ((numerator + 1) / denominator) - 1; in floorDivide()
193 private static long floorDivide(long numerator, long denominator, long[] remainder) { in floorDivide() argument
194 if (numerator >= 0) { in floorDivide()
195 remainder[0] = numerator % denominator; in floorDivide()
196 return numerator / denominator; in floorDivide()
198 long quotient = ((numerator + 1) / denominator) - 1; in floorDivide()
199 remainder[0] = numerator - (quotient * denominator); in floorDivide()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DGrego.java183 public static long floorDivide(long numerator, long denominator) { in floorDivide() argument
186 return (numerator >= 0) ? in floorDivide()
187 numerator / denominator : in floorDivide()
188 ((numerator + 1) / denominator) - 1; in floorDivide()
191 private static long floorDivide(long numerator, long denominator, long[] remainder) { in floorDivide() argument
192 if (numerator >= 0) { in floorDivide()
193 remainder[0] = numerator % denominator; in floorDivide()
194 return numerator / denominator; in floorDivide()
196 long quotient = ((numerator + 1) / denominator) - 1; in floorDivide()
197 remainder[0] = numerator - (quotient * denominator); in floorDivide()
/third_party/boost/boost/math/statistics/
Dsignal_statistics.hpp135 double numerator = 0; in oracle_snr() local
139 numerator += signal[i]*signal[i]; in oracle_snr()
142 if (numerator == 0 && denominator == 0) in oracle_snr()
150 return numerator/denominator; in oracle_snr()
156 typename Real::value_type numerator = 0; in oracle_snr() local
160 numerator += norm(signal[i]); in oracle_snr()
163 if (numerator == 0 && denominator == 0) in oracle_snr()
172 return numerator/denominator; in oracle_snr()
176 Real numerator = 0; in oracle_snr() local
180 numerator += signal[i]*signal[i]; in oracle_snr()
[all …]
/third_party/boost/boost/math/tools/
Dsignal_statistics.hpp137 double numerator = 0; in oracle_snr() local
141 numerator += signal[i]*signal[i]; in oracle_snr()
144 if (numerator == 0 && denominator == 0) in oracle_snr()
152 return numerator/denominator; in oracle_snr()
158 typename Real::value_type numerator = 0; in oracle_snr() local
162 numerator += norm(signal[i]); in oracle_snr()
165 if (numerator == 0 && denominator == 0) in oracle_snr()
174 return numerator/denominator; in oracle_snr()
178 Real numerator = 0; in oracle_snr() local
182 numerator += signal[i]*signal[i]; in oracle_snr()
[all …]
/third_party/boost/boost/geometry/policies/robustness/
Dsegment_ratio.hpp43 return boost::rational<Type>(lhs.numerator(), lhs.denominator()) in apply()
44 < boost::rational<Type>(rhs.numerator(), rhs.denominator()); in apply()
56 Type const a = lhs.numerator() / lhs.denominator(); in apply()
57 Type const b = rhs.numerator() / rhs.denominator(); in apply()
76 return boost::rational<Type>(lhs.numerator(), lhs.denominator()) in apply()
77 == boost::rational<Type>(rhs.numerator(), rhs.denominator()); in apply()
89 Type const a = lhs.numerator() / lhs.denominator(); in apply()
90 Type const b = rhs.numerator() / rhs.denominator(); in apply()
126 inline Type const& numerator() const { return m_numerator; } in numerator() function in boost::geometry::segment_ratio
/third_party/cmsis/CMSIS/DSP/Source/FastMathFunctions/
Darm_divide_q15.c60 arm_status arm_divide_q15(q15_t numerator, in arm_divide_q15() argument
71 sign = (numerator>>15) ^ (denominator>>15); in arm_divide_q15()
86 numerator = abs(numerator); in arm_divide_q15()
89 temp = ((q31_t)numerator << 15) / ((q31_t)denominator); in arm_divide_q15()
/third_party/boost/boost/random/
Duniform_real_distribution.hpp40 result_type numerator = static_cast<T>(eng() - (eng.min)()); in generate_uniform_real() local
43 BOOST_ASSERT(numerator >= 0 && numerator <= divisor); in generate_uniform_real()
44 T result = numerator / divisor * (max_value - min_value) + min_value; in generate_uniform_real()
57 result_type numerator = static_cast<T>(subtract<base_result>()(eng(), (eng.min)())); in generate_uniform_real() local
60 BOOST_ASSERT(numerator >= 0 && numerator <= divisor); in generate_uniform_real()
61 T result = numerator / divisor * (max_value - min_value) + min_value; in generate_uniform_real()
/third_party/mindspore/mindspore/nn/metrics/
Dconfusion_matrix.py505 numerator = np.sqrt(tpr * (1.0 - tnr)) + tnr - 1.0
508 return numerator, denominator
525 numerator, denominator = (tpr + tnr), 2.0
527 return numerator, denominator
537 numerator = tp * tn - fp * fn
540 return numerator, denominator
547 numerator = np.sqrt(ppv * tpr)
550 return numerator, denominator
557 numerator = tpr + tnr - 1.0
560 return numerator, denominator
[all …]
/third_party/boost/libs/ratio/test/ratio_arithmetic/
Dratio_add_2_fail.cpp18 struct numerator;
21 struct numerator<boost::ratio<N,D> > { struct
27 numerator<boost::ratio_add<boost::ratio<1,2>,boost::ratio<1,3> > >::value == 1) argument

1234567891011