Changeset 3040


Ignore:
Timestamp:
Dec 26, 2013 10:28:14 AM (6 years ago)
Author:
bradbell
Message:

Explicitly include all of cppad with cppad_eigen.hpp.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/bug/eigen_mul.sh

    r3032 r3040  
    3232#
    3333cat << EOF > $name.cpp
    34 #include <Eigen/Core>
    35 #include <cppad/cppad.hpp>
     34#include <cppad/example/cppad_eigen.hpp>
    3635
    3736// set this flag to 1 to get a version that works without warning
  • trunk/cppad/example/cppad_eigen.hpp

    r3022 r3040  
    5757
    5858$head Example$$
    59 THe files $cref eigen_array.cpp$$ and $cref eigen_det.cpp$$
     59The files $cref eigen_array.cpp$$ and $cref eigen_det.cpp$$
    6060contain an example and test of this include file.
    6161It returns true if it succeeds and false otherwise.
    6262
    63 $head eigen_plugin.hpp$$
    64 Here is the source code for $cref eigen_plugin.hpp$$:
    65 
    6663$head Include Files$$
    67 This file $code cppad_eigen.hpp$$ requires the CppAD types to be defined.
    68 The file $code eigen_plugin$$ defines $code value_type$$
     64The file $code cppad_eigen.hpp$$ includes both
     65$code <cppad/cppad.hpp>$$ and $code <Eigen/Core>$$.
     66In addition,
     67The file $cref eigen_plugin.hpp$$
     68is used to define $code value_type$$
    6969in the Eigen matrix class definition so its vectors are
    7070$cref/simple vectors/SimpleVector/$$.
    7171$codep */
    72 # include <cppad/local/limits.hpp>
     72# include <cppad/cppad.hpp>
    7373# define EIGEN_MATRIXBASE_PLUGIN <cppad/example/eigen_plugin.hpp>
    7474# include <Eigen/Core>
Note: See TracChangeset for help on using the changeset viewer.