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()) del c8 del c8out del c8dat lal.CheckMemoryLeaks() c16 = lal.CreateCOMPLEX16VectorSequence(c16dat.shape[0], c16dat.shape[1]) c16.data = c16dat
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()) del c8 del c8out del c8dat lal.CheckMemoryLeaks() c16 = lal.CreateCOMPLEX16VectorSequence(c16dat.shape[0], c16dat.shape[1]) c16.data = c16dat