r8.data = r8dat r8out = lal.CreateREAL8Vector(len(r8dat)) r8out.data = numpy.zeros(numpy.shape(r8dat), dtype=r8dat.dtype) assert (lal.swig_lal_test_viewin_REAL8Vector(r8out, r8)) assert ((r8out.data == r8.data).all()) r8out.data = numpy.zeros(numpy.shape(r8dat), dtype=r8dat.dtype) assert (lal.swig_lal_test_viewin_REAL8Vector(r8out, r8dat)) assert ((r8out.data == r8dat).all()) r8out.data = numpy.zeros(numpy.shape(r8dat), dtype=r8dat.dtype) assert (lal.swig_lal_test_viewinout_REAL8Vector(r8out, r8)) assert ((2 * r8out.data == r8.data).all()) r8out.data = numpy.zeros(numpy.shape(r8dat), dtype=r8dat.dtype) assert (lal.swig_lal_test_viewinout_REAL8Vector(r8out, r8dat)) assert ((2 * r8out.data == r8dat).all()) r8.data = r8dat assert (lal.swig_lal_test_copyinout_REAL8Vector(r8)) assert ((r8.data == 3 * r8dat).all()) r8.data = r8dat retn, r8 = lal.swig_lal_test_copyinout_REAL8Vector(r8) assert (retn) assert ((r8.data == 3 * r8dat).all()) r8 = r8dat retn, r8 = lal.swig_lal_test_copyinout_REAL8Vector(r8) assert (retn) assert ((r8 == 3 * r8dat).all()) del r8 del r8out del r8dat lal.CheckMemoryLeaks() c8 = lal.CreateCOMPLEX8Vector(len(c8dat)) c8.data = c8dat
r8.data = r8dat r8out = lal.CreateREAL8Vector(len(r8dat)) r8out.data = numpy.zeros(numpy.shape(r8dat), dtype=r8dat.dtype) assert(lal.swig_lal_test_viewin_REAL8Vector(r8out, r8)) assert((r8out.data == r8.data).all()) r8out.data = numpy.zeros(numpy.shape(r8dat), dtype=r8dat.dtype) assert(lal.swig_lal_test_viewin_REAL8Vector(r8out, r8dat)) assert((r8out.data == r8dat).all()) r8out.data = numpy.zeros(numpy.shape(r8dat), dtype=r8dat.dtype) assert(lal.swig_lal_test_viewinout_REAL8Vector(r8out, r8)) assert((2 * r8out.data == r8.data).all()) r8out.data = numpy.zeros(numpy.shape(r8dat), dtype=r8dat.dtype) assert(lal.swig_lal_test_viewinout_REAL8Vector(r8out, r8dat)) assert((2 * r8out.data == r8dat).all()) r8.data = r8dat assert(lal.swig_lal_test_copyinout_REAL8Vector(r8)) assert((r8.data == 3 * r8dat).all()) r8.data = r8dat retn, r8 = lal.swig_lal_test_copyinout_REAL8Vector(r8) assert(retn) assert((r8.data == 3 * r8dat).all()) r8 = r8dat retn, r8 = lal.swig_lal_test_copyinout_REAL8Vector(r8) assert(retn) assert((r8 == 3 * r8dat).all()) del r8 del r8out del r8dat lal.CheckMemoryLeaks() c8 = lal.CreateCOMPLEX8Vector(len(c8dat)) c8.data = c8dat