Stan
1.3
probability, sampling & optimization
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerator
Friends
Macros
Pages
src
stan
agrad
rev
step.hpp
Go to the documentation of this file.
1
#ifndef __STAN__AGRAD__REV__STEP_HPP__
2
#define __STAN__AGRAD__REV__STEP_HPP__
3
4
#include <
stan/agrad/rev/var.hpp
>
5
6
namespace
stan {
7
namespace
agrad {
8
25
inline
var
step
(
const
stan::agrad::var
& a) {
26
return
var
(
new
vari
(a.
vi_
->
val_
< 0.0 ? 0.0 : 1.0));
27
}
28
29
}
30
}
31
#endif
[
Stan Home Page
]
© 2011–2013, Stan Development Team.