[eigen] eigen matrix type :: value_type problem |
[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]
As discussed below, many vector types use vector_type::value_type for the type of the elements of a vector. The CppAD EIGEN_MATRIXBASE_PLUGIN has the following code typedef Scalar value_type; so that eigen vectors have this property. This seems to cause problems with sparse matrices (see below). Is there a way around this problem ? -------- Forwarded Message
--------
Using g++ 4.8.3, if you delete
typedef Scalar value_type; at line 24 of https://projects.coin-or.org/CppAD/browser/trunk/cppad/example/eigen_plugin.hpp the error in compiling the example below goes away. CppAD expects Vector::value_type to be the type of the elements of a vector; see http://www.coin-or.org/CppAD/Doc/simplevector.xml#Value%20Type This is the same as for the C++ standard vector; as can be seen by searching for value_type on http://www.cplusplus.com/reference/vector/vector/ I wanted to ask about this on the eigen user's list http://listengine.tuxfamily.org/lists.tuxfamily.org/eigen/2014/12/maillist.html but I did not see your posting there. Brad On 12/17/2014 11:33 AM, Braun, Michael wrote:
|
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |