mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-05-07 13:33:24 +08:00
Added a missing inline hints.
Removed a useless Nested temporary.
This commit is contained in:
parent
b0ffd9bf04
commit
aa6570c3a3
@ -69,7 +69,7 @@ template<typename Derived> struct ei_determinant_impl<Derived, 2>
|
|||||||
|
|
||||||
template<typename Derived> struct ei_determinant_impl<Derived, 3>
|
template<typename Derived> struct ei_determinant_impl<Derived, 3>
|
||||||
{
|
{
|
||||||
static typename ei_traits<Derived>::Scalar run(const Derived& m)
|
static inline typename ei_traits<Derived>::Scalar run(const Derived& m)
|
||||||
{
|
{
|
||||||
return ei_bruteforce_det3_helper(m,0,1,2)
|
return ei_bruteforce_det3_helper(m,0,1,2)
|
||||||
- ei_bruteforce_det3_helper(m,1,0,2)
|
- ei_bruteforce_det3_helper(m,1,0,2)
|
||||||
@ -100,8 +100,7 @@ inline typename ei_traits<Derived>::Scalar MatrixBase<Derived>::determinant() co
|
|||||||
{
|
{
|
||||||
assert(rows() == cols());
|
assert(rows() == cols());
|
||||||
typedef typename ei_nested<Derived,Base::RowsAtCompileTime>::type Nested;
|
typedef typename ei_nested<Derived,Base::RowsAtCompileTime>::type Nested;
|
||||||
Nested nested(derived());
|
return ei_determinant_impl<typename ei_cleantype<Nested>::type>::run(derived());
|
||||||
return ei_determinant_impl<typename ei_cleantype<Nested>::type>::run(nested);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // EIGEN_DETERMINANT_H
|
#endif // EIGEN_DETERMINANT_H
|
||||||
|
@ -123,7 +123,7 @@ struct ei_compute_inverse_and_det_with_check<MatrixType, ResultType, 2>
|
|||||||
****************************/
|
****************************/
|
||||||
|
|
||||||
template<typename MatrixType, typename ResultType>
|
template<typename MatrixType, typename ResultType>
|
||||||
void ei_compute_inverse_size3_helper(
|
inline void ei_compute_inverse_size3_helper(
|
||||||
const MatrixType& matrix,
|
const MatrixType& matrix,
|
||||||
const typename ResultType::Scalar& invdet,
|
const typename ResultType::Scalar& invdet,
|
||||||
const Matrix<typename ResultType::Scalar,3,1>& cofactors_col0,
|
const Matrix<typename ResultType::Scalar,3,1>& cofactors_col0,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user