[ADOL-C] Signature of Hessian driver

Philipp Bender pbender at fzi.de
Tue Sep 23 04:29:01 EDT 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dear list,

I wonder about the declaration of the hessian() function: why is the
pointer to the values x not const, is there a special reason? The
gradient() function for example leaves the input values const.

drivers.h:
ADOLC_DLL_EXPORT int hessian(short,int,double*,double**);
ADOLC_DLL_EXPORT int gradient(short,int,const double*,double*);

The same applies to function(), not const.

Actually I have not tried to fix this because I am in a very early
stage using ADOL-C, and I'm a little bit afraid of breaking it (making
it compile, but get some strange side effects).

Best regards,
Philipp Bender
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJUIS9NAAoJEMSOzTAqQDLoxwoQAIxBbMg4q2G8EcFxgoIJm1zB
qCDkTs7VE2abC+QOqFraw+XYVGoqmD/QmCJXiQS/jqvSDWzBJ0MK1IC6Bipi3moh
lU9pXg9gyT6k6dpq8Avy0Xmh8TyV7bbj2kuy4rqAfn74Rq9YVhOBYGVuyxcTsj07
FCNK0bkIeby9/QQOOTRipE/uIOGIvOCDLzHDOaC+XdrbHJMe5sthT+dJXMbMmtyf
OWpuqA6M2hvrBLUgM8mr2smY1/5iWkXEbcyYRfRp5/zi/94qm3l2ksvLiqnikyHX
OBaMF3jS1B+Em60RjB9QAVBJgaBIDyjsOj31CKUCQtLYZYO2tN6x2EJIfXAOvOnm
w49NTdzhG6pojVy2wKFPs2RR+zDEDAEG4mqvXpTYiJSXkteXMuX1BNNdxpyWisAc
NWAszxlTGzQE6spReFqC+O4spkFe95gowQcWXLQ1EwKnKzV/JAScB2s430LI6ExT
Tv1V5WFQGbUiRLzaS7J1I9GZFvWxzLjDWfS4gfkb3jYKDkacXRu1vKKAWocf2L5V
zIIJr1BYxUslLX9ozIBA0LYADwWOATdJ1F/SPYdr+Nktvtrpnk2On+EIyCwV5FVm
CWTIXH4768aKpGORMWaUwvRDPnCN0JvYv2BgA7OddUw1q5bjoMpcsZeqjpxek8xP
8VjI66cb9/tVMAtZYiRG
=rec5
-----END PGP SIGNATURE-----


More information about the ADOL-C mailing list