* fix compilation of unit-tests (sorry, had tested only 1 channel)

* remove buggy (superfluous?) specialization in the meta-unroller
This commit is contained in:
Benoit Jacob
2009-11-19 19:20:19 -05:00
parent a20a744adc
commit 88b551e89b
2 changed files with 17 additions and 26 deletions

View File

@@ -343,21 +343,6 @@ struct ei_triangular_assignment_selector
}
};
template<typename Derived1, typename Derived2, unsigned int Mode, bool ClearOpposite>
struct ei_triangular_assignment_selector<Derived1, Derived2, Mode, 1, ClearOpposite>
{
inline static void run(Derived1 &dst, const Derived2 &src)
{
if(Mode&UnitDiagBit)
{
if(ClearOpposite)
dst.coeffRef(0, 0) = 1;
}
else if(!(Mode & ZeroDiagBit))
dst.copyCoeff(0, 0, src);
}
};
// prevent buggy user code from causing an infinite recursion
template<typename Derived1, typename Derived2, unsigned int Mode, bool ClearOpposite>
struct ei_triangular_assignment_selector<Derived1, Derived2, Mode, 0, ClearOpposite>