Home
last modified time | relevance | path

Searched refs:log1p (Results 1 – 25 of 142) sorted by relevance

123456

/external/python/cpython3/Lib/test/
Dmath_testcases.txt374 -- log1p: log(1 + x), without precision loss for small x --
378 log1p0000 log1p 0.0 -> 0.0
379 log1p0001 log1p -0.0 -> -0.0
380 log1p0002 log1p inf -> inf
381 log1p0003 log1p -inf -> nan invalid
382 log1p0004 log1p nan -> nan
385 log1p0010 log1p -1.0 -> -inf divide-by-zero
386 log1p0011 log1p -0.9999999999999999 -> -36.736800569677101
389 log1p0020 log1p -1.0000000000000002 -> nan invalid
390 log1p0021 log1p -1.1 -> nan invalid
[all …]
/external/tensorflow/tensorflow/core/kernels/
Dcwise_op_log1p.cc19 REGISTER5(UnaryOp, CPU, "Log1p", functor::log1p, float, Eigen::half, double,
23 REGISTER3(UnaryOp, GPU, "Log1p", functor::log1p, float, Eigen::half, double);
27 REGISTER2(UnaryOp, SYCL, "Log1p", functor::log1p, float, double);
Dlogistic-loss.h72 return log1p(exp(-y_wx)) * example_weight; in ComputePrimalLoss()
77 return (log1p(exp(y_wx)) - y_wx) * example_weight; in ComputePrimalLoss()
Dcwise_op_gpu_log1p.cu.cc22 DEFINE_UNARY3(log1p, Eigen::half, float, double);
Drandom_binomial_op.cc69 using Eigen::numext::log1p; in binomial_inversion()
80 double geom = ceil(log(u) / log1p(-prob)); in binomial_inversion()
110 using Eigen::numext::log1p; in btrs()
Dunary_ops_composition.cc275 REGISTER_COMPUTE_FN_HELPER(Log1p, functor::log1p<T>);
333 REGISTER_COMPUTE_FN_HELPER(Log1p, functor::log1p<T>);
404 REGISTER_COMPUTE_FN_HELPER(Log1p, functor::log1p<T>);
Drange_sampler.cc73 return -std::expm1(num_tries * std::log1p(-p)); in ExpectedCountHelper()
158 : RangeSampler(range), log_range_(log1p(range)) {} in LogUniformSampler()
Dmfcc_mel_filterbank.cc199 return 1127.0 * log1p(freq / 700.0); in FreqToMel()
/external/tensorflow/tensorflow/core/api_def/python_api/
Dapi_def_Log1p.pbtxt4 name: "math.log1p"
7 name: "log1p"
15 >>> tf.math.log1p(x)
/external/eigen/Eigen/src/Core/arch/CUDA/
DMathFunctions.h43 return make_double2(log1p(a.x), log1p(a.y));
/external/tensorflow/tensorflow/python/kernel_tests/
Dcwise_ops_unary_test.py208 self._compareBoth(z, np.log1p, math_ops.log1p)
265 self._compareBoth(x, np.log1p, math_ops.log1p)
316 self._compareBoth(z, np.log1p, math_ops.log1p)
367 self._compareBoth(z, np.log1p, math_ops.log1p)
456 self._compareCpu(y, np.log1p, math_ops.log1p)
501 self._compareCpu(y, np.log1p, math_ops.log1p)
/external/eigen/test/
Dhalf_float.cpp205 VERIFY_IS_EQUAL(float(numext::log1p(half(0.0f))), 0.0f); in test_basic_functions()
206 VERIFY_IS_EQUAL(float(log1p(half(0.0f))), 0.0f); in test_basic_functions()
207 VERIFY_IS_APPROX(float(numext::log1p(half(10.0f))), 2.3978953f); in test_basic_functions()
208 VERIFY_IS_APPROX(float(log1p(half(10.0f))), 2.3978953f); in test_basic_functions()
/external/clang/lib/Headers/
D__clang_cuda_math_forward_declares.h131 __DEVICE__ double log1p(double);
132 __DEVICE__ float log1p(float);
233 using ::log1p;
/external/tensorflow/tensorflow/core/api_def/base_api/
Dapi_def_Xlog1py.pbtxt3 summary: "Returns 0 if x == 0, and x * log1p(y) otherwise, elementwise."
Dapi_def_Log1p.pbtxt11 tf.math.log1p(x) ==> [0., 0.4054651, 0.6931472, 1.7917595]
/external/OpenCL-CTS/test_conformance/clcpp/math_funcs/
Dlogarithmic_funcs.hpp154 MATH_FUNCS_DEFINE_UNARY_FUNC(logarithmic, log1p, std::log1p, true, 2.0f, 4.0f, 0.001f, -10.0f, 1000…
/external/eigen/Eigen/src/Core/
DMathFunctions.h493 EIGEN_DEVICE_FUNC inline Scalar log1p(const Scalar& x) {
508 using std::log1p;
510 using std_fallback::log1p;
511 return log1p(x);
952 inline EIGEN_MATHFUNC_RETVAL(log1p, Scalar) log1p(const Scalar& x)
954 return EIGEN_MATHFUNC_IMPL(log1p, Scalar)::run(x);
959 float log1p(const float &x) { return ::log1pf(x); }
962 double log1p(const double &x) { return ::log1p(x); }
DGlobalFunctions.h75 …EIGEN_ARRAY_DECLARE_GLOBAL_UNARY(log1p,scalar_log1p_op,natural logarithm of 1 plus the value,\sa A…
/external/python/cpython2/Lib/test/
Dtest_math.py607 self.assertRaises(TypeError, math.log1p)
608 self.ftest('log1p(1/e -1)', math.log1p(1/math.e-1), -1)
609 self.ftest('log1p(0)', math.log1p(0), 0)
610 self.ftest('log1p(e-1)', math.log1p(math.e-1), 1)
611 self.ftest('log1p(1)', math.log1p(1), math.log(2))
612 self.assertEqual(math.log1p(INF), INF)
613 self.assertRaises(ValueError, math.log1p, NINF)
614 self.assertTrue(math.isnan(math.log1p(NAN)))
616 self.assertAlmostEqual(math.log1p(n), 62.383246250395075)
617 self.assertAlmostEqual(math.log1p(n), math.log1p(float(n)))
/external/v8/src/base/
Dieee754.h49 V8_BASE_EXPORT double log1p(double x);
/external/python/cpython2/Modules/
D_math.c206 return log1p(x); in _Py_log1p()
/external/python/cpython3/Modules/
D_math.c224 return log1p(x); in _Py_log1p()
/external/tensorflow/tensorflow/lite/kernels/internal/
Dmfcc_mel_filterbank.cc200 return 1127.0 * log1p(freq / 700.0); in FreqToMel()
/external/apache-commons-math/src/main/java/org/apache/commons/math/distribution/
DBetaDistributionImpl.java163 double log1mX = FastMath.log1p(-x); in density()
/external/tensorflow/tensorflow/core/lib/bfloat16/
Dbfloat16.h501 inline bfloat16 log1p(const bfloat16& a) {
502 return bfloat16(std::log1p(float(a)));

123456