33 #ifndef EIGEN_PARTIALLU_LAPACK_H
34 #define EIGEN_PARTIALLU_LAPACK_H
42 namespace lapacke_helpers {
47 template<
typename Scalar,
int StorageOrder>
48 struct lapacke_partial_lu {
61 nb_transpositions = 0;
63 lapack_int info = getrf(matrix_order,
m,
n, to_lapack(
a), lda, ipiv );
66 for(
int i=0;
i<
m;
i++) {
68 if (ipiv[
i] !=
i) nb_transpositions++;
71 return first_zero_pivot;
81 #define EIGEN_LAPACKE_PARTIAL_LU(EIGTYPE) \
82 template<int StorageOrder> \
83 struct partial_lu_impl<EIGTYPE, StorageOrder, lapack_int, Dynamic> : public lapacke_helpers::lapacke_partial_lu<EIGTYPE, StorageOrder> {};
90 #undef EIGEN_LAPACKE_PARTIAL_LU
#define EIGEN_UNUSED_VARIABLE(var)
#define EIGEN_LAPACKE_PARTIAL_LU(EIGTYPE)
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.