This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

complex numbers in libguile



The gsl contains many functions that involve complex numbers. While they
are a custom datatype in C libraries, they're a built-in type in scheme.
How does one pass real- and imgainary part of a SCM obj representing a
complex number through libguile, so that the gsl can map it from and to
an instance of the corresponding struct ? I don't feel like constructing 
a smob for something that already has a built-in equivalent.

   Klaus Schilling