mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
bug #1063: nest AutoDiffScalar by value to avoid dead references
(grafted from 971cfbb480614229b5f48b040ef9d5dd18a4ab44)
This commit is contained in:
@@ -631,7 +631,7 @@ template<typename DerType> struct NumTraits<AutoDiffScalar<DerType> >
|
|||||||
{
|
{
|
||||||
typedef AutoDiffScalar<Matrix<typename NumTraits<typename DerType::Scalar>::Real,DerType::RowsAtCompileTime,DerType::ColsAtCompileTime> > Real;
|
typedef AutoDiffScalar<Matrix<typename NumTraits<typename DerType::Scalar>::Real,DerType::RowsAtCompileTime,DerType::ColsAtCompileTime> > Real;
|
||||||
typedef AutoDiffScalar<DerType> NonInteger;
|
typedef AutoDiffScalar<DerType> NonInteger;
|
||||||
typedef AutoDiffScalar<DerType>& Nested;
|
typedef AutoDiffScalar<DerType> Nested;
|
||||||
enum{
|
enum{
|
||||||
RequireInitialization = 1
|
RequireInitialization = 1
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user