summaryrefslogtreecommitdiff
path: root/scipy/base/numeric.py
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2005-10-03 23:58:56 +0000
committerTravis Oliphant <oliphant@enthought.com>2005-10-03 23:58:56 +0000
commitfd10c4389d6e5bba194f6d8fda8ae500183360c8 (patch)
treea89b962e21ab81c3c46074cd481ea30f0bf565b3 /scipy/base/numeric.py
parent68a551cd82261a8f0dcc180122f15b6150026866 (diff)
downloadnumpy-fd10c4389d6e5bba194f6d8fda8ae500183360c8.tar.gz
Fixed segfaults in buffered casting when castsize was different than buffersize. Also fixed so copies are made whenever the array is less than the buffersize
Diffstat (limited to 'scipy/base/numeric.py')
-rw-r--r--scipy/base/numeric.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scipy/base/numeric.py b/scipy/base/numeric.py
index c6f8d2020..7b0b4fa32 100644
--- a/scipy/base/numeric.py
+++ b/scipy/base/numeric.py
@@ -266,7 +266,7 @@ def ones(shape, dtype=intp, fortran=0):
"""
a=zeros(shape, dtype, fortran)
a+=1
- ### a[...]=1 -- slower
+ ### a[...]=1 -- slower?
return a
def identity(n,dtype=intp):
@@ -359,7 +359,7 @@ def setbufsize(size, where=0):
frame.f_builtins[UFUNC_BUFSIZE_NAME] = size
return
-setbufsize(80000, 1)
+setbufsize(10000, 1)
def getbufsize(size):
frame = sys._getframe().f_back