Build deprecated snippets with -DEIGEN_NO_DEPRECATED_WARNING

Also, document LinSpaced only where it is implemented
This commit is contained in:
Christoph Hertzberg
2019-07-12 19:43:32 +02:00
parent 3cd148f983
commit c2671e5315
4 changed files with 10 additions and 9 deletions

View File

@@ -337,15 +337,8 @@ template<typename Derived> class DenseBase
EIGEN_DEVICE_FUNC static const ConstantReturnType
Constant(const Scalar& value);
/** \deprecated because of accuracy loss.
* In Eigen 3.3, it is an alias for LinSpaced(Index,const Scalar&,const Scalar&)
*/
EIGEN_DEPRECATED EIGEN_DEVICE_FUNC static const RandomAccessLinSpacedReturnType
LinSpaced(Sequential_t, Index size, const Scalar& low, const Scalar& high);
/** \deprecated because of accuracy loss.
* In Eigen 3.3, it is an alias for LinSpaced(const Scalar&,const Scalar&)
*/
EIGEN_DEPRECATED EIGEN_DEVICE_FUNC static const RandomAccessLinSpacedReturnType
LinSpaced(Sequential_t, const Scalar& low, const Scalar& high);