Re: Who uses clapack?

From: glen herrmannsfeldt (gah_at_ugcs.caltech.edu)
Date: 12/10/04


Date: Fri, 10 Dec 2004 11:25:13 -0800


Dan Pop wrote:

(snip regarding lapack and clapack)

> The issue that springs to mind is that Fortran and C store matrices
> differently: Fortran does it column-wise (the first index varies fastest),
> C does it row-wise (the last index varies fastest).

> The fact that Fortran array indexing is 1-based (by default) and C array
> indexing is 0-based shouldn't cause any problems when using the compiled
> Fortran code from C.

Some people who write numerical algorithms in Fortran exchange
the subscripts from the mathematical description, and others don't.

With cache memory and virtual memory one should always be sure that
the loops correspond to the memory layout in the appropriate language.

-- glen



Relevant Pages

  • Re: Who uses clapack?
    ... > C does it row-wise (the last index varies fastest). ... > indexing is 0-based shouldn't cause any problems when using the compiled ... > Fortran code from C. ... www cs utk edu tilde lastname ...
    (comp.lang.c)
  • Re: Who uses clapack?
    ... > C does it row-wise (the last index varies fastest). ... > indexing is 0-based shouldn't cause any problems when using the compiled ... > Fortran code from C. ... www cs utk edu tilde lastname ...
    (comp.lang.fortran)
  • Re: Who uses clapack?
    ... > C does it row-wise (the last index varies fastest). ... > indexing is 0-based shouldn't cause any problems when using the compiled ... > Fortran code from C. ... www cs utk edu tilde lastname ...
    (sci.math.num-analysis)
  • Re: Who uses clapack?
    ... > C does it row-wise (the last index varies fastest). ... > indexing is 0-based shouldn't cause any problems when using the compiled ... > Fortran code from C. ... With cache memory and virtual memory one should always be sure that ...
    (comp.lang.c)
  • Re: Who uses clapack?
    ... > C does it row-wise (the last index varies fastest). ... > indexing is 0-based shouldn't cause any problems when using the compiled ... > Fortran code from C. ... With cache memory and virtual memory one should always be sure that ...
    (comp.lang.fortran)