[Developers] d4_array

dave fournier davef at otter-rsch.com
Thu Jul 24 10:51:51 PDT 2014


On 07/24/2014 10:41 AM, John Sibert wrote:

Probably never wrote itself.  Unallocated objects were a later development.
Wouldn't be much work to implement, but getting it into the code base ...


> I was looking for a null constructor to use in the DATA_SECTION
>   4darray effort_proxy;
>
> and then allocate later
>   effort_proxy.allocate(int,int, int,int, ivector&,ivector&, 
> ivector&,ivector&)
>
> I do this routinely with d3_arrays:
>    3darray effort;
>
>    effort.allocate(0, nfleet, ilbv, iubv, jlbm, jubm);
>
> John Sibert
> Emeritus Researcher, SOEST
> University of Hawaii at Manoa
> Honolulu HI (GMT-10)
> 808-294-3842 (mobile)
>
> Visit the ADMB project http://admb-project.org/
>
> On 07/23/2014 04:22 PM, dave fournier wrote:
>> On 07/23/2014 06:54 PM, John Sibert wrote:
>>> How does one declare a d4_array in a tpl file?
>>>
>> init_4darray
>>
>> for initial one but maybe that is not what you want?
>> _______________________________________________
>> Developers mailing list
>> Developers at admb-project.org
>> http://lists.admb-project.org/mailman/listinfo/developers
>>
>
>



More information about the Developers mailing list