MBDyn-1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
grad::FuncTanh Class Reference

#include <gradient.h>

Collaboration diagram for grad::FuncTanh:

Static Public Member Functions

static scalar_func_type f (scalar_func_type u)
 
static scalar_deriv_type df_du (scalar_func_type u)
 

Static Public Attributes

static const bool bVectorize = false
 

Detailed Description

Definition at line 1985 of file gradient.h.

Member Function Documentation

static scalar_deriv_type grad::FuncTanh::df_du ( scalar_func_type  u)
inlinestatic

Definition at line 1993 of file gradient.h.

References grad::tanh().

1993  {
1994  const scalar_deriv_type tanh_u = tanh(u);
1995  return 1. - tanh_u * tanh_u;
1996  }
GradientExpression< UnaryExpr< FuncTanh, Expr > > tanh(const GradientExpression< Expr > &u)
Definition: gradient.h:2982
doublereal scalar_deriv_type
Definition: gradient.h:347

Here is the call graph for this function:

static scalar_func_type grad::FuncTanh::f ( scalar_func_type  u)
inlinestatic

Definition at line 1989 of file gradient.h.

References grad::tanh().

1989  {
1990  return tanh(u);
1991  }
GradientExpression< UnaryExpr< FuncTanh, Expr > > tanh(const GradientExpression< Expr > &u)
Definition: gradient.h:2982

Here is the call graph for this function:

Member Data Documentation

const bool grad::FuncTanh::bVectorize = false
static

Definition at line 1987 of file gradient.h.


The documentation for this class was generated from the following file: