[Tutor] inserting a vector into an array - numpy Q
we should see several ways to do this. One way is with reshape: http://www.scipy.org/Numpy_Example_List_With_Doc#reshape.
we should see several ways to do this. One way is with reshape: http://www.scipy.org/Numpy_Example_List_With_Doc#reshape.
Here is an example to demonstrate my problem (using numpy to avoid needing an image file, and to make it easier to show the results in text; you could instead use a 4x4 image and the .show() method of Image to see what I'm talking about)
I wrapped a c++ code which need accept numpy.ndarray as argument. >replace the indicated with the name of NumPy's python type object for ndarray. -- Dave Abrahams Boost Consulting www.boost-consulting.com.
[Numpy-discussion] f2py with allocatable arrays. Sturla Molden sturla at molden.no Tue Jul 3 20:23:37 EDT 2012.The Fortran 90/95 Explained book mentions this in the > allocatable dummy arguments section and has an example using an array > with allocatable, intent(out) in a subrountine.