jax.numpy.log10
Contents
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, promotesto inexact dtype.- Return type:
Examples
>>>x1=jnp.array([0.01,0.1,1,10,100,1000])>>>withjnp.printoptions(precision=2,suppress=True):...print(jnp.log10(x1))[-2. -1. 0. 1. 2. 3.]
Contents
