Home
last modified time | relevance | path

Searched refs:denominator (Results 1 – 25 of 268) sorted by relevance

1234567891011

/third_party/icu/vendor/double-conversion/upstream/double-conversion/
Dbignum-dtoa.cc58 Bignum* denominator,
68 Bignum* numerator, Bignum* denominator,
72 static void GenerateShortestDigits(Bignum* numerator, Bignum* denominator,
78 Bignum* numerator, Bignum* denominator,
85 Bignum* numerator, Bignum* denominator,
130 Bignum denominator; 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.cpp72 Bignum* denominator,
82 Bignum* numerator, Bignum* denominator,
86 static void GenerateShortestDigits(Bignum* numerator, Bignum* denominator,
92 Bignum* numerator, Bignum* denominator,
99 Bignum* numerator, Bignum* denominator,
144 Bignum denominator; 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
27 numerator / denominator : ((numerator + 1) / denominator) - 1; in floorDivide()
30 int64_t ClockMath::floorDivide(int64_t numerator, int64_t denominator) { in floorDivide() argument
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.cpp72 Bignum* denominator,
82 Bignum* numerator, Bignum* denominator,
86 static void GenerateShortestDigits(Bignum* numerator, Bignum* denominator,
92 Bignum* numerator, Bignum* denominator,
99 Bignum* numerator, Bignum* denominator,
144 Bignum denominator; 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
27 numerator / denominator : ((numerator + 1) / denominator) - 1; in floorDivide()
30 int64_t ClockMath::floorDivide(int64_t numerator, int64_t denominator) { in floorDivide() argument
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.cpp72 Bignum* denominator,
82 Bignum* numerator, Bignum* denominator,
86 static void GenerateShortestDigits(Bignum* numerator, Bignum* denominator,
92 Bignum* numerator, Bignum* denominator,
99 Bignum* numerator, Bignum* denominator,
144 Bignum denominator; 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
27 numerator / denominator : ((numerator + 1) / denominator) - 1; in floorDivide()
30 int64_t ClockMath::floorDivide(int64_t numerator, int64_t denominator) { in floorDivide() argument
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()
/third_party/node/deps/icu-small/source/i18n/
Ddouble-conversion-bignum-dtoa.cpp72 Bignum* denominator,
82 Bignum* numerator, Bignum* denominator,
86 static void GenerateShortestDigits(Bignum* numerator, Bignum* denominator,
92 Bignum* numerator, Bignum* denominator,
99 Bignum* numerator, Bignum* denominator,
144 Bignum denominator; 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
27 numerator / denominator : ((numerator + 1) / denominator) - 1; in floorDivide()
30 int64_t ClockMath::floorDivide(int64_t numerator, int64_t denominator) { in floorDivide() argument
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
95 if denominator is None:
103 self._denominator = numerator.denominator
120 denominator = int(denom)
122 denominator = 1
127 denominator *= scale
134 denominator *= 10**-exp
142 elif type(numerator) is int is type(denominator):
146 isinstance(denominator, numbers.Rational)):
147 numerator, denominator = (
[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()
54 BOOST_GEOMETRY_ASSERT(lhs.denominator() != 0); in apply()
55 BOOST_GEOMETRY_ASSERT(rhs.denominator() != 0); 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()
87 BOOST_GEOMETRY_ASSERT(lhs.denominator() != 0); in apply()
88 BOOST_GEOMETRY_ASSERT(rhs.denominator() != 0); in apply()
[all …]
/third_party/boost/libs/rational/test/
Drational_test.cpp520 BOOST_CHECK_EQUAL( r1.denominator(), static_cast<T>(1) ); in BOOST_FIXTURE_TEST_SUITE()
521 BOOST_CHECK_EQUAL( r2.denominator(), static_cast<T>(1) ); in BOOST_FIXTURE_TEST_SUITE()
522 BOOST_CHECK_EQUAL( r3.denominator(), static_cast<T>(1) ); in BOOST_FIXTURE_TEST_SUITE()
523 BOOST_CHECK_EQUAL( r4.denominator(), static_cast<T>(1) ); in BOOST_FIXTURE_TEST_SUITE()
524 BOOST_CHECK_EQUAL( r5.denominator(), static_cast<T>(2) ); in BOOST_FIXTURE_TEST_SUITE()
525 BOOST_CHECK_EQUAL( r6.denominator(), static_cast<T>(3) ); in BOOST_FIXTURE_TEST_SUITE()
526 BOOST_CHECK_EQUAL( r7.denominator(), static_cast<T>(3) ); in BOOST_FIXTURE_TEST_SUITE()
527 BOOST_CHECK_EQUAL( r8.denominator(), static_cast<T>(3) ); in BOOST_FIXTURE_TEST_SUITE()
528 BOOST_CHECK_EQUAL( r9.denominator(), static_cast<T>(5) ); in BOOST_FIXTURE_TEST_SUITE()
543 BOOST_CHECK_EQUAL( r.denominator(), static_cast<T>(4) ); in BOOST_AUTO_TEST_CASE_TEMPLATE()
[all …]
/third_party/boost/boost/math/statistics/
Dsignal_statistics.hpp136 double denominator = 0; in oracle_snr() local
140 denominator += (noisy_signal[i] - signal[i])*(noisy_signal[i] - signal[i]); in oracle_snr()
142 if (numerator == 0 && denominator == 0) in oracle_snr()
146 if (denominator == 0) in oracle_snr()
150 return numerator/denominator; in oracle_snr()
157 typename Real::value_type denominator = 0; in oracle_snr() local
161 denominator += norm(noisy_signal[i] - signal[i]); in oracle_snr()
163 if (numerator == 0 && denominator == 0) in oracle_snr()
167 if (denominator == 0) in oracle_snr()
172 return numerator/denominator; in oracle_snr()
[all …]
/third_party/boost/boost/math/tools/
Dsignal_statistics.hpp138 double denominator = 0; in oracle_snr() local
142 denominator += (noisy_signal[i] - signal[i])*(noisy_signal[i] - signal[i]); in oracle_snr()
144 if (numerator == 0 && denominator == 0) in oracle_snr()
148 if (denominator == 0) in oracle_snr()
152 return numerator/denominator; in oracle_snr()
159 typename Real::value_type denominator = 0; in oracle_snr() local
163 denominator += norm(noisy_signal[i] - signal[i]); in oracle_snr()
165 if (numerator == 0 && denominator == 0) in oracle_snr()
169 if (denominator == 0) in oracle_snr()
174 return numerator/denominator; in oracle_snr()
[all …]
/third_party/cmsis/CMSIS/DSP/Source/FastMathFunctions/
Darm_divide_q15.c61 q15_t denominator, in arm_divide_q15() argument
71 sign = (numerator>>15) ^ (denominator>>15); in arm_divide_q15()
73 if (denominator == 0) in arm_divide_q15()
87 denominator = abs(denominator); in arm_divide_q15()
89 temp = ((q31_t)numerator << 15) / ((q31_t)denominator); in arm_divide_q15()
/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
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
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
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
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/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/
Dl2_normalize_cpu_kernel.cc77 T denominator = (T)0.0; in CalcDenominator() local
81 denominator = input_addr[iter.GetPos()]; in CalcDenominator()
82 denominator = denominator * denominator; in CalcDenominator()
86 denominator += temp * temp; in CalcDenominator()
89 denominator = (denominator > epsilon_) ? denominator : epsilon_; in CalcDenominator()
90 (*denominator_addr)[i] = sqrt(denominator); in CalcDenominator()
Dbinary_cross_entropy_grad_kernel.cc40 …T denominator = ((input_x[i] * (one - input_x[i])) > epsilon) ? (input_x[i] * (one - input_x[i])) … in LaunchKernel() local
41 T value = weight[i] * (input_x[i] - input_y[i]) / denominator; in LaunchKernel()
46 …T denominator = ((input_x[i] * (one - input_x[i])) > epsilon) ? (input_x[i] * (one - input_x[i])) … in LaunchKernel() local
47 T value = (input_x[i] - input_y[i]) / denominator; in LaunchKernel()
58 …T denominator = ((input_x[i] * (one - input_x[i])) > epsilon) ? (input_x[i] * (one - input_x[i])) … in LaunchKernel() local
59 T value = weight[i] * (input_x[i] - input_y[i]) / denominator; in LaunchKernel()
64 …T denominator = ((input_x[i] * (one - input_x[i])) > epsilon) ? (input_x[i] * (one - input_x[i])) … in LaunchKernel() local
65 T value = (input_x[i] - input_y[i]) / denominator; in LaunchKernel()
/third_party/mindspore/mindspore/nn/metrics/
Dconfusion_matrix.py506 denominator = tpr + tnr - 1.0
508 return numerator, denominator
525 numerator, denominator = (tpr + tnr), 2.0
527 return numerator, denominator
538 denominator = np.sqrt((tp + fp) * (tp + fn) * (tn + fp) * (tn + fn))
540 return numerator, denominator
548 denominator = 1.0
550 return numerator, denominator
558 denominator = 1.0
560 return numerator, denominator
[all …]
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/gpu/cuda_impl/
Dloss_with_reduction_impl.cu77 __global__ void Divide(const T *numerator, const S *denominator, T *result) { in Divide() argument
78 result[0] = numerator[0] / denominator[0]; in Divide()
82 __global__ void Divide(const float *numerator, const half *denominator, float *result) { in Divide() argument
83 float denom_float = __half2float(denominator[0]); in Divide()
89 __global__ void Divide(const half *numerator, const float *denominator, half *result) { in Divide() argument
92 float result_float = numer_float / denominator[0]; in Divide()
142 T denominator = maxT(input_y[i], epsilon); in KLDivLossKernel() local
143 T value = input_y[i] * (logT(denominator) - input_x[i]); in KLDivLossKernel()
148 T denominator = maxT(input_y[i], epsilon); in KLDivLossKernel() local
149 T value = input_y[i] * (logT(denominator) - input_x[i]); in KLDivLossKernel()
[all …]
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/
Dbinary_cross_entropy_grad.c26 float denominator = MAX(input_x[i] * (1 - input_x[i]), epsilon); in BinaryCrossEntropyGrad() local
27 float value = weight[i] * (input_x[i] - input_y[i]) / denominator; in BinaryCrossEntropyGrad()
36 float denominator = MAX(input_x[i] * (1 - input_x[i]), epsilon); in BinaryCrossEntropyGrad() local
37 float value = weight[i] * (input_x[i] - input_y[i]) / denominator; in BinaryCrossEntropyGrad()

1234567891011