mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
bug #86 : use internal:: namespace instead of ei_ prefix
This commit is contained in:
@@ -45,7 +45,7 @@ template<typename Scalar> void sparse_llt(int rows, int cols)
|
||||
initSparse<Scalar>(density, refMat2, m2, ForceNonZeroDiag|MakeLowerTriangular, 0, 0);
|
||||
|
||||
for(int i=0; i<rows; ++i)
|
||||
m2.coeffRef(i,i) = refMat2(i,i) = ei_abs(ei_real(refMat2(i,i)));
|
||||
m2.coeffRef(i,i) = refMat2(i,i) = internal::abs(internal::real(refMat2(i,i)));
|
||||
|
||||
refX = refMat2.template selfadjointView<Lower>().llt().solve(b);
|
||||
if (!NumTraits<Scalar>::IsComplex)
|
||||
@@ -78,7 +78,7 @@ void test_sparse_llt()
|
||||
{
|
||||
for(int i = 0; i < g_repeat; i++) {
|
||||
CALL_SUBTEST_1(sparse_llt<double>(8, 8) );
|
||||
int s = ei_random<int>(1,300);
|
||||
int s = internal::random<int>(1,300);
|
||||
CALL_SUBTEST_2(sparse_llt<std::complex<double> >(s,s) );
|
||||
CALL_SUBTEST_1(sparse_llt<double>(s,s) );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user