Loading [MathJax]/extensions/TeX/AMSsymbols.js
Stan Math Library
5.0.0
Automatic Differentiation
▼
Stan Math Library
Overview
▼
Contributor Guides
Developer Guide
Adding New Functions
Adding New Distributions
Common Pitfalls
Using requires for general overloads
Reverse Mode Types
Testing Automatic Differentiation Functions
Testing New Distributions
Add New Functions With Known Gradients
Adding New OpenCL Functions
Windows Development Tips
▼
Internal Docs
►
Probability Distributions
►
OpenCL
►
Compressed Sparse Row matrix format.
►
Type Traits
►
Available requires<> for overloading.
►
Eigen expressions
►
arena_matrix <br>
►
real <br>
►
Parallelism
(External Link) Stan Language Docs
(External Link) Stan Discourse
►
Stan Math Library Docs
►
Class List
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
inv_sqrt.hpp
Go to the documentation of this file.
1
#ifndef STAN_MATH_OPENCL_PRIM_FUN_INV_SQRT_HPP
2
#define STAN_MATH_OPENCL_PRIM_FUN_INV_SQRT_HPP
3
#ifdef STAN_OPENCL
4
5
#include <
stan/math/opencl/matrix_cl.hpp
>
6
#include <
stan/math/opencl/kernel_generator.hpp
>
7
8
namespace
stan
{
9
namespace
math {
10
19
template
<
typename
T_x,
20
typename
= require_all_kernel_expressions_and_none_scalar_t<T_x>>
21
inline
auto
inv_sqrt
(T_x&& x) {
// NOLINT
22
return
rsqrt
(std::forward<T_x>(x));
23
}
24
}
// namespace math
25
}
// namespace stan
26
27
#endif
28
#endif
stan::math::rsqrt
rsqrt_< as_operation_cl_t< T > > rsqrt(T &&a)
Definition
elt_function_cl.hpp:260
kernel_generator.hpp
matrix_cl.hpp
stan::math::inv_sqrt
fvar< T > inv_sqrt(const fvar< T > &x)
Definition
inv_sqrt.hpp:14
stan
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
Definition
unit_vector_constrain.hpp:15
stan
math
opencl
prim
inv_sqrt.hpp
[
Stan Home Page
]
© 2011–2019, Stan Development Team.