--
You received this message because you are subscribed to the Google Groups "Ceres Solver" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ceres-solver...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ceres-solver/06cbd333-0b7d-4945-9e3d-646aae8e17bd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/ceres-solver/ca5bbc75-c9a8-4007-9ba0-2c10c800401a%40googlegroups.com.
template<class A> auto operator-(const Expr<A>& a) { return Unary<A,Minus>(a.cast()); }
template<class A> auto operator-(const Expr<A>& a) { return Unary<A,Minus<A>>(a.cast()); }
template<class A, class Op> struct Unary : Expr<Unary<A,Op>>
{
typename Traits<A>::type a;
Unary(const A& a_):a(a_){}
auto value() const { return Op::value(a); }
...
};
template<class A, class Op> struct Unary : Expr<Unary<A,Op>>
{
typename Traits<A>::type a;
Unary(const A& a_):a(a_){}
typename Op::Value value() const { return Op::value(a); }
...
};
struct Minus
{
template<class A> static auto value (const A& a) { return - a.value();}
...
};template<class A> struct Minus
{
typedef Eigen::CwiseUnaryOp<Eigen::internal::scalar_opposite_op<double>, const A > Value;
static Value value(const A& a) { return Value<A>(a.value());}
...
};I didn't know these works. I have take a loot at this page http://www.autodiff.org/ which contains a lot of libraries, and I have tested Adept and FADBAD but I found worst performances than the default jet implementation.
Best regards,--PabloPS: btw, I like your implementation :) Thanks again for sharing it.
--
You received this message because you are subscribed to the Google Groups "Ceres Solver" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ceres-solver...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ceres-solver/CAKu04dVhGz-LJCmQHFMM1%3DirPWsbZmfAUi2bSQGqab4LakMBKQ%40mail.gmail.com.