Brush C++ API
A flexible interpretable machine learning framework
|
#include <tiny_cost_function.h>
Public Types | |
enum | { NUM_RESIDUALS = Eigen::Dynamic , NUM_PARAMETERS = Eigen::Dynamic } |
using | Scalar = ScalarType |
using | JacobianType = Eigen::Matrix<Brush::Scalar, -1, -1> |
using | QRSolver = Eigen::ColPivHouseholderQR<JacobianType> |
Public Member Functions | |
TinyCostFunction (CostFunctor const &functor) | |
auto | Evaluate (Scalar const *parameters, Scalar *residuals, Scalar *jacobian) const -> bool |
auto | operator() (Scalar const *parameters, Scalar *residuals, Scalar *jacobian) const -> bool |
auto | NumResiduals () const -> int |
auto | NumParameters () const -> int |
auto | operator() (Eigen::Matrix< Scalar, -1, 1 > const &input, Eigen::Matrix< Scalar, -1, 1 > &residual) -> int |
auto | df (Eigen::Matrix< Scalar, -1, 1 > const &input, Eigen::Matrix< Scalar, -1, -1 > &jacobian) -> int |
auto | values () const -> int |
auto | inputs () const -> int |
Static Public Attributes | |
static constexpr int | Stride = DualType::DIMENSION |
static constexpr int | Storage = StorageOrder |
Private Attributes | |
CostFunctor | functor_ |
Definition at line 81 of file tiny_cost_function.h.
using Brush::TinyCostFunction< CostFunctor, DualType, ScalarType, StorageOrder >::JacobianType = Eigen::Matrix<Brush::Scalar, -1, -1> |
Definition at line 112 of file tiny_cost_function.h.
using Brush::TinyCostFunction< CostFunctor, DualType, ScalarType, StorageOrder >::QRSolver = Eigen::ColPivHouseholderQR<JacobianType> |
Definition at line 113 of file tiny_cost_function.h.
using Brush::TinyCostFunction< CostFunctor, DualType, ScalarType, StorageOrder >::Scalar = ScalarType |
Definition at line 84 of file tiny_cost_function.h.
anonymous enum |
Enumerator | |
---|---|
NUM_RESIDUALS | |
NUM_PARAMETERS |
Definition at line 86 of file tiny_cost_function.h.
|
inlineexplicit |
Definition at line 91 of file tiny_cost_function.h.
|
inline |
|
inline |
Definition at line 96 of file tiny_cost_function.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
Definition at line 134 of file tiny_cost_function.h.
|
staticconstexpr |
Definition at line 83 of file tiny_cost_function.h.
|
staticconstexpr |
Definition at line 82 of file tiny_cost_function.h.