diff options
author | Travis Oliphant <oliphant@enthought.com> | 2006-03-24 22:12:48 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2006-03-24 22:12:48 +0000 |
commit | 28b7d9fb65da6e36eff3158f77b2a023edf7f733 (patch) | |
tree | 9075b6f51ca22d2ee6ce2934962e50ee43d47a28 /numpy/core/numeric.py | |
parent | 76612bfed9caef1f619c12bdd867b4974e93d8f4 (diff) | |
download | numpy-28b7d9fb65da6e36eff3158f77b2a023edf7f733.tar.gz |
Changed fortran= keywords to order= keywords
Diffstat (limited to 'numpy/core/numeric.py')
-rw-r--r-- | numpy/core/numeric.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/numpy/core/numeric.py b/numpy/core/numeric.py index 630f9ff66..e5ae12c0d 100644 --- a/numpy/core/numeric.py +++ b/numpy/core/numeric.py @@ -108,23 +108,23 @@ can_cast = multiarray.can_cast lexsort = multiarray.lexsort -def asarray(a, dtype=None, fortran=None): +def asarray(a, dtype=None, order=None): """returns a as an array. Unlike array(), no copy is performed if a is already an array. Subclasses are converted to base class ndarray. """ - return array(a, dtype, copy=False, fortran=fortran) + return array(a, dtype, copy=False, order=order) -def asanyarray(a, dtype=None, copy=False, fortran=None): +def asanyarray(a, dtype=None, copy=False, order=None): """will pass subclasses through... """ - return array(a, dtype, copy=copy, fortran=fortran, subok=1) + return array(a, dtype, copy=copy, order=order, subok=1) def ascontiguous(a, dtype=None, copy=False): - return array(a, dtype, copy=copy, fortran=False, ndmin=1) + return array(a, dtype, copy=copy, order=False, ndmin=1) def asfortran(a, dtype=None, copy=False): - return array(a, dtype, copy=copy, fortran=True, ndmin=1) + return array(a, dtype, copy=copy, order=True, ndmin=1) def isfortran(a): return a.flags.fnc @@ -362,14 +362,14 @@ def load(file): # These are all essentially abbreviations # These might wind up in a special abbreviations module -def ones(shape, dtype=int_, fortran=False): +def ones(shape, dtype=int_, order='C'): """ones(shape, dtype=int_) returns an array of the given dimensions which is initialized to all ones. """ - a = empty(shape, dtype, fortran) + a = empty(shape, dtype, order) a.fill(1) # Above is faster now after addition of fast loops. - #a = zeros(shape, dtype, fortran) + #a = zeros(shape, dtype, order) #a+=1 return a |