mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-01-30 17:40:05 +08:00
Fix implicit conversion warnings
This commit is contained in:
parent
92eb807c30
commit
f0efe60924
@ -26,8 +26,8 @@ EIGEN_LAPACK_FUNC(potrf,(char* uplo, int *n, RealScalar *pa, int *lda, int *info
|
||||
Scalar* a = reinterpret_cast<Scalar*>(pa);
|
||||
MatrixType A(a,*n,*n,*lda);
|
||||
int ret;
|
||||
if(UPLO(*uplo)==UP) ret = internal::llt_inplace<Scalar, Upper>::blocked(A);
|
||||
else ret = internal::llt_inplace<Scalar, Lower>::blocked(A);
|
||||
if(UPLO(*uplo)==UP) ret = int(internal::llt_inplace<Scalar, Upper>::blocked(A));
|
||||
else ret = int(internal::llt_inplace<Scalar, Lower>::blocked(A));
|
||||
|
||||
if(ret>=0)
|
||||
*info = ret+1;
|
||||
|
@ -28,8 +28,8 @@ EIGEN_LAPACK_FUNC(getrf,(int *m, int *n, RealScalar *pa, int *lda, int *ipiv, in
|
||||
|
||||
Scalar* a = reinterpret_cast<Scalar*>(pa);
|
||||
int nb_transpositions;
|
||||
int ret = Eigen::internal::partial_lu_impl<Scalar,ColMajor,int>
|
||||
::blocked_lu(*m, *n, a, *lda, ipiv, nb_transpositions);
|
||||
int ret = int(Eigen::internal::partial_lu_impl<Scalar,ColMajor,int>
|
||||
::blocked_lu(*m, *n, a, *lda, ipiv, nb_transpositions));
|
||||
|
||||
for(int i=0; i<std::min(*m,*n); ++i)
|
||||
ipiv[i]++;
|
||||
|
Loading…
Reference in New Issue
Block a user