Computes an LU factorization of a general matrix.
More...
|
template<std::floating_point Float> |
auto | tatooine::lapack::getrf (int M, int N, double *A, int LDA, int *IPIV) -> int |
|
template<typename T , size_t M, size_t N> |
auto | tatooine::lapack::getrf (tensor< T, M, N > &A, tensor< int, tatooine::min(M, N)> &p) |
|
Computes an LU factorization of a general matrix.
◆ getrf() [1/2]
template<std::floating_point Float>
auto tatooine::lapack::getrf |
( |
int |
M, |
|
|
int |
N, |
|
|
double * |
A, |
|
|
int |
LDA, |
|
|
int * |
IPIV |
|
) |
| -> int |
GETRF computes an LU factorization of a general M-by-N matrix A using partial pivoting with row interchanges.
- Parameters
-
[in,out] | A | On entry, the M-by-N matrix to be factored. On exit, the factors \(\mL\) and \(\mU\) from the factorization \(\mA = \mP\cdot\mL\cdot\mU\); the unit diagonal elements of \(\mL\) are not |
[out] | p | Diagonal of \(\mP\) that represents the permutation Matrix. The pivot indices; for 1 <= i <= min(M,N), row i of the matrix was interchanged with row p(i). |
◆ getrf() [2/2]
template<typename T , size_t M, size_t N>