[Numpy-discussion] Creating arrays with fromfile
Travis Oliphant
oliphant.travis at ieee.org
Thu Feb 16 22:51:02 CST 2006
Charles R Harris wrote:
>Hi Travis,
>
>I notice that the fromfile function in NumPy no longer accepts the
>shape keyword that the numarray version has. The functionalitiy can be
>duplicated by reshaping the array after creating it, but I think the
>shape keyword is a bit more convenient for that. Thoughts?
>
>
>
It was just that much more effort to implement correctly in C and since
it can be easily done using
fromfile(....).reshape(dim1,dim2,dim3,...)
I didn't think it critical.
Perhaps numarray compatibility functions should be placed in a numcompat
module.
-Travis
More information about the Numpy-discussion
mailing list