docstr: tests if the ldexp function works
docstr_tok: ["tests","if","the","ldexp","function","works"]
code: def test_ldexp(self):
      """tests if the ldexp function works"""
      for s in sizes:
          a = gpuarray.arange(s, dtype=np.float32)
          a2 = gpuarray.arange(s, dtype=np.float32) * 1e-3
          b = cumath.ldexp(a, a2)
  
          a = a.get()
          a2 = a2.get()
          b = b.get()
  
          for i in range(s):
              assert math.ldexp(a[i], int(a2[i])) == b[i]
  
file_path: pycuda/test/test_cumath.py
imports: import math
  import numpy
  from pycuda.tools import mark_cuda_test
  import pycuda.gpuarray
  import pycuda.driver
  import pycuda.cumath
label_desc: Use image node_id 2 for calling the TestMath obj's underlying member method code with example usage: obj.test_ldexp() without return types