mgcpp
A C++ Math Library Based on CUDA
gradients.hpp
Go to the documentation of this file.
1 #ifndef GRADIENTS_HPP
2 #define GRADIENTS_HPP
3 
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 
16 #endif // GRADIENTS_HPP
Definition: adapter_base.hpp:12
auto grad(scalar_expr< Expr > const &expr, placeholder_node< PlaceholderID, PhResultType > wrt)