Index: ../trunk-jpl/src/c/shared/Numerics/isnan.cpp =================================================================== --- ../trunk-jpl/src/c/shared/Numerics/isnan.cpp (revision 0) +++ ../trunk-jpl/src/c/shared/Numerics/isnan.cpp (revision 18125) @@ -0,0 +1,15 @@ +/*This routine only used by Intel compler: */ + +#ifdef HAVE_CONFIG_H + #include +#else +#error "Cannot compile with HAVE_CONFIG_H symbol! run configure first!" +#endif + +#include "isnan.h" + +#if defined(_HAVE_ADOLC_) && !defined(_WRAPPERS_) +template <> int xIsNan (const adouble& X){ + return isnan(X.getValue()); +} +#endif Index: ../trunk-jpl/src/c/shared/Numerics/isnan.h =================================================================== --- ../trunk-jpl/src/c/shared/Numerics/isnan.h (revision 18124) +++ ../trunk-jpl/src/c/shared/Numerics/isnan.h (revision 18125) @@ -24,9 +24,7 @@ #if defined(_HAVE_ADOLC_) && !defined(_WRAPPERS_) #include "./types.h" -template <> int xIsNan (const adouble& X){ - return isnan(X.getValue()); -} +template <> int xIsNan (const adouble& X); #endif #endif Index: ../trunk-jpl/src/c/shared/MemOps/MemOps.cpp =================================================================== --- ../trunk-jpl/src/c/shared/MemOps/MemOps.cpp (revision 0) +++ ../trunk-jpl/src/c/shared/MemOps/MemOps.cpp (revision 18125) @@ -0,0 +1,23 @@ +/* + * MemOps.cpp + * + * Created on: Sep 10, 2013 + * Author: utke + */ + +#ifdef HAVE_CONFIG_H + #include +#else +#error "Cannot compile with HAVE_CONFIG_H symbol! run configure first!" +#endif + +#include "MemOps.h" + +#if defined(_HAVE_ADOLC_) && !defined(_WRAPPERS_) +template <> adouble* xNew(unsigned int size) { + ensureContiguousLocations(size); + adouble* aT_p=new adouble[size]; + assert(aT_p); + return aT_p; +} +#endif Index: ../trunk-jpl/src/c/shared/MemOps/MemOps.h =================================================================== --- ../trunk-jpl/src/c/shared/MemOps/MemOps.h (revision 18124) +++ ../trunk-jpl/src/c/shared/MemOps/MemOps.h (revision 18125) @@ -143,12 +143,7 @@ #if defined(_HAVE_ADOLC_) && !defined(_WRAPPERS_) #include "../Numerics/types.h" -template <> adouble* xNew(unsigned int size) { - ensureContiguousLocations(size); - adouble* aT_p=new adouble[size]; - assert(aT_p); - return aT_p; -} +template <> adouble* xNew(unsigned int size); #endif #endif Index: ../trunk-jpl/src/c/Makefile.am =================================================================== --- ../trunk-jpl/src/c/Makefile.am (revision 18124) +++ ../trunk-jpl/src/c/Makefile.am (revision 18125) @@ -174,6 +174,7 @@ ./classes/Profiler.cpp\ ./shared/shared.h\ ./shared/MemOps/MemOps.h\ + ./shared/MemOps/MemOps.cpp\ ./shared/Matrix/matrix.h\ ./shared/Matrix/MatrixUtils.cpp\ ./shared/io/io.h\ @@ -202,6 +203,7 @@ ./shared/Numerics/GaussPoints.cpp\ ./shared/Numerics/cross.cpp\ ./shared/Numerics/isnan.h\ + ./shared/Numerics/isnan.cpp\ ./shared/Numerics/cubic.cpp\ ./shared/Numerics/NewtonSolveDnorm.cpp\ ./shared/Numerics/extrema.cpp\