# Numpy Toy Box / accesscarray / check_pointer.py

 ``` 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28``` ```import numpy from accesscarray import * iac1d = numpy.array([1,2,3], dtype=numpy.int, order='C') iaf1d = numpy.array([1,2,3], dtype=numpy.int, order='F') fac1d = numpy.array([1,2,3], dtype=numpy.float, order='C') faf1d = numpy.array([1,2,3], dtype=numpy.float, order='F') fac2d = numpy.array([[1,2,3],[1,2,3],[1,2,3]], dtype=numpy.float) faf2d = numpy.array([[1,2,3],[1,2,3],[1,2,3]], dtype=numpy.float, order='F') fa_3d = numpy.arange(2**3, dtype=numpy.float).reshape([2]*3) fac3d = fa_3d.copy('C') faf3d = fa_3d.copy('F') fa_4d = numpy.arange(2**4, dtype=numpy.float).reshape([2]*4) fac4d = fa_4d.copy('C') faf4d = fa_4d.copy('F') print check_pointer(iac1d) print check_pointer(iaf1d) print check_pointer(fac1d) print check_pointer(faf1d) print check_pointer(fac2d) print check_pointer(faf2d) print check_pointer(fac3d) print check_pointer(faf3d) print check_pointer(fac4d) print check_pointer(faf4d) ```