ADD: added other eigen lib
This commit is contained in:
@@ -62,7 +62,7 @@ template<typename Scalar> void sparse_solvers(int rows, int cols)
|
||||
{
|
||||
SparseMatrix<Scalar> cm2(m2);
|
||||
//Index rows, Index cols, Index nnz, Index* outerIndexPtr, Index* innerIndexPtr, Scalar* valuePtr
|
||||
MappedSparseMatrix<Scalar> mm2(rows, cols, cm2.nonZeros(), cm2.outerIndexPtr(), cm2.innerIndexPtr(), cm2.valuePtr());
|
||||
Map<SparseMatrix<Scalar> > mm2(rows, cols, cm2.nonZeros(), cm2.outerIndexPtr(), cm2.innerIndexPtr(), cm2.valuePtr());
|
||||
VERIFY_IS_APPROX(refMat2.conjugate().template triangularView<Upper>().solve(vec2),
|
||||
mm2.conjugate().template triangularView<Upper>().solve(vec3));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user