Go to the documentation of this file.
10 #ifndef EIGEN_DETERMINANT_H
11 #define EIGEN_DETERMINANT_H
17 template<
typename Derived>
26 template<
typename Derived,
27 int DeterminantType = Derived::RowsAtCompileTime
32 if(Derived::ColsAtCompileTime==
Dynamic &&
m.rows()==0)
34 return m.partialPivLu().determinant();
52 return m.coeff(0,0) *
m.coeff(1,1) -
m.coeff(1,0) *
m.coeff(0,1);
79 Scalar d3_0 = det3(
m, 1,d2_23, 2,d2_13, 3,d2_12);
80 Scalar d3_1 = det3(
m, 0,d2_23, 2,d2_03, 3,d2_02);
81 Scalar d3_2 = det3(
m, 0,d2_13, 1,d2_03, 3,d2_01);
82 Scalar d3_3 = det3(
m, 0,d2_12, 1,d2_02, 2,d2_01);
106 template<
typename Derived>
117 #endif // EIGEN_DETERMINANT_H
static traits< Derived >::Scalar run(const Derived &m)
#define EIGEN_DEVICE_FUNC
Namespace containing all symbols from the Eigen library.
const EIGEN_DEVICE_FUNC Derived::Scalar bruteforce_det3_helper(const MatrixBase< Derived > &matrix, int a, int b, int c)
static EIGEN_DEVICE_FUNC Scalar det3(const Derived &m, Index i0, const Scalar &d0, Index i1, const Scalar &d1, Index i2, const Scalar &d2)
static EIGEN_DEVICE_FUNC traits< Derived >::Scalar run(const Derived &m)
traits< Derived >::Scalar Scalar
static EIGEN_DEVICE_FUNC traits< Derived >::Scalar run(const Derived &m)
EIGEN_DEVICE_FUNC Scalar determinant() const
Map< Matrix< T, Dynamic, Dynamic, ColMajor >, 0, OuterStride<> > matrix(T *data, int rows, int cols, int stride)
static EIGEN_DEVICE_FUNC traits< Derived >::Scalar run(const Derived &m)
static EIGEN_DEVICE_FUNC Scalar det2(const Derived &m, Index i0, Index i1)
EIGEN_STRONG_INLINE Packet4f pmadd(const Packet4f &a, const Packet4f &b, const Packet4f &c)
static EIGEN_DEVICE_FUNC Scalar run(const Derived &m)
Base class for all dense matrices, vectors, and expressions.
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:02:12