123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- #ifndef CERES_PUBLIC_CONDITIONED_COST_FUNCTION_H_
- #define CERES_PUBLIC_CONDITIONED_COST_FUNCTION_H_
- #include <memory>
- #include <vector>
- #include "ceres/cost_function.h"
- #include "ceres/internal/disable_warnings.h"
- #include "ceres/types.h"
- namespace ceres {
- class CERES_EXPORT ConditionedCostFunction final : public CostFunction {
- public:
-
-
-
-
-
-
- ConditionedCostFunction(CostFunction* wrapped_cost_function,
- const std::vector<CostFunction*>& conditioners,
- Ownership ownership);
- ~ConditionedCostFunction() override;
- bool Evaluate(double const* const* parameters,
- double* residuals,
- double** jacobians) const override;
- private:
- std::unique_ptr<CostFunction> wrapped_cost_function_;
- std::vector<CostFunction*> conditioners_;
- Ownership ownership_;
- };
- }
- #include "ceres/internal/reenable_warnings.h"
- #endif
|