| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | /////////////////////////////////////////////////////////////////////////////// | ||
| 2 | // BSD 3-Clause License | ||
| 3 | // | ||
| 4 | // Copyright (C) 2020, University of Edinburgh | ||
| 5 | // Copyright note valid unless otherwise stated in individual files. | ||
| 6 | // All rights reserved. | ||
| 7 | /////////////////////////////////////////////////////////////////////////////// | ||
| 8 | |||
| 9 | #ifndef CROCODDYL_CORE_ACTIVATIONS_SMOOTH_ABS_HPP_ | ||
| 10 | #define CROCODDYL_CORE_ACTIVATIONS_SMOOTH_ABS_HPP_ | ||
| 11 | |||
| 12 | #include "crocoddyl/core/activations/smooth-1norm.hpp" | ||
| 13 | #include "crocoddyl/core/fwd.hpp" | ||
| 14 | #include "crocoddyl/core/utils/deprecate.hpp" | ||
| 15 | |||
| 16 | namespace crocoddyl { | ||
| 17 | |||
| 18 | template <typename Scalar> | ||
| 19 | class ActivationModelSmoothAbsTpl | ||
| 20 | : public ActivationModelSmooth1NormTpl<Scalar> { | ||
| 21 | public: | ||
| 22 | EIGEN_MAKE_ALIGNED_OPERATOR_NEW | ||
| 23 | |||
| 24 | typedef ActivationModelSmooth1NormTpl<Scalar> Base; | ||
| 25 | |||
| 26 | ✗ | DEPRECATED("Use ActivationModelSmooth1Norm", | |
| 27 | explicit ActivationModelSmoothAbsTpl( | ||
| 28 | const std::size_t nr, | ||
| 29 | const Scalar eps = Scalar(1.)) : Base(nr, eps){};) | ||
| 30 | }; | ||
| 31 | |||
| 32 | template <typename Scalar> | ||
| 33 | struct ActivationDataSmoothAbsTpl | ||
| 34 | : public ActivationDataSmooth1NormTpl<Scalar> { | ||
| 35 | public: | ||
| 36 | EIGEN_MAKE_ALIGNED_OPERATOR_NEW | ||
| 37 | |||
| 38 | typedef ActivationDataSmooth1NormTpl<Scalar> Base; | ||
| 39 | |||
| 40 | template <typename Activation> | ||
| 41 | DEPRECATED("Use ActivationDataSmooth1Norm", | ||
| 42 | explicit ActivationDataSmoothAbsTpl( | ||
| 43 | Activation* const activation) : Base(activation){}) | ||
| 44 | }; | ||
| 45 | |||
| 46 | } // namespace crocoddyl | ||
| 47 | |||
| 48 | CROCODDYL_DECLARE_EXTERN_TEMPLATE_CLASS(crocoddyl::ActivationModelSmoothAbsTpl) | ||
| 49 | CROCODDYL_DECLARE_EXTERN_TEMPLATE_STRUCT(crocoddyl::ActivationDataSmoothAbsTpl) | ||
| 50 | |||
| 51 | #endif // CROCODDYL_CORE_ACTIVATIONS_SMOOTH_ABS_HPP_ | ||
| 52 |