rsnt_translations
56,430
edits
(Created page with "La plupart des compilateurs Fortran modernes offrent des options utiles pour le débogage. * <tt>-fcheck=all</tt> pour le compilateur gfortran et <tt>-check</tt> pour le comp...") |
(Created page with "==Algèbre linéaire numérique") |
||
Line 10: | Line 10: | ||
* pendant les tests, utilisez <tt>-O0</tt> pour désactiver les optimisations et <tt>-g</tt> pour ajouter les symboles de débogage. | * pendant les tests, utilisez <tt>-O0</tt> pour désactiver les optimisations et <tt>-g</tt> pour ajouter les symboles de débogage. | ||
== | ==Algèbre linéaire numérique | ||
Note that modern versions of Fortran, i.e. from Fortran 90 on, include built-in functions to handle basic linear algebra operations like multiplication involving matrices and vectors (<tt>matmul</tt> and <tt>dot_product</tt>) and tranposition of matrices (<tt>transpose</tt>). You should use these or the system-provided BLAS/LAPACK libraries and never attempt to write your own methods for such operations, except as an educational exercise. The BLAS matrix-matrix multiplication routine can be up to 100 times faster than a naive implementation involving three nested loops. | Note that modern versions of Fortran, i.e. from Fortran 90 on, include built-in functions to handle basic linear algebra operations like multiplication involving matrices and vectors (<tt>matmul</tt> and <tt>dot_product</tt>) and tranposition of matrices (<tt>transpose</tt>). You should use these or the system-provided BLAS/LAPACK libraries and never attempt to write your own methods for such operations, except as an educational exercise. The BLAS matrix-matrix multiplication routine can be up to 100 times faster than a naive implementation involving three nested loops. |