Re: MathLink and Sparse Matrices
- To: mathgroup at smc.vnet.net
- Subject: [mg65837] Re: MathLink and Sparse Matrices
- From: "ragfield" <ragfield at gmail.com>
- Date: Tue, 18 Apr 2006 06:56:34 -0400 (EDT)
- References: <e1sue6$c9b$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
While not trivial, it is possible to put the SparseArray expression directly onto the link in the MathKernel, then read off the raw internal representation in your C++ program using MLGetFunction/MLGetInteger/MLGetDouble/etc. Look up "SparseArray" in the Help Browser, click on the "Advanced Documentation" link at the bottom of this page, and open the "SparseArray Data Format" section in the advanced documentation notebook. This will (briefly) explain the current internal format for SparseArray. -Rob