[PYTHON MATRIX-SIG] Type Coercion
Konrad HINSEN
hinsenk@ere.umontreal.ca
Wed, 7 Feb 1996 18:21:19 -0500
a C plotting array that wants an array of C floats. You might even have
an array of C floats but in general you don't know it is contiguous. It
might be a slice of something else, or the result of any number of
calculations that destroy contiguity (if that is a word!).
Believe it or not, it is accepted by "spell" on my system ;-)
Contiguity might not be an issue when interfacing to Fortran code,
which can often handle non-contiguous arrays. Anyway, the C-API should
have the utility functions "copy if not contiguous" and "copy if not
sufficiently contiguous to be passed to a Fortran function". There
could be versions that include a cast.
-------------------------------------------------------------------------------
Konrad Hinsen | E-Mail: hinsenk@ere.umontreal.ca
Departement de chimie | Tel.: +1-514-343-6111 ext. 3953
Universite de Montreal | Fax: +1-514-343-7586
C.P. 6128, succ. Centre-Ville | Deutsch/Esperanto/English/Nederlands/
Montreal (QC) H3C 3J7 | Francais (phase experimentale)
-------------------------------------------------------------------------------
=================
MATRIX-SIG - SIG on Matrix Math for Python
send messages to: matrix-sig@python.org
administrivia to: matrix-sig-request@python.org
=================