Automatic Differentiation
 
Loading...
Searching...
No Matches
get_kernel_source_for_evaluating_into.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_OPENCL_KERNEL_GENERATOR_GET_KERNEL_SOURCE_FOR_EVALUATING_INTO_HPP // NOLINT
2#define STAN_MATH_OPENCL_KERNEL_GENERATOR_GET_KERNEL_SOURCE_FOR_EVALUATING_INTO_HPP // NOLINT
3#ifdef STAN_OPENCL
4
8#include <CL/opencl.hpp>
9#include <string>
10#include <set>
11
12namespace stan {
13namespace math {
14
18template <typename Derived, typename Scalar, typename... Args>
19template <typename T_lhs>
20std::string
22 const T_lhs& lhs) const {
23 static_assert(
25 "operation_cl::get_kernel_source_for_evaluating_into: left hand "
26 "side is not a valid expression!");
28}
30} // namespace math
31} // namespace stan
32
33#endif
34#endif
std::string get_kernel_source_for_evaluating(const expressions_cl< T_expressions... > &exprs)
Generates kernel source for evaluating given expressions into results held by this.
std::string get_kernel_source_for_evaluating_into(const T_lhs &lhs) const
Generates kernel source for evaluating this expression into given left-hand-side expression.
results_cl< T_results... > results(T_results &&... results)
Deduces types for constructing results_cl object.
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.