Hi Thomas

I actually have the C++ package now and a number of models working using
it. I wasn't aware of the 15!:* family so I'll have a close at this.

Thanks!

Bob


On Tue, Apr 9, 2013 at 7:31 PM, Thomas Costigliola <[email protected]>wrote:

> You could try to approach it from the other side. If it is not too
> difficult to describe your function yourself in C, you could write a small
> piece of C code, run your AD algorithm on it and then call that C code from
> J. Calling C code and passing arrays between J and C from J is very easy
> using the 15!:* family and adds minimal overhead.
>
>
> On Tue, Apr 9, 2013 at 5:54 PM, bcubed <[email protected]> wrote:
>
> > Hi Devon
> >
> > Unfortunately the AutoDif algorithm requires almost complete integration
> of
> > the code that I am considering. This has to do with the nature of
> > autodifferentiation. It requires access to the code for the equations to
> > apply the chain rule (forwards and backwards in my case). Passing
> > parameters and data doesn't meet the need.
> >
> > I'll keep searching for a solution.
> >
> > Bob
> >
> >
> > On Tue, Apr 9, 2013 at 11:20 AM, Devon McCormick <[email protected]>
> > wrote:
> >
> > > There will be such a utility when you write it.
> > >
> > > A more practical approach may be to call the J DLL from within your C++
> > > code but I've not done this myself.
> > >
> > >
> > > On Tue, Apr 9, 2013 at 9:37 AM, bcubed <[email protected]> wrote:
> > >
> > > > Hi forum
> > > > Is there any utility or function in J to translate J code to C/C++? I
> > > have
> > > > a project in which I would like write most of the code in J but then
> > > > integrate this into code on Auto Differentiation which is written in
> > > C++. I
> > > > know that Matlab has this functionality but haven't encountered it in
> > J.
> > > > Bob
> > > >
> ----------------------------------------------------------------------
> > > > For information about J forums see
> http://www.jsoftware.com/forums.htm
> > > >
> > >
> > >
> > >
> > > --
> > > Devon McCormick, CFA
> > > ^me^ at acm.
> > > org is my
> > > preferred e-mail
> > > ----------------------------------------------------------------------
> > > For information about J forums see http://www.jsoftware.com/forums.htm
> > >
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> >
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to