MathGroup Archive 2002

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

Search the Archive

Re: MathLink and Vectors

  • To: mathgroup at
  • Subject: [mg35259] Re: MathLink and Vectors
  • From: Jens-Peer Kuska <kuska at>
  • Date: Fri, 5 Jul 2002 02:19:14 -0400 (EDT)
  • Organization: Universitaet Leipzig
  • References: <afugsl$rsc$>
  • Reply-to: kuska at
  • Sender: owner-wri-mathgroup at


Manual works perfect. I have several programs that send
a 2d arrays to Mathematica, of course I have no "objects", and
I don't know how your vector/matrix class is defined but


will work with a one-dimensional adress scheme

for(i=0; i<n; i++)

works for a array of pointers to rows.


"Mark T. Gordon" wrote:
> I am working on a research project and need to use MathLink
> with Vectors.  I am mostly using vector<double> but I am
> also using vector< vector< double > >.  The functions seem
> to work except I am encountering a problem when entering the
> type of object the C++ code is returning in the template.
> I've tried Manual but that does not seem to work.  I'm using
> Visual C++ and Mathematica 4.1.  Any help would be
> appreciated.
> mgordo76 at

  • Prev by Date: Thanks to all --Re: non integer exponents in ContourPlot[]?
  • Next by Date: RE: Corrupted Files & Version 4.2 Problems
  • Previous by thread: MathLink and Vectors
  • Next by thread: Parametric surface