Ignore:
Timestamp:
Dec 7, 2009 9:49:34 AM (10 years ago)
Author:
awalther
Message:

inclusion of error function for gcc compiler

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ADOL-C/src/adouble.cpp

    r42 r61  
    2525#include <taping_p.h>
    2626
     27using namespace std;
     28
    2729/****************************************************************************/
    2830/*                                                        HELPFUL FUNCTIONS */
     
    15521554
    15531555    ADOLC_GLOBAL_TAPE_VARS.store[locat] =
    1554         ADOLC_MATH_NSP::asinh(ADOLC_GLOBAL_TAPE_VARS.store[x.location]);
     1556        ADOLC_MATH_NSP_ERF::asinh(ADOLC_GLOBAL_TAPE_VARS.store[x.location]);
    15551557    ADOLC_OPENMP_RESTORE_THREAD_NUMBER;
    15561558    return locat;
     
    15781580
    15791581    ADOLC_GLOBAL_TAPE_VARS.store[locat] =
    1580         ADOLC_MATH_NSP::acosh(ADOLC_GLOBAL_TAPE_VARS.store[x.location]);
     1582        ADOLC_MATH_NSP_ERF::acosh(ADOLC_GLOBAL_TAPE_VARS.store[x.location]);
    15811583    ADOLC_OPENMP_RESTORE_THREAD_NUMBER;
    15821584    return locat;
     
    16041606
    16051607    ADOLC_GLOBAL_TAPE_VARS.store[locat] =
    1606         ADOLC_MATH_NSP::atanh(ADOLC_GLOBAL_TAPE_VARS.store[x.location]);
     1608        ADOLC_MATH_NSP_ERF::atanh(ADOLC_GLOBAL_TAPE_VARS.store[x.location]);
    16071609    ADOLC_OPENMP_RESTORE_THREAD_NUMBER;
    16081610    return locat;
     
    16161618    locint locat = next_loc();
    16171619
    1618     adouble y = exp(-x*x);
     1620    adouble y = 2.0 /
     1621        ADOLC_MATH_NSP_ERF::sqrt(ADOLC_MATH_NSP::acos(-1.0))*exp(-x*x);
    16191622
    16201623    if (ADOLC_CURRENT_TAPE_INFOS.traceFlag) { // old: write_quad(erf_op,locat,x.location,y.location);
     
    16301633
    16311634    ADOLC_GLOBAL_TAPE_VARS.store[locat] =
    1632         ADOLC_MATH_NSP::erf(ADOLC_GLOBAL_TAPE_VARS.store[x.location]);
     1635        ADOLC_MATH_NSP_ERF::erf(ADOLC_GLOBAL_TAPE_VARS.store[x.location]);
    16331636    ADOLC_OPENMP_RESTORE_THREAD_NUMBER;
    16341637    return locat;
Note: See TracChangeset for help on using the changeset viewer.