[Numpy-discussion] Long double in Python with Numpy
Charles V.
charles.vejnar at isb-sib.ch
Tue May 29 05:44:25 EDT 2007
Hi,
I have a C library using "long double" numbers. With SWIG, I am able to use
this library in Python. I use the PyArray_FromDims function in the
SWIG "interface" file.
But sometimes, I only need one long double : it's not very convenient to
create an array for only one number...
In Python there is "numpy.longdouble". Did you know how to create this object
in C in the SWIG "interface" file ? (maybe the PyLongDoubleScalarObject
structure ?)
Thank you
Charles
More information about the NumPy-Discussion
mailing list