jax.numpy.log10#
- jax.numpy.log10(x, /)[source]#
Calculates the base-10 logarithm of x element-wise
JAX implementation of
numpy.log10
.- Parameters:
x (ArrayLike) – Input array
- Returns:
An array containing the base-10 logarithm of each element in
x
, promotes to inexact dtype.- Return type:
Examples
>>> x1 = jnp.array([0.01, 0.1, 1, 10, 100, 1000]) >>> with jnp.printoptions(precision=2, suppress=True): ... print(jnp.log10(x1)) [-2. -1. 0. 1. 2. 3.]