[SciPy-Dev] w prefix in fortran bindings

Pauli Virtanen pav at iki.fi
Thu May 5 08:43:56 EDT 2011


Thu, 05 May 2011 14:34:19 +0200, Fabian Pedregosa wrote:
> I've been backing lately on the LAPACK bindings and there's something I
> don't understand . Sometimes the fortranname statement is prefixed with
> `w`, like in
> 
>      fortranname w<prefix2c>dotc
> 
> Someone could tell me why the w is needed?

It's because on some platforms there are difficulties in calling
Fortran functions (as opposed to subroutines) from C, so we need
subroutine wrappers for the functions. You can find the w*
subroutines implemented in some *.f file.

	Pauli




More information about the SciPy-Dev mailing list