Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2006
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

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


  • Prev by Date: Re: Typing special symbols in text mode?
  • Next by Date: color swatch
  • Previous by thread: Need lower case in HTML save
  • Next by thread: color swatch