[SciPy-User] Fwd: segfault

Paul Anton Letnes paul.anton.letnes@gmail....
Sun Aug 14 16:11:00 CDT 2011

Replying to myself with a bit more information - again.

% time python iterative-test.py
File read
zsh: segmentation fault  python iterative-test.py
python iterative-test.py  537.58s user 2.66s system 97% cpu 9:13.79 total
Memory use this time was approx. 550 MB (don't recall the exact number). The input matrix was the same.

The code was modified to:
def main():
    f = h5py.File('A2.h5', 'r')
    A = f['A'][:]
    b = numpy.loadtxt('RHS_p_formatted_copy', dtype=numpy.float32)
    b = b[:, 0] + 1.0j * b[:, 1]
    print 'File read'

    t0 = time.time()
    print 'Eigvals:'
->  w, vl, vr = scipy.linalg.eig(A, overwrite_a=True)

More information about the SciPy-User mailing list