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
7#include <complex>
8
9namespace stan {
10namespace math {
11
19template <typename T>
20inline fvar<T> norm(const std::complex<fvar<T>>& z) {
21 return internal::complex_norm(z);
22}
23
24} // namespace math
25} // namespace stan
26
27#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:20
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
This template class represents scalars used in forward-mode automatic differentiation,...
Definition fvar.hpp:40