Automatic Differentiation
 
Loading...
Searching...
No Matches
evaluate_into.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_OPENCL_KERNEL_GENERATOR_EVALUATE_INTO_HPP
2#define STAN_MATH_OPENCL_KERNEL_GENERATOR_EVALUATE_INTO_HPP
3#ifdef STAN_OPENCL
4
9#include <CL/opencl.hpp>
10#include <string>
11#include <set>
12
13namespace stan {
14namespace math {
15
19template <typename Derived, typename Scalar, typename... Args>
20template <typename T_lhs>
22 T_lhs& lhs) const {
23 static_assert(
25 "operation_cl::evaluate_into: left hand side is not a valid expression!");
26 results(lhs) = expressions(derived());
27}
29} // namespace math
30} // namespace stan
31
32#endif
33#endif
results_cl< T_results... > results(T_results &&... results)
Deduces types for constructing results_cl object.
void evaluate_into(T_lhs &lhs) const
Evaluates this expression into given left-hand-side expression.
expressions_cl< T_expressions... > expressions(T_expressions &&... expressions)
Deduces types for constructing expressions_cl object.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
Determines whether a type is is a valid kernel generator expression.