[eigen] CppAD / SparseTriangularSolver.h

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]


I have run into the following error using CppAD with eigen's Sparse Cholesky solver

/home/bradbell/prefix/eigen/include/Eigen/src/SparseCore/TriangularSolver.h:72:23: error: conversion from ‘int’ to non-scalar type ‘Eigen::internal::sparse_solve_triangular_selector<Eigen::Transpose<const Eigen::SparseMatrix<CppAD::AD<CppAD::AD<double> > > >, Eigen::Matrix<CppAD::AD<CppAD::AD<double> >, -1, -1>, 6, 2, 1>::Scalar {aka CppAD::AD<CppAD::AD<double> >}’ requested
         Scalar l_ii = 0;

Changing this line to
    Scalar l_ii = Scalar(0);
solves the problem.





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/