Commit b5a5a2b4 authored by Joseph Mirabel's avatar Joseph Mirabel Committed by Joseph Mirabel
Browse files

Fix JdifferenceVisitor on vector space.

parent e62efa5f
......@@ -64,6 +64,12 @@ namespace hpp {
template <int N, bool rot>
void operator () (const liegroup::VectorSpaceOperation<N,rot>& lg)
{
if (J0_.size() > 0) {
if (ApplyOnTheLeft)
J0_.middleRows<N> (iv_, lg.nv()) *= -1;
else
J0_.middleCols<N> (iv_, lg.nv()) *= -1;
}
iq_ += lg.nq();
iv_ += lg.nv();
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment