[ADMB Users] vectoizing pow for random effects
Mollie Brooks
mbrooks at ufl.edu
Mon Jul 11 20:47:14 PDT 2011
Sorry, it turns out that function didn't exist. I wonder why it showed up in the doxygen at the link below.
I solved the problem by writing
dvar_vector pow(const dvector& x,const dvar_vector& a)
On 11 Jul 2011, at 11:38 PM, Mollie Brooks wrote:
> I thought that pow was already overloaded for dvar_vectors.
> See http://admb-project.org/documentation/api/fvar_8hpp.html#aad01213052d6d5ea585a60b19ef16fa0
> This function is suspicious though because there's no documentation.
>
> I'm attaching a test file that sends a random effects vector to the function Hill(). It produces the same errors.
>
> bash-3.2$ admb -r testHill_RE
>
> *** tpl2rem testHill_RE
>
> *** CXXFLAGS="" adcomp -r testHill_RE
> g++ -c -O3 -Wno-deprecated -D__GNUDOS__ -Dlinux -DOPT_LIB -DUSE_LAPLACE -fpermissive -I. -I/usr/local/admb/include testHill_RE.cpp
>
> *** LDFLAGS=" " adlink -r testHill_RE
> g++ -L/usr/local/admb/lib testHill_RE.o -ldf1b2o -ladmod -ladt -lado -ldf1b2o -ladmod -ladt -lado -o testHill_RE
> Undefined symbols:
> "pow(dvector const&, dvar_vector const&)", referenced from:
> Hill(dvector const&, dvar_vector const&, dvar_vector const&, dvar_vector const&)in testHill_RE.o
> Hill(dvector const&, dvar_vector const&, dvar_vector const&, dvar_vector const&)in testHill_RE.o
> Hill(dvector const&, prevariable const&, dvar_vector const&, dvar_vector const&)in testHill_RE.o
> Hill(dvector const&, prevariable const&, dvar_vector const&, dvar_vector const&)in testHill_RE.o
> Hill(dvector const&, dvar_vector const&, prevariable const&, dvar_vector const&)in testHill_RE.o
> Hill(dvector const&, dvar_vector const&, prevariable const&, dvar_vector const&)in testHill_RE.o
> Hill(dvector const&, prevariable const&, prevariable const&, dvar_vector const&)in testHill_RE.o
> Hill(dvector const&, prevariable const&, prevariable const&, dvar_vector const&)in testHill_RE.o
> ld: symbol(s) not found
> collect2: ld returned 1 exit status
>
> Error: could not create testHill_RE
> <testHill_RE.tpl>
>
>
>
> On 11 Jul 2011, at 8:32 PM, Steve Martell wrote:
>
>> I did not try and compile your code, but it appears you have overloaded the pow function as a df1b2vector only by you are passing it dvar_vectors.
>>
>> S.
>> On 2011-07-11, at 4:41 PM, Mollie Brooks wrote:
>>
>>> <pow_vectorized_RE.cpp><Hill.cpp>
>>
>>
>
> _______________________________________________
> Users mailing list
> Users at admb-project.org
> http://lists.admb-project.org/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.admb-project.org/pipermail/users/attachments/20110711/b8c2dc79/attachment.html>
More information about the Users
mailing list