numerical-collection-cpp 0.10.0
A collection of algorithms in numerical analysis implemented in C++
Loading...
Searching...
No Matches
differentiate.h File Reference

Definition of differentiate function. More...

#include <cstddef>
#include <memory>
#include <utility>
#include <vector>
#include <Eigen/Core>
#include "num_collect/auto_diff/backward/graph/node_differentiator.h"
#include "num_collect/auto_diff/backward/variable.h"
#include "num_collect/base/exception.h"
#include "num_collect/base/index_type.h"
#include "num_collect/base/precondition.h"
#include "num_collect/logging/logging_macros.h"
#include "num_collect/util/safe_cast.h"
+ Include dependency graph for differentiate.h:

Go to the source code of this file.

Classes

class  num_collect::auto_diff::backward::impl::differentiate_scalar_with_matrix_functor< ArgType >
 Class of functor to assign differential coefficients to matrices on the condition that a scalar-valued function is differentiated by a matrix-valued variable. More...
 
class  num_collect::auto_diff::backward::impl::differentiate_vector_with_vector_functor< FuncValType, ArgType >
 Class of functor to assign differential coefficients to matrices on the condition that a vector-valued function is differentiated by a vector-valued variable. More...
 

Namespaces

namespace  num_collect
 Namespace of num_collect source codes.
 
namespace  num_collect::auto_diff
 Namespace of automatic differentiation.
 
namespace  num_collect::auto_diff::backward
 Namespace of backward-mode automatic differentiation.
 
namespace  num_collect::auto_diff::backward::impl
 Namespace of internal implementations.
 

Functions

template<typename FuncValType , typename ArgType >
auto num_collect::auto_diff::backward::differentiate (const Eigen::MatrixBase< FuncValType > &func_value, const Eigen::MatrixBase< ArgType > &arg) -> Eigen::CwiseNullaryOp< impl::differentiate_vector_with_vector_functor< FuncValType, ArgType >, typename impl::differentiate_vector_with_vector_functor< FuncValType, ArgType >::result_type >
 Compute differential coefficients.
 
template<typename Scalar , typename ArgDerived >
auto num_collect::auto_diff::backward::differentiate (const variable< Scalar > &func_value, const Eigen::MatrixBase< ArgDerived > &arg) -> Eigen::CwiseNullaryOp< impl::differentiate_scalar_with_matrix_functor< ArgDerived >, typename impl::differentiate_scalar_with_matrix_functor< ArgDerived >::result_type >
 Compute differential coefficients.
 
template<typename Scalar >
auto num_collect::auto_diff::backward::differentiate (const variable< Scalar > &func_value, const variable< Scalar > &arg) -> Scalar
 Compute a differential coefficient.
 

Detailed Description

Definition of differentiate function.

Definition in file differentiate.h.