Skip to content

Commit

Permalink
still debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
wgledbetter committed Sep 1, 2020
1 parent 22fc7a3 commit b3aa69c
Showing 1 changed file with 27 additions and 27 deletions.
54 changes: 27 additions & 27 deletions include/boost/math/differentiation/autodiff_eigen.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,34 +20,34 @@ struct NumTraits<boost::math::differentiation::autodiff_v1::detail::
};
};

#define BOOST_AUTODIFF_EIGEN_SCALAR_TRAITS(A) \
template <class Scalar, size_t Order, typename BinaryOp> \
struct ScalarBinaryOpTraits<boost::math::differentiation::autodiff_v1:: \
detail::template fvar<Scalar, Order>, \
A, BinaryOp> { \
typedef boost::math::differentiation::autodiff_v1::detail::template fvar< \
Scalar, Order> \
ReturnType; \
}; \
template <class Scalar, size_t Order, typename BinaryOp> \
struct ScalarBinaryOpTraits<A, \
boost::math::differentiation::autodiff_v1:: \
detail::template fvar<Scalar, Order>, \
BinaryOp> { \
typedef boost::math::differentiation::autodiff_v1::detail::template fvar< \
Scalar, Order> \
ReturnType; \
};
// #define BOOST_AUTODIFF_EIGEN_SCALAR_TRAITS(A) \
// template <class Scalar, size_t Order, typename BinaryOp> \
// struct ScalarBinaryOpTraits<boost::math::differentiation::autodiff_v1:: \
// detail::template fvar<Scalar, Order>, \
// A, BinaryOp> { \
// typedef boost::math::differentiation::autodiff_v1::detail::template fvar< \
// Scalar, Order> \
// ReturnType; \
// }; \
// template <class Scalar, size_t Order, typename BinaryOp> \
// struct ScalarBinaryOpTraits<A, \
// boost::math::differentiation::autodiff_v1:: \
// detail::template fvar<Scalar, Order>, \
// BinaryOp> { \
// typedef boost::math::differentiation::autodiff_v1::detail::template fvar< \
// Scalar, Order> \
// ReturnType; \
// };

BOOST_AUTODIFF_EIGEN_SCALAR_TRAITS(float);
BOOST_AUTODIFF_EIGEN_SCALAR_TRAITS(double);
BOOST_AUTODIFF_EIGEN_SCALAR_TRAITS(long double);
BOOST_AUTODIFF_EIGEN_SCALAR_TRAITS(short);
BOOST_AUTODIFF_EIGEN_SCALAR_TRAITS(unsigned short);
BOOST_AUTODIFF_EIGEN_SCALAR_TRAITS(int);
BOOST_AUTODIFF_EIGEN_SCALAR_TRAITS(unsigned int);
BOOST_AUTODIFF_EIGEN_SCALAR_TRAITS(long);
BOOST_AUTODIFF_EIGEN_SCALAR_TRAITS(unsigned long);
// BOOST_AUTODIFF_EIGEN_SCALAR_TRAITS(float);
// BOOST_AUTODIFF_EIGEN_SCALAR_TRAITS(double);
// BOOST_AUTODIFF_EIGEN_SCALAR_TRAITS(long double);
// BOOST_AUTODIFF_EIGEN_SCALAR_TRAITS(short);
// BOOST_AUTODIFF_EIGEN_SCALAR_TRAITS(unsigned short);
// BOOST_AUTODIFF_EIGEN_SCALAR_TRAITS(int);
// BOOST_AUTODIFF_EIGEN_SCALAR_TRAITS(unsigned int);
// BOOST_AUTODIFF_EIGEN_SCALAR_TRAITS(long);
// BOOST_AUTODIFF_EIGEN_SCALAR_TRAITS(unsigned long);

// template <typename RealType, size_t Order, typename RealType2, size_t Order2,
// typename BinaryOp>
Expand Down

0 comments on commit b3aa69c

Please sign in to comment.