Public Types | |
typedef ActivationDataAbstractTpl< Scalar > | ActivationDataAbstract |
typedef MathBaseTpl< Scalar > | MathBase |
typedef MathBase::MatrixXs | MatrixXs |
typedef MathBase::VectorXs | VectorXs |
Public Member Functions | |
ActivationModelAbstractTpl (const std::size_t nr) | |
virtual void | calc (const boost::shared_ptr< ActivationDataAbstract > &data, const Eigen::Ref< const VectorXs > &r)=0 |
virtual void | calcDiff (const boost::shared_ptr< ActivationDataAbstract > &data, const Eigen::Ref< const VectorXs > &r)=0 |
virtual boost::shared_ptr< ActivationDataAbstract > | createData () |
std::size_t | get_nr () const |
virtual void | print (std::ostream &os) const |
Print relevant information of the activation model. More... | |
Public Attributes | |
EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef _Scalar | Scalar |
Protected Attributes | |
std::size_t | nr_ |
Friends | |
std::ostream & | operator<< (std::ostream &os, const ActivationModelAbstractTpl< Scalar > &model) |
Print information on the activation model. | |
Definition at line 24 of file activation-base.hpp.
|
inlinevirtual |
Print relevant information of the activation model.
[out] | os | Output stream object |
Reimplemented in ActivationModelWeightedQuadTpl< _Scalar >, ActivationModelWeightedQuadraticBarrierTpl< _Scalar >, ActivationModelSmooth2NormTpl< _Scalar >, ActivationModelSmooth1NormTpl< _Scalar >, ActivationModelSmooth1NormTpl< Scalar >, ActivationModelQuadTpl< _Scalar >, ActivationModelQuadFlatLogTpl< _Scalar >, ActivationModelQuadFlatExpTpl< _Scalar >, ActivationModelQuadraticBarrierTpl< _Scalar >, and ActivationModel2NormBarrierTpl< _Scalar >.
Definition at line 62 of file activation-base.hpp.