-
Notifications
You must be signed in to change notification settings - Fork 106
Open
Description
I want to solve a linear systems equation AX = b where A is a Eigen::Matrix<AD<double>, Eigen::Dynamic, Eigen::Dynamic>, b and X are vectors Eigen::Matrix<AD<double>, Eigen::Dynamic, 1>.
I try to call the LuSolve function to solve for X as:
double logdet;
const int signed_det = LuSolve(nt, (size_t)1, A, b, X, logdet);
I know that we have to feed the A, b, X as FloatVectors, but I'm having some trouble converting to and from Eigen for CPPAd.
But I get two errors related to this:
deduced conflicting types for parameter 'const FloatVector' ('Eigen::Matrix<CppAD::AD<CppAD::cg<double>, -1, -1>' and 'ADVectorXs' {aka 'Eigen::Matrix<CppAD::AD<CppAD::cg<double>, -1, 1>'})
and when I force them both to be matrices (using hacky code)
convert 'Eigen::DenseCoeffsBase<Eigen::Matrix<CppAD::AD<CppAD::cg<double> >, -1, 1>, 1>::Scalar' {aka 'CppAD::AD<CppAD::cg<double> >'} to 'float'
I'm having some trouble understanding the conversions. Any help to resolve this would be appreciated, thank you
Metadata
Metadata
Assignees
Labels
No labels