[ADOL-C] namespace for math functions

Peter Caspers pcaspers1973 at gmail.com
Sat Jul 18 15:08:56 EDT 2015


Hi,

in which namespace do the ADOL-C math functions live, for example how
do I get the line below starting with y2 = ... working ?

#include <adolc/adolc.h>

int main() {

    adouble x(3.0);
    adouble y = sin(x); // ok
    adouble y2 = ::sin(x); // not ok

    return 0;

}

Thanks a lot
Peter


More information about the ADOL-C mailing list