[Numpy-tickets] [NumPy] #432: cov segfaults when input is oriented incorrectly
NumPy
numpy-tickets at scipy.net
Wed Jan 24 00:43:53 CST 2007
#432: cov segfaults when input is oriented incorrectly
--------------------+-------------------------------------------------------
Reporter: dhuard | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone:
Component: Other | Version:
Severity: normal | Resolution:
Keywords: |
--------------------+-------------------------------------------------------
Comment (by nils):
I cannot reproduce it.
{{{
Python 2.5 (r25:51908, Jan 9 2007, 17:00:50)
[GCC 4.1.2 20061115 (prerelease) (SUSE Linux)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from numpy import *
>>> r = random.rand(1000,2)
>>> cov(r)
array([[ 0.10769693, -0.08818263, 0.01077592, ..., -0.08212437,
-0.04392721, -0.12308091],
[-0.08818263, 0.07220425, -0.00882336, ..., 0.06724373,
0.03596776, 0.10077909],
[ 0.01077592, -0.00882336, 0.00107821, ..., -0.00821718,
-0.00439526, -0.01231521],
...,
[-0.08212437, 0.06724373, -0.00821718, ..., 0.06262399,
0.03349673, 0.09385543],
[-0.04392721, 0.03596776, -0.00439526, ..., 0.03349673,
0.01791695, 0.050202 ],
[-0.12308091, 0.10077909, -0.01231521, ..., 0.09385543,
0.050202 , 0.14066241]])
>>> cov(r.T)
array([[ 0.07982856, 0.00174328],
[ 0.00174328, 0.0831986 ]])
}}}
{{{
>>> numpy.__version__
'1.0.2.dev3511'
>>> scipy.__version__
'0.5.3.dev2560'
}}}
--
Ticket URL: <http://projects.scipy.org/scipy/numpy/ticket/432#comment:1>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.
More information about the Numpy-tickets
mailing list