linear algebric equations

Dan Stromberg drsalists at gmail.com
Mon Dec 7 15:51:34 EST 2020


On Mon, Dec 7, 2020 at 11:36 AM Tito Sanò <tsano at tiscali.it> wrote:

> Regarding the solution of linear algebraic equations I noticed a big
> difference in the computation
>
> time in Python compared to the old fortran language.
>
> I have compared both the linelg and lapack.dgesv-lapack.zgesv modules with
> the fortan: dgelg and f04adf.
>
> The difference in computation time is enormous:
>
> for example for 430 degrees of freedom it is about 24 min in Python versus
> about 1 sec in fortran.
>
> Is it possible to get better performance in Python?
>

Can you make your test code available for examination?

If you are using CPython, are you also using numpy? Or numba?

If you are using pure Python, have you tried Pypy3?

HTH.


More information about the Python-list mailing list