From 1bd2d49ef378fb869d015cef32c3e44a4c03a8f0 Mon Sep 17 00:00:00 2001 From: Stefan van der Walt Date: Mon, 8 Jan 2007 21:56:54 +0000 Subject: Whitespace cleanup. --- numpy/oldnumeric/functions.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'numpy/oldnumeric/functions.py') diff --git a/numpy/oldnumeric/functions.py b/numpy/oldnumeric/functions.py index 7d6d8abfa..1f09d8f84 100644 --- a/numpy/oldnumeric/functions.py +++ b/numpy/oldnumeric/functions.py @@ -44,10 +44,10 @@ def argmin(x, axis=-1): def compress(condition, m, axis=-1): return N.compress(condition, m, axis) - + def fromfunction(args, dimensions): return N.fromfunction(args, dimensions, dtype=int) - + def ones(shape, typecode='l', savespace=0, dtype=None): """ones(shape, dtype=int) returns an array of the given dimensions which is initialized to all ones. @@ -61,7 +61,7 @@ def zeros(shape, typecode='l', savespace=0, dtype=None): """zeros(shape, dtype=int) returns an array of the given dimensions which is initialized to all zeros """ - dtype = convtypecode(typecode,dtype) + dtype = convtypecode(typecode,dtype) return mu.zeros(shape, dtype) def identity(n,typecode='l', dtype=None): @@ -71,7 +71,7 @@ def identity(n,typecode='l', dtype=None): return nn.identity(n, dtype) def empty(shape, typecode='l', dtype=None): - dtype = convtypecode(typecode, dtype) + dtype = convtypecode(typecode, dtype) return mu.empty(shape, dtype) def array(sequence, typecode=None, copy=1, savespace=0, dtype=None): @@ -122,4 +122,3 @@ def cross_product(a, b, axis1=-1, axis2=-1): def average(a, axis=0, weights=None, returned=False): return N.average(a, axis, weights, returned) - -- cgit v1.2.1