CMS 3D CMS Logo

Functions

magfieldparam::bcylDetails Namespace Reference

Functions

template<typename T >
void ffunkti (T u, T *__restrict__ ff) __attribute__((always_inline))
float myExp (float x)
double myExp (double x)

Function Documentation

template<typename T >
void magfieldparam::bcylDetails::ffunkti ( T  u,
T *__restrict__  ff 
) [inline]

Definition at line 49 of file BCyl.h.

References a, b, and mathSSE::sqrt().

Referenced by magfieldparam::BCycl< float >::compute().

                                                  {
      // Function and its 3 derivatives
      T a,b,a2,u2;
      u2=u*u; 
      a=T(1)/(T(1)+u2);
      a2=-T(3)*a*a;
      b=std::sqrt(a);
      ff[0]=u*b;
      ff[1]=a*b;
      ff[2]=a2*ff[0];
      ff[3]=a2*ff[1]*(T(1)-4*u2);
    }
float magfieldparam::bcylDetails::myExp ( float  x) [inline]

Definition at line 63 of file BCyl.h.

References x.

{ return unsafe_expf<3>(x);}
double magfieldparam::bcylDetails::myExp ( double  x) [inline]

Definition at line 62 of file BCyl.h.

References create_public_lumi_plots::exp.

Referenced by magfieldparam::BCycl< float >::compute().

{ return std::exp(x);}