- 3.0.2 core module.
ActivationLoadMacros.h
Go to the documentation of this file.
1 /**********************************************************************************************************************
2 This file is part of the Control Toolbox (https://github.com/ethz-adrl/control-toolbox), copyright by ETH Zurich.
3 Licensed under the BSD-2 license (see LICENSE file in main directory)
4 **********************************************************************************************************************/
5 
6 #pragma once
7 
8 #define CT_LOADABLE_ACTIVATION(SCALAR, ACTIVATION, ACTIVATIONNAME) \
9  if (activationKind == ACTIVATIONNAME) \
10  { \
11  c_i = std::shared_ptr<ct::core::tpl::ACTIVATION<SCALAR>>(new ct::core::tpl::ACTIVATION<SCALAR>()); \
12  }