help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Include Fortran Code which Returns Arrays of Dynamic/Unknown Size


From: Marco2008
Subject: Re: Include Fortran Code which Returns Arrays of Dynamic/Unknown Size
Date: Thu, 16 Oct 2008 11:02:40 -0700 (PDT)

Hello


Jaroslav Hajek-2 wrote:
> 
> I see. Is a good upper bound guess for size of A2 available? If so,
> then you can simply allocate to that size in C++ and let the
> computational routine return also the actual size.
> 

An upper bound for the size of A2 can be calculated very easily (K*|A2|, K
\in N). I will do it like this for now.



> If not, there's still a solution. Some time ago I "invented" a
> technique to arrange the inter-language calls in such a way that you
> can allocate memory for a Fortran pointer via C++. For a long time, I
> wanted to put up an example of this technique on my website, so now is
> a good time to do it.
> I'll post a link once it's there.
> 

That would be very nice.

Marco
-- 
View this message in context: 
http://www.nabble.com/Include-Fortran-Code-which-Returns-Arrays-of-Dynamic-Unknown-Size-tp19845758p20016095.html
Sent from the Octave - General mailing list archive at Nabble.com.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]