Stan Math Library
4.9.0
Automatic Differentiation
Loading...
Searching...
No Matches
plain_type.hpp
Go to the documentation of this file.
1
#ifndef STAN_MATH_OPENCL_PLAIN_TYPE_HPP
2
#define STAN_MATH_OPENCL_PLAIN_TYPE_HPP
3
#ifdef STAN_OPENCL
4
5
#include <
stan/math/opencl/matrix_cl.hpp
>
6
#include <
stan/math/prim/meta/is_kernel_expression.hpp
>
7
#include <
stan/math/prim/meta/plain_type.hpp
>
8
9
namespace
stan
{
10
16
template
<
typename
T>
17
struct
plain_type
<T,
require_all_kernel_expressions_and_none_scalar_t
<T>> {
18
using
type
=
math::matrix_cl<typename std::decay_t<T>::Scalar
>;
19
};
20
21
}
// namespace stan
22
23
#endif
24
#endif
stan::math::matrix_cl
Represents an arithmetic matrix on the OpenCL device.
Definition
matrix_cl.hpp:47
stan::require_all_kernel_expressions_and_none_scalar_t
require_all_t< is_kernel_expression_and_not_scalar< Types >... > require_all_kernel_expressions_and_none_scalar_t
Enables a template if all given types are non-scalar types that are a valid kernel generator expressi...
Definition
is_kernel_expression.hpp:58
is_kernel_expression.hpp
matrix_cl.hpp
stan
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
Definition
unit_vector_constrain.hpp:15
plain_type.hpp
stan::plain_type
Determines plain (non expression) type associated with T.
Definition
plain_type.hpp:17
stan
math
opencl
plain_type.hpp
[
Stan Home Page
]
© 2011–2019, Stan Development Team.