Namespaces | Macros
PartialPivLU_LAPACKE.h File Reference

Go to the source code of this file.

Namespaces

 Eigen
 Namespace containing all symbols from the Eigen library.
 
 Eigen::internal
 

Macros

#define EIGEN_LAPACKE_LU_PARTPIV(EIGTYPE, LAPACKE_TYPE, LAPACKE_PREFIX)
 

Macro Definition Documentation

#define EIGEN_LAPACKE_LU_PARTPIV (   EIGTYPE,
  LAPACKE_TYPE,
  LAPACKE_PREFIX 
)
Value:
template<int StorageOrder> \
struct partial_lu_impl<EIGTYPE, StorageOrder, lapack_int> \
{ \
/* \internal performs the LU decomposition in-place of the matrix represented */ \
static lapack_int blocked_lu(Index rows, Index cols, EIGTYPE* lu_data, Index luStride, lapack_int* row_transpositions, lapack_int& nb_transpositions, lapack_int maxBlockSize=256) \
{ \
lapack_int matrix_order, first_zero_pivot; \
lapack_int m, n, lda, *ipiv, info; \
EIGTYPE* a; \
/* Set up parameters for ?getrf */ \
matrix_order = StorageOrder==RowMajor ? LAPACK_ROW_MAJOR : LAPACK_COL_MAJOR; \
lda = convert_index<lapack_int>(luStride); \
a = lu_data; \
ipiv = row_transpositions; \
m = convert_index<lapack_int>(rows); \
n = convert_index<lapack_int>(cols); \
info = LAPACKE_##LAPACKE_PREFIX##getrf( matrix_order, m, n, (LAPACKE_TYPE*)a, lda, ipiv ); \
for(int i=0;i<m;i++) { ipiv[i]--; if (ipiv[i]!=i) nb_transpositions++; } \
eigen_assert(info >= 0); \
/* something should be done with nb_transpositions */ \
\
first_zero_pivot = info; \
return first_zero_pivot; \
} \
};
Matrix3f m
for(size_t i=1;i< poses.size();++i)
int nb_transpositions
Definition: lapack/lu.cpp:30
#define LAPACK_COL_MAJOR
Definition: lapacke.h:122
int n
if n return
Array33i a
else if n * info
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition: Meta.h:33
#define eigen_assert(x)
Definition: Macros.h:579
#define LAPACK_ROW_MAJOR
Definition: lapacke.h:121
* lda
Definition: eigenvalues.cpp:59
#define EIGEN_UNUSED_VARIABLE(var)
Definition: Macros.h:618
#define lapack_int
Definition: lapacke.h:53

Definition at line 42 of file PartialPivLU_LAPACKE.h.



gtsam
Author(s):
autogenerated on Sat May 8 2021 02:51:32