> > I think numpy.array(object) always makes a copy.
> >
> > You want numpy.asarray(object) which will make a view if object exposes
> > the array interface and matches the type and sizes requested.

FYI, numpy.asarray is a shortcut for numpy.array(copy=False), numpy.asanyarray 
for numpy.array(copy=False, subok=True)... In other terms, you can stick to 
array, as long as you provide the proper keywords.
_______________________________________________
Numpy-discussion mailing list
[email protected]
http://projects.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to