jagomart
digital resources
picture1_Pdf Orientation 189225 | Num Item Download 2023-02-03 07-39-16


 119x       Filetype PDF       File size 0.41 MB       Source: feynarts.de


File: Pdf Orientation 189225 | Num Item Download 2023-02-03 07-39-16
numeric programming examples thomas hahn max planck institut fur physik munchen http feynarts de lectures num pdf http feynarts de lectures num tar gz t hahn numeric programming examples p ...

icon picture PDF Filetype PDF | Posted on 03 Feb 2023 | 2 years ago
Partial capture of text on file.
                  Numeric Programming Examples
                               Thomas Hahn
                      Max-Planck-Institut für Physik
                                 München
              http://feynarts.de/lectures/num.pdf
              http://feynarts.de/lectures/num.tar.gz
                                                   T. Hahn, Numeric Programming Examples–p.1
     Topics
        • Mixing Fortran and C
        • MathLink Programming
        • Floating-point issues
        • Alignment and Caching
        • “Find the Mistake” Quiz
                                                   T. Hahn, Numeric Programming Examples–p.2
     Mixing Fortran and C
     WhyFortran? Why C/C++?
        • Around for longer than many modern languages:
          Fortran 1957, C 1972
          Perl 1987, Python 1991, Java 1995, Ruby 1995
        • Both widely used, e.g. C in the Linux Kernel.
        • Good and free compilers available.
        • Being the language of Unix, C is usually the lowest
          commondenominator, i.e. has fewest linking issues.
        • Object orientation through Fortran 90/2003, C++.
          (Introduces name mangling issues, though.)
                                                   T. Hahn, Numeric Programming Examples–p.3
     Mixing Fortran and C
        • Most Fortran compilers add an underscore to all symbols.
        • Fortran passes all arguments by reference.
        • Avoid calling functions (use subroutines) as handling of
          the return value is compiler dependent.
        • ‘Strings’ are character arrays in Fortran and not
          null-terminated. For every character array the length is
          passed as an invisible int at the end of the argument list.
        • Commonblocks correspond to global structs, e.g.
          double precision a, b              struct {
          common /abc/ a, b            ↔       double a, b;
                                             } abc_;
        • Fortran’s (and C99’s) double complex maps onto
          struct { double re, im; }.
                                                   T. Hahn, Numeric Programming Examples–p.4
The words contained in this file might help you see if this file matches what you are looking for:

...Numeric programming examples thomas hahn max planck institut fur physik munchen http feynarts de lectures num pdf tar gz t p topics mixing fortran and c mathlink floating point issues alignment caching find the mistake quiz whyfortran why around for longer than many modern languages perl python java ruby both widely used e g in linux kernel good free compilers available being language of unix is usually lowest commondenominator i has fewest linking object orientation through introduces name mangling though most add an underscore to all symbols passes arguments by reference avoid calling functions use subroutines as handling return value compiler dependent strings are character arrays not null terminated every array length passed invisible int at end argument list commonblocks correspond global structs double precision a b struct common abc s complex maps onto re im...

no reviews yet
Please Login to review.