docstr: Tests SVD on matrix of zeros and close-to-zero entries.
docstr_tok: ["Tests","SVD","on","matrix","of","zeros","and","close-to-zero","entries","."]
code: def testSvdOnTinyElement(self, m, n, r, c, dtype):
      """Tests SVD on matrix of zeros and close-to-zero entries."""
      a = jnp.zeros((m, n), dtype=dtype)
      tiny_element = jnp.finfo(a.dtype).tiny
      a = a.at[r, c].set(tiny_element)
  
      @jax.jit
      def lax_fun(a):
          return svd.svd(
              a, full_matrices=False, compute_uv=False, hermitian=False
          )
  
      actual_s = lax_fun(a)
  
      k = min(m, n)
      expected_s = np.zeros((k,), dtype=dtype)
      expected_s[0] = tiny_element
  
      self.assertAllClose(
          expected_s, jnp.real(actual_s), rtol=_SVD_RTOL, atol=1e-6
      )
  
file_path: jax/tests/svd_test.py
imports: import functools
  import jax
  import jax.numpy
  import numpy
  import scipy.linalg
  from jax._src import config
  from jax._src import test_util
  from jax._src.lax import svd
  from absl.testing import absltest
label_desc: Use image node_id 8 for calling the SvdTest obj's underlying member method code with example usage: obj.testSvdOnTinyElement(m, n, r, c, dtype) and returns: svd