Crocoddyl
 
Loading...
Searching...
No Matches
smooth-abs.hpp
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.
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
16namespace crocoddyl {
17
18template <typename Scalar>
20 : public ActivationModelSmooth1NormTpl<Scalar> {
21 public:
22 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
23
25
26 DEPRECATED("Use ActivationModelSmooth1Norm",
28 const std::size_t nr,
29 const Scalar eps = Scalar(1.)) : Base(nr, eps){};)
30};
31
32template <typename Scalar>
34 : public ActivationDataSmooth1NormTpl<Scalar> {
35 public:
36 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
37
39
40 template <typename Activation>
41 DEPRECATED("Use ActivationDataSmooth1Norm",
43 Activation* const activation) : Base(activation){})
44};
45
46} // namespace crocoddyl
47
48#endif // CROCODDYL_CORE_ACTIVATIONS_SMOOTH_ABS_HPP_