mgcpp
A C++ Math Library Based on CUDA
include
mgcpp
expressions
gradients.hpp
Go to the documentation of this file.
1
#ifndef GRADIENTS_HPP
2
#define GRADIENTS_HPP
3
4
#include <
mgcpp/expressions/generic_expr.hpp
>
5
#include <
mgcpp/expressions/placeholder.hpp
>
6
7
namespace
mgcpp
{
8
9
template
<
typename
Expr,
size_t
PlaceholderID,
typename
PhResultType>
10
inline
auto
grad
(scalar_expr<Expr>
const
& expr,
11
placeholder_node<PlaceholderID, PhResultType> wrt);
12
13
}
// namespace mgcpp
14
15
#include <
mgcpp/expressions/gradients.tpp
>
16
#endif // GRADIENTS_HPP
gradients.tpp
generic_expr.hpp
mgcpp
Definition:
adapter_base.hpp:12
mgcpp::grad
auto grad(scalar_expr< Expr > const &expr, placeholder_node< PlaceholderID, PhResultType > wrt)
placeholder.hpp
Generated by
1.8.13