Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!news1.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad.highwinds-media.com!newsfe13.iad.POSTED!f8a62740!not-for-mail
From: Geico Caveman <spammers-go-here@spam.invalid>
Newsgroups: comp.soft-sys.matlab
Message-ID: <2009102921405816807-spammersgohere@spaminvalid>
References: <2009102112385016807-spammersgohere@spaminvalid> <hbnv28$c5h$1@fred.mathworks.com> <2009102115045916807-spammersgohere@spaminvalid> <hbo6a4$k5l$1@fred.mathworks.com> <2009102311375416807-spammersgohere@spaminvalid> <hc56i5$3p4$1@fred.mathworks.com> <hc5jrq$b1n$1@fred.mathworks.com> <hc7ebk$8nl$1@fred.mathworks.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
Subject: Re: mxGetNumberOfDimensions missing ?
User-Agent: Unison/1.8.1
Lines: 33
X-Complaints-To: abuse@teranews.com
NNTP-Posting-Date: Fri, 30 Oct 2009 04:40:58 UTC
Organization: TeraNews.com
Date: Thu, 29 Oct 2009 21:40:58 -0700
Xref: news.mathworks.com comp.soft-sys.matlab:581201


On 2009-10-27 11:32:20 -0700, "James Tursa" 
<aclassyguy_with_a_k_not_a_c@hotmail.com> said:

> "James Tursa" <aclassyguy_with_a_k_not_a_c@hotmail.com> wrote in 
> message <hc5jrq$b1n$1@fred.mathworks.com>...
>> "James Tursa" <aclassyguy_with_a_k_not_a_c@hotmail.com> wrote in 
>> message <hc56i5$3p4$1@fred.mathworks.com>...
>>> 
>>> Is there another way to do this and get a pointer with associated size 
>>> info attached? I don't think so.
>> 
>> I just had another thought. It might be possible to get the pointer 
>> passed back through a COMMON block. I will make some tests and let you 
>> know ...
>> 
>> James Tursa
> 
> It works!  This is going to make it a *lot* simpler to use mxArray 
> variables in Fortran code, because you will be able to simply call a 
> function with the mxArray pointer as an input and get back a Fortran 
> pointer with the dimensions already set, so you can use it as a regular 
> Fortran 2D matrix from that point on with *no* data copying involved.  
> I will clean up my code and post an example later this week. Thanks for 
> the original post ... I never would have thought to use pointers this 
> way until I read your post.
> 
> James Tursa

Thanks for writing back with such detailed responses. I got busy with a 
few other things, and lost track of this.

Let me go over your posts and get back to you this weekend.