Stan Math Library
4.9.0
Automatic Differentiation
|
#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/fun/Eigen.hpp>
#include <stan/math/prim/fun/inv.hpp>
#include <stan/math/prim/fun/sqrt.hpp>
#include <stan/math/prim/functor/apply_scalar_unary.hpp>
#include <stan/math/prim/functor/apply_vector_unary.hpp>
#include <cmath>
Go to the source code of this file.
Classes | |
struct | stan::math::inv_sqrt_fun |
Structure to wrap 1 / sqrt(x) so that it can be vectorized. More... | |
Namespaces | |
namespace | stan |
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation from C or the boost::math::lgamma implementation. | |
namespace | stan::math |
Matrices and templated mathematical functions. | |
Functions | |
template<typename T , require_arithmetic_t< T > * = nullptr> | |
auto | stan::math::inv_sqrt (const T x) |
template<typename Container , require_ad_container_t< Container > * = nullptr> | |
auto | stan::math::inv_sqrt (const Container &x) |
Return the elementwise 1 / sqrt(x)} of the specified argument, which may be a scalar or any Stan container of numeric scalars. | |
template<typename Container , require_not_var_matrix_t< Container > * = nullptr, require_container_bt< std::is_arithmetic, Container > * = nullptr> | |
auto | stan::math::inv_sqrt (const Container &x) |
Version of inv_sqrt() that accepts std::vectors, Eigen Matrix/Array objects or expressions, and containers of these. | |