retn, r8 = lal.swig_lal_test_copyinout_REAL8VectorSequence(r8) assert (retn) assert ((r8.data == 3 * r8dat).all()) r8 = r8dat retn, r8 = lal.swig_lal_test_copyinout_REAL8VectorSequence(r8) assert (retn) assert ((r8 == 3 * r8dat).all()) del r8 del r8out del r8dat lal.CheckMemoryLeaks() c8 = lal.CreateCOMPLEX8VectorSequence(c8dat.shape[0], c8dat.shape[1]) c8.data = c8dat c8out = lal.CreateCOMPLEX8VectorSequence(c8dat.shape[0], c8dat.shape[1]) c8out.data = numpy.zeros(numpy.shape(c8dat), dtype=c8dat.dtype) assert (lal.swig_lal_test_viewin_COMPLEX8VectorSequence(c8out, c8)) assert ((c8out.data == c8.data).all()) c8out.data = numpy.zeros(numpy.shape(c8dat), dtype=c8dat.dtype) assert (lal.swig_lal_test_viewin_COMPLEX8VectorSequence(c8out, c8dat)) assert ((c8out.data == c8dat).all()) c8out.data = numpy.zeros(numpy.shape(c8dat), dtype=c8dat.dtype) assert (lal.swig_lal_test_viewinout_COMPLEX8VectorSequence(c8out, c8)) assert ((2 * c8out.data == c8.data).all()) c8out.data = numpy.zeros(numpy.shape(c8dat), dtype=c8dat.dtype) assert (lal.swig_lal_test_viewinout_COMPLEX8VectorSequence(c8out, c8dat)) assert ((2 * c8out.data == c8dat).all()) c8.data = c8dat assert (lal.swig_lal_test_copyinout_COMPLEX8VectorSequence(c8)) assert ((c8.data == 3 * c8dat).all()) c8.data = c8dat retn, c8 = lal.swig_lal_test_copyinout_COMPLEX8VectorSequence(c8)
assert((r8out.data == r8dat).all()) r8out.data = numpy.zeros(numpy.shape(r8dat), dtype=r8dat.dtype) assert(lal.swig_lal_test_viewinout_REAL8VectorSequence(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_REAL8VectorSequence(r8out, r8dat)) assert((2 * r8out.data == r8dat).all()) del r8 del r8out del r8dat lal.CheckMemoryLeaks() c8 = lal.CreateCOMPLEX8VectorSequence(c8dat.shape[0], c8dat.shape[1]) c8.data = c8dat c8out = lal.CreateCOMPLEX8VectorSequence(c8dat.shape[0], c8dat.shape[1]) c8out.data = numpy.zeros(numpy.shape(c8dat), dtype=c8dat.dtype) assert(lal.swig_lal_test_viewin_COMPLEX8VectorSequence(c8out, c8)) assert((c8out.data == c8.data).all()) c8out.data = numpy.zeros(numpy.shape(c8dat), dtype=c8dat.dtype) assert(lal.swig_lal_test_viewin_COMPLEX8VectorSequence(c8out, c8dat)) assert((c8out.data == c8dat).all()) c8out.data = numpy.zeros(numpy.shape(c8dat), dtype=c8dat.dtype) assert(lal.swig_lal_test_viewinout_COMPLEX8VectorSequence(c8out, c8)) assert((2 * c8out.data == c8.data).all()) c8out.data = numpy.zeros(numpy.shape(c8dat), dtype=c8dat.dtype) assert(lal.swig_lal_test_viewinout_COMPLEX8VectorSequence(c8out, c8dat)) assert((2 * c8out.data == c8dat).all()) del c8 del c8out del c8dat lal.CheckMemoryLeaks() c16 = lal.CreateCOMPLEX16VectorSequence(c16dat.shape[0], c16dat.shape[1])