mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 03:39:01 +08:00
Build deprecated snippets with -DEIGEN_NO_DEPRECATED_WARNING
Also, document LinSpaced only where it is implemented
This commit is contained in:
parent
3cd148f983
commit
c2671e5315
@ -232,7 +232,12 @@ DenseBase<Derived>::Constant(const Scalar& value)
|
|||||||
|
|
||||||
/** \deprecated because of accuracy loss. In Eigen 3.3, it is an alias for LinSpaced(Index,const Scalar&,const Scalar&)
|
/** \deprecated because of accuracy loss. In Eigen 3.3, it is an alias for LinSpaced(Index,const Scalar&,const Scalar&)
|
||||||
*
|
*
|
||||||
* \sa LinSpaced(Index,Scalar,Scalar), setLinSpaced(Index,const Scalar&,const Scalar&)
|
* \only_for_vectors
|
||||||
|
*
|
||||||
|
* Example: \include DenseBase_LinSpaced_seq_deprecated.cpp
|
||||||
|
* Output: \verbinclude DenseBase_LinSpaced_seq_deprecated.out
|
||||||
|
*
|
||||||
|
* \sa LinSpaced(Index,const Scalar&, const Scalar&), setLinSpaced(Index,const Scalar&,const Scalar&)
|
||||||
*/
|
*/
|
||||||
template<typename Derived>
|
template<typename Derived>
|
||||||
EIGEN_DEPRECATED EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const typename DenseBase<Derived>::RandomAccessLinSpacedReturnType
|
EIGEN_DEPRECATED EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const typename DenseBase<Derived>::RandomAccessLinSpacedReturnType
|
||||||
@ -244,7 +249,7 @@ DenseBase<Derived>::LinSpaced(Sequential_t, Index size, const Scalar& low, const
|
|||||||
|
|
||||||
/** \deprecated because of accuracy loss. In Eigen 3.3, it is an alias for LinSpaced(const Scalar&,const Scalar&)
|
/** \deprecated because of accuracy loss. In Eigen 3.3, it is an alias for LinSpaced(const Scalar&,const Scalar&)
|
||||||
*
|
*
|
||||||
* \sa LinSpaced(Scalar,Scalar)
|
* \sa LinSpaced(const Scalar&, const Scalar&)
|
||||||
*/
|
*/
|
||||||
template<typename Derived>
|
template<typename Derived>
|
||||||
EIGEN_DEPRECATED EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const typename DenseBase<Derived>::RandomAccessLinSpacedReturnType
|
EIGEN_DEPRECATED EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const typename DenseBase<Derived>::RandomAccessLinSpacedReturnType
|
||||||
|
@ -337,15 +337,8 @@ template<typename Derived> class DenseBase
|
|||||||
EIGEN_DEVICE_FUNC static const ConstantReturnType
|
EIGEN_DEVICE_FUNC static const ConstantReturnType
|
||||||
Constant(const Scalar& value);
|
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
|
EIGEN_DEPRECATED EIGEN_DEVICE_FUNC static const RandomAccessLinSpacedReturnType
|
||||||
LinSpaced(Sequential_t, Index size, const Scalar& low, const Scalar& high);
|
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
|
EIGEN_DEPRECATED EIGEN_DEVICE_FUNC static const RandomAccessLinSpacedReturnType
|
||||||
LinSpaced(Sequential_t, const Scalar& low, const Scalar& high);
|
LinSpaced(Sequential_t, const Scalar& low, const Scalar& high);
|
||||||
|
|
||||||
|
@ -18,6 +18,9 @@ foreach(snippet_src ${snippets_SRCS})
|
|||||||
if(${snippet_src} MATCHES "cxx11")
|
if(${snippet_src} MATCHES "cxx11")
|
||||||
set_target_properties(${compile_snippet_target} PROPERTIES COMPILE_FLAGS "-std=c++11")
|
set_target_properties(${compile_snippet_target} PROPERTIES COMPILE_FLAGS "-std=c++11")
|
||||||
endif()
|
endif()
|
||||||
|
if(${snippet_src} MATCHES "deprecated")
|
||||||
|
set_target_properties(${compile_snippet_target} PROPERTIES COMPILE_FLAGS "-DEIGEN_NO_DEPRECATED_WARNING")
|
||||||
|
endif()
|
||||||
add_custom_command(
|
add_custom_command(
|
||||||
TARGET ${compile_snippet_target}
|
TARGET ${compile_snippet_target}
|
||||||
POST_BUILD
|
POST_BUILD
|
||||||
|
Loading…
x
Reference in New Issue
Block a user