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
7#include <complex>
8
9namespace stan {
10namespace math {
11
18inline var norm(const std::complex<var>& z) {
19 return internal::complex_norm(z);
20}
21
22} // namespace math
23} // namespace stan
24
25#endif
V complex_norm(const std::complex< V > &z)
Return the squared magnitude of the complex argument.
Definition norm.hpp:31
fvar< T > norm(const std::complex< fvar< T > > &z)
Return the squared magnitude of the complex argument.
Definition norm.hpp:19
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...