[PYTHON MATRIX-SIG] A related idea

P. Dubois dubois@kristen.llnl.gov
Mon, 6 Nov 1995 09:35:16 +0800


Suppose we have the matrix class working. Suppose there is a Fortran
or C array in the program which you would like to "adopt" as a 
matrix in Python. The only difference between this and a matrix created a
normal way is that you have to remember never to free the memory.
So it seems you might be able to do this if you had a method
of creation (from C) which took a pointer,size,type kind of 
description. You could then increment the reference counter one extra, so
that the memory is never freed, or a "don't free" flag could be in the
header. 








=================
MATRIX-SIG  - SIG on Matrix Math for Python

send messages to: matrix-sig@python.org
administrivia to: matrix-sig-request@python.org
=================