Stan Math Library  2.20.0
reverse mode automatic differentiation
Classes | Namespaces | Functions
inv_square.hpp File Reference
#include <stan/math/rev/meta.hpp>
#include <stan/math/rev/core.hpp>
#include <stan/math/prim/scal/fun/inv_square.hpp>

Go to the source code of this file.

Classes

class  stan::math::internal::inv_square_vari
 

Namespaces

 stan
 
 stan::math
 Matrices and templated mathematical functions.
 
 stan::math::internal
 

Functions

var stan::math::inv_square (const var &a)
 

\[ \mbox{inv\_square}(x) = \begin{cases} \frac{1}{x^2} & \mbox{if } -\infty\leq x \leq \infty \\[6pt] \textrm{NaN} & \mbox{if } x = \textrm{NaN} \end{cases} \]

More...
 

     [ Stan Home Page ] © 2011–2018, Stan Development Team.