mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
remove the Triangular suffix to Upper, Lower, UnitLower, etc,
and remove the respective bit flags
This commit is contained in:
@@ -41,14 +41,8 @@ const typename Derived::Scalar ei_bruteforce_det4_helper
|
||||
* (matrix.coeff(m,2) * matrix.coeff(n,3) - matrix.coeff(n,2) * matrix.coeff(m,3));
|
||||
}
|
||||
|
||||
// FIXME update computation of triangular det
|
||||
|
||||
const int TriangularDeterminant = 0;
|
||||
|
||||
template<typename Derived,
|
||||
int DeterminantType =
|
||||
(Derived::Flags & (UpperTriangularBit | LowerTriangularBit))
|
||||
? TriangularDeterminant : Derived::RowsAtCompileTime
|
||||
int DeterminantType = Derived::RowsAtCompileTime
|
||||
> struct ei_determinant_impl
|
||||
{
|
||||
static inline typename ei_traits<Derived>::Scalar run(const Derived& m)
|
||||
@@ -57,19 +51,6 @@ template<typename Derived,
|
||||
}
|
||||
};
|
||||
|
||||
template<typename Derived> struct ei_determinant_impl<Derived, TriangularDeterminant>
|
||||
{
|
||||
static inline typename ei_traits<Derived>::Scalar run(const Derived& m)
|
||||
{
|
||||
if (Derived::Flags & UnitDiagBit)
|
||||
return 1;
|
||||
else if (Derived::Flags & ZeroDiagBit)
|
||||
return 0;
|
||||
else
|
||||
return m.diagonal().redux(ei_scalar_product_op<typename ei_traits<Derived>::Scalar>());
|
||||
}
|
||||
};
|
||||
|
||||
template<typename Derived> struct ei_determinant_impl<Derived, 1>
|
||||
{
|
||||
static inline typename ei_traits<Derived>::Scalar run(const Derived& m)
|
||||
|
||||
Reference in New Issue
Block a user