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 (retn) assert ((c8.data == 3 * c8dat).all()) c8 = c8dat retn, c8 = lal.swig_lal_test_copyinout_COMPLEX8VectorSequence(c8) assert (retn) assert ((c8 == 3 * c8dat).all())
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]) c16.data = c16dat c16out = lal.CreateCOMPLEX16VectorSequence(c16dat.shape[0], c16dat.shape[1]) c16out.data = numpy.zeros(numpy.shape(c16dat), dtype=c16dat.dtype) assert(lal.swig_lal_test_viewin_COMPLEX16VectorSequence(c16out, c16)) assert((c16out.data == c16.data).all()) c16out.data = numpy.zeros(numpy.shape(c16dat), dtype=c16dat.dtype)