Stan Math Library
4.9.0
Automatic Differentiation
Loading...
Searching...
No Matches
norm.hpp
Go to the documentation of this file.
1
#ifndef STAN_MATH_REV_FUN_NORM_HPP
2
#define STAN_MATH_REV_FUN_NORM_HPP
3
4
#include <
stan/math/rev/core.hpp
>
5
#include <
stan/math/rev/fun/square.hpp
>
6
#include <
stan/math/prim/fun/norm.hpp
>
7
#include <complex>
8
9
namespace
stan
{
10
namespace
math {
11
18
inline
var
norm
(
const
std::complex<var>& z) {
19
return
internal::complex_norm
(z);
20
}
21
22
}
// namespace math
23
}
// namespace stan
24
25
#endif
stan::math::var_value< double >
stan::math::internal::complex_norm
V complex_norm(const std::complex< V > &z)
Return the squared magnitude of the complex argument.
Definition
norm.hpp:31
stan::math::norm
fvar< T > norm(const std::complex< fvar< T > > &z)
Return the squared magnitude of the complex argument.
Definition
norm.hpp:20
stan
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
Definition
unit_vector_constrain.hpp:15
norm.hpp
core.hpp
square.hpp
stan
math
rev
fun
norm.hpp
[
Stan Home Page
]
© 2011–2019, Stan Development Team.