Specify Permutation Index for PartialPivLU and FullPivLU

This commit is contained in:
Charles Schlosser
2023-03-07 20:28:05 +00:00
committed by Rasmus Munk Larsen
parent eb4dbf6135
commit 7bf2968fed
5 changed files with 80 additions and 78 deletions

View File

@@ -328,10 +328,10 @@ template<typename Derived> class MatrixBase
/////////// LU module ///////////
inline const FullPivLU<PlainObject> fullPivLu() const;
inline const PartialPivLU<PlainObject> partialPivLu() const;
template<typename PermutationIndex = DefaultPermutationIndex> inline const FullPivLU<PlainObject, PermutationIndex> fullPivLu() const;
template<typename PermutationIndex = DefaultPermutationIndex> inline const PartialPivLU<PlainObject, PermutationIndex> partialPivLu() const;
inline const PartialPivLU<PlainObject> lu() const;
template<typename PermutationIndex = DefaultPermutationIndex> inline const PartialPivLU<PlainObject, PermutationIndex> lu() const;
EIGEN_DEVICE_FUNC
inline const Inverse<Derived> inverse() const;

View File

@@ -270,8 +270,8 @@ typedef lapack_int DefaultPermutationIndex;
typedef int DefaultPermutationIndex;
#endif
template<typename MatrixType> class FullPivLU;
template<typename MatrixType> class PartialPivLU;
template<typename MatrixType, typename PermutationIndex = DefaultPermutationIndex> class FullPivLU;
template<typename MatrixType, typename PermutationIndex = DefaultPermutationIndex> class PartialPivLU;
namespace internal {
template<typename MatrixType> struct inverse_impl;
}