template<typename T, size_t N, unsigned int Flags = 0>
struct Linear::LUP< T, N, Flags >
Struct for LUP decomposition.
This struct finds NxN matrix L, NxN matrix U and NxN matrix P such that \(PA=LU\), L is lower triangular, U is upper triangular and P is a permutation matrix.
- Parameters
-
T | Type to store matrix entries as. |
N | Size of the L,U,P matrices (all three are square). Dynamic is allowed for N. |
Flags | Flags to pass to the matrices (default = row major). |
template<typename T , size_t N, unsigned int Flags = 0>
template<size_t P, size_t Q, unsigned int Flags2>
Computes the LUP decomposition.
If A is not square or Q != N, then an exception is thrown.
- Parameters
-