按元素计算 Spence 对 x 的积分。
用法
tf.math.special.spence(
x, name=None
)参数
-
x一个Tensor或SparseTensor。必须是以下类型之一:float32,float64。 -
name操作的名称(可选)。
返回
-
分别是
Tensor或SparseTensor。具有与x相同的类型。
Spence 积分定义为从 1 到 x 的 log(t) / (1 - t) 的积分,定义域为所有非负实数。
tf.math.special.spence([0.5, 1., 2., 3.]).numpy()
array([ 0.58224034, 0. , -0.82246685, -1.4367464], dtype=float32)
此实现基于 Cephes 数学库。
scipy 兼容性
相当于 scipy.special.spence
相关用法
- Python tf.math.special.fresnel_cos用法及代码示例
- Python tf.math.special.bessel_k0e用法及代码示例
- Python tf.math.special.fresnel_sin用法及代码示例
- Python tf.math.special.bessel_j1用法及代码示例
- Python tf.math.special.bessel_j0用法及代码示例
- Python tf.math.special.bessel_y0用法及代码示例
- Python tf.math.special.bessel_k1用法及代码示例
- Python tf.math.special.bessel_k1e用法及代码示例
- Python tf.math.special.bessel_k0用法及代码示例
- Python tf.math.special.dawsn用法及代码示例
- Python tf.math.special.expint用法及代码示例
- Python tf.math.special.bessel_y1用法及代码示例
- Python tf.math.segment_prod用法及代码示例
- Python tf.math.scalar_mul用法及代码示例
- Python tf.math.segment_mean用法及代码示例
- Python tf.math.sinh用法及代码示例
- Python tf.math.sign用法及代码示例
- Python tf.math.sin用法及代码示例
- Python tf.math.segment_max用法及代码示例
- Python tf.math.softplus用法及代码示例
注:本文由纯净天空筛选整理自tensorflow.org大神的英文原创作品 tf.math.special.spence。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。
