Automatic Differentiation
 
Loading...
Searching...
No Matches
norm.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_FWD_FUN_NORM_HPP
2#define STAN_MATH_FWD_FUN_NORM_HPP
3
6#include <complex>
7
8namespace stan {
9namespace math {
10
18template <typename T>
19inline fvar<T> norm(const std::complex<fvar<T>>& z) {
20 return internal::complex_norm(z);
21}
22
23} // namespace math
24} // namespace stan
25
26#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 ...
Definition fvar.hpp:9
This template class represents scalars used in forward-mode automatic differentiation,...
Definition fvar.hpp:40