Searched refs:functor (Results 1 - 25 of 57) sorted by relevance

123

/external/ceres-solver/internal/ceres/
H A Dnumeric_diff_functor_test.cc53 EasyFunctor functor; local
59 functor.ExpectCostFunctionEvaluationIsNearlyCorrect(*cost_function, CENTRAL);
64 functor.ExpectCostFunctionEvaluationIsNearlyCorrect(*cost_function, CENTRAL);
72 EasyFunctor functor; local
78 functor.ExpectCostFunctionEvaluationIsNearlyCorrect(*cost_function, FORWARD);
83 functor.ExpectCostFunctionEvaluationIsNearlyCorrect(*cost_function, FORWARD);
91 TranscendentalFunctor functor; local
97 functor.ExpectCostFunctionEvaluationIsNearlyCorrect(*cost_function, CENTRAL);
102 functor.ExpectCostFunctionEvaluationIsNearlyCorrect(*cost_function, CENTRAL);
110 TranscendentalFunctor functor; local
[all...]
H A Dnumeric_diff_cost_function_test.cc57 EasyFunctor functor; local
58 functor.ExpectCostFunctionEvaluationIsNearlyCorrect(*cost_function, CENTRAL);
70 EasyFunctor functor; local
71 functor.ExpectCostFunctionEvaluationIsNearlyCorrect(*cost_function, FORWARD);
83 EasyFunctor functor; local
84 functor.ExpectCostFunctionEvaluationIsNearlyCorrect(*cost_function, CENTRAL);
96 EasyFunctor functor; local
97 functor.ExpectCostFunctionEvaluationIsNearlyCorrect(*cost_function, FORWARD);
109 TranscendentalFunctor functor; local
110 functor
122 TranscendentalFunctor functor; local
135 TranscendentalFunctor functor; local
148 TranscendentalFunctor functor; local
196 EasyFunctor functor; local
[all...]
H A Dautodiff_test.cc360 // Use a single functor, but tweak it to produce different numbers of
362 VaryingResidualFunctor functor; local
366 functor.num_residuals = num_residuals;
370 functor, parameters, num_residuals, residuals, jacobians)));
529 Residual1Param functor; local
532 functor, parameters, 1, &residual, jacobians)));
540 Residual2Param functor; local
543 functor, parameters, 1, &residual, jacobians)));
551 Residual3Param functor; local
554 functor, parameter
562 Residual4Param functor; local
573 Residual5Param functor; local
584 Residual6Param functor; local
597 Residual7Param functor; local
610 Residual8Param functor; local
623 Residual9Param functor; local
637 Residual10Param functor; local
[all...]
/external/chromium_org/third_party/webrtc/base/
H A Dmessagehandler.h34 // Helper class to facilitate executing a functor on a thread.
38 explicit FunctorMessageHandler(const FunctorT& functor) argument
39 : functor_(functor) {}
54 explicit FunctorMessageHandler(const FunctorT& functor) argument
55 : functor_(functor) {}
H A Dcallback.h76 template <class T> Callback0(const T& functor) argument
77 : helper_(new RefCountedObject< HelperImpl<T> >(functor)) {}
91 explicit HelperImpl(const T& functor) : functor_(functor) {} argument
106 template <class T> Callback1(const T& functor) argument
107 : helper_(new RefCountedObject< HelperImpl<T> >(functor)) {}
121 explicit HelperImpl(const T& functor) : functor_(functor) {} argument
137 template <class T> Callback2(const T& functor) argument
138 : helper_(new RefCountedObject< HelperImpl<T> >(functor)) {}
152 HelperImpl(const T& functor) argument
169 Callback3(const T& functor) argument
184 HelperImpl(const T& functor) argument
202 Callback4(const T& functor) argument
217 HelperImpl(const T& functor) argument
236 Callback5(const T& functor) argument
251 HelperImpl(const T& functor) argument
[all...]
H A Dasyncinvoker.h33 // invocation and execution of the functor. AsyncInvoker is designed to
74 // Call |functor| asynchronously on |thread|, with no callback upon
78 const FunctorT& functor,
81 new RefCountedObject<FireAndForgetAsyncClosure<FunctorT> >(functor);
85 // Call |functor| asynchronously on |thread|, calling |callback| when done.
88 const FunctorT& functor,
94 this, Thread::Current(), functor, callback, callback_host);
98 // Call |functor| asynchronously on |thread|, calling |callback| when done.
102 const FunctorT& functor,
108 this, Thread::Current(), functor, callbac
77 AsyncInvoke(Thread* thread, const FunctorT& functor, uint32 id = 0) argument
87 AsyncInvoke(Thread* thread, const FunctorT& functor, void (HostT::*callback)(ReturnT), HostT* callback_host, uint32 id = 0) argument
101 AsyncInvoke(Thread* thread, const FunctorT& functor, void (HostT::*callback)(), HostT* callback_host, uint32 id = 0) argument
[all...]
H A Dcallback.h.pump76 template <class T> Callback$i(const T& functor)
77 : helper_(new RefCountedObject< HelperImpl<T> >(functor)) {}
91 explicit HelperImpl(const T& functor) : functor_(functor) {}
H A Dasyncinvoker-inl.h42 explicit FireAndForgetAsyncClosure(const FunctorT& functor) argument
43 : functor_(functor) {}
83 const FunctorT& functor,
87 functor_(functor),
111 const FunctorT& functor,
115 functor_(functor) {
81 NotifyingAsyncClosure(AsyncInvoker* invoker, Thread* calling_thread, const FunctorT& functor, void (HostT::*callback)(ReturnT), HostT* callback_host) argument
109 NotifyingAsyncClosure(AsyncInvoker* invoker, Thread* calling_thread, const FunctorT& functor, void (HostT::*callback)(), HostT* callback_host) argument
/external/ceres-solver/include/ceres/internal/
H A Dvariadic_evaluate.h45 // This block of quasi-repeated code calls the user-supplied functor, which may
52 static bool Call(const Functor& functor, T const *const *input, T* output) { argument
53 return functor(input[0],
70 static bool Call(const Functor& functor, T const *const *input, T* output) { argument
71 return functor(input[0],
87 static bool Call(const Functor& functor, T const *const *input, T* output) { argument
88 return functor(input[0],
103 static bool Call(const Functor& functor, T const *const *input, T* output) { argument
104 return functor(input[0],
118 static bool Call(const Functor& functor, argument
131 Call(const Functor& functor, T const *const *input, T* output) argument
143 Call(const Functor& functor, T const *const *input, T* output) argument
154 Call(const Functor& functor, T const *const *input, T* output) argument
164 Call(const Functor& functor, T const *const *input, T* output) argument
173 Call(const Functor& functor, T const *const *input, T* output) argument
[all...]
H A Dnumeric_diff.h50 // Helper templates that allow evaluation of a variadic functor or a
55 bool EvaluateImpl(const CostFunctor* functor, argument
62 *functor,
70 bool EvaluateImpl(const CostFunctor* functor, argument
74 return functor->Evaluate(parameters, residuals, NULL);
90 const CostFunctor* functor,
144 functor, parameters, residuals.data(), functor)) {
160 functor, parameters, residuals.data(), functor)) {
89 EvaluateJacobianForParameterBlock( const CostFunctor* functor, double const* residuals_at_eval_point, const double relative_step_size, int num_residuals, double **parameters, double *jacobian) argument
190 EvaluateJacobianForParameterBlock( const CostFunctor* functor, double const* residuals_at_eval_point, const double relative_step_size, const int num_residuals, double **parameters, double *jacobian) argument
[all...]
/external/chromium_org/third_party/WebKit/Source/core/css/
H A DCSSSelectorList.cpp125 static bool forEachTagSelector(Functor& functor, const CSSSelector& selector) argument
128 if (functor(*current))
132 if (forEachTagSelector(functor, *subSelector))
142 static bool forEachSelector(Functor& functor, const CSSSelectorList* selectorList) argument
145 if (forEachTagSelector(functor, *selector))
166 SelectorNeedsNamespaceResolutionFunctor functor; local
167 return forEachSelector(functor, this);
180 SelectorHasShadowDistributed functor; local
181 return forEachTagSelector(functor, selectorAt(index));
194 SelectorCrossesTreeScopes functor; local
[all...]
/external/ceres-solver/include/ceres/
H A Dautodiff_cost_function.h37 // templated operator() (a functor) that computes the cost function in terms of
96 // "MyScalarCostFunctor", "1, 2, 2", describe the functor as computing a
117 // WARNING #1: Since the functor will get instantiated with different types for
142 // The first template argument is the functor object, described in the header
147 // The constructors take ownership of the cost functor.
170 // Takes ownership of functor. Uses the template-provided value for the
172 explicit AutoDiffCostFunction(CostFunctor* functor) argument
173 : functor_(functor) {
179 // Takes ownership of functor. Ignores the template-provided
184 AutoDiffCostFunction(CostFunctor* functor, in argument
[all...]
H A Ddynamic_numeric_diff_cost_function.h40 // The functor API differs slightly from the API for fixed size
78 explicit DynamicNumericDiffCostFunction(const CostFunctor* functor, argument
81 : functor_(functor),
242 // Helper templates to allow evaluation of a functor or a
244 bool EvaluateCostFunctorImpl(const CostFunctor* functor, argument
248 return (*functor)(parameters, residuals);
251 bool EvaluateCostFunctorImpl(const CostFunctor* functor, argument
255 return functor->Evaluate(parameters, residuals, NULL);
H A Dautodiff_local_parameterization.h47 // a class with a templated operator() (a functor) that computes
102 // WARNING: Since the functor will get instantiated with different types for
113 // Takes ownership of functor.
114 explicit AutoDiffLocalParameterization(Functor* functor) : argument
115 functor_(functor) {}
H A Ddynamic_autodiff_cost_function.h38 // The functor API differs slightly from the API for fixed size
81 explicit DynamicAutoDiffCostFunction(CostFunctor* functor) argument
82 : functor_(functor) {}
107 // is a large body of code that assumes inside a cost functor it is
126 // Make the parameter pack that is sent to the functor (reused).
/external/chromium_org/third_party/skia/include/core/
H A DSkTSearch.h34 // The most general form of SkTSearch takes an array of T and a key of type K. A functor, less, is
71 // Adapts a less-than function to a functor.
76 // Specialization for case when T==K and the caller wants to use a function rather than functor.
79 static SkTLessFunctionToFunctorAdaptor<T, LESS> functor; local
80 return SkTSearch(base, count, target, elemSize, functor);
83 // Adapts operator < to a functor.
91 static SkTLessFunctor<T> functor; local
92 return SkTSearch(base, count, target, elemSize, functor);
95 // Similar to SkLessFunctionToFunctorAdaptor but makes the functor interface take T* rather than T.
104 static SkTLessFunctionToPtrFunctorAdaptor<T, LESS> functor; local
[all...]
/external/eigen/unsupported/test/
H A DNumericalDiff.cpp11 // Generic functor
75 my_functor functor; local
80 functor.actual_df(x, actual_jac);
84 NumericalDiff<my_functor> numDiff(functor);
96 my_functor functor; local
101 functor.actual_df(x, actual_jac);
104 NumericalDiff<my_functor,Central> numDiff(functor);
H A DNonLinearOptimization.cpp105 // Generic functor
176 lmder_functor functor; local
177 LevenbergMarquardt<lmder_functor> lm(functor);
205 lmder_functor functor; local
206 LevenbergMarquardt<lmder_functor> lm(functor);
290 hybrj_functor functor; local
291 HybridNonLinearSolver<hybrj_functor> solver(functor);
323 hybrj_functor functor; local
324 HybridNonLinearSolver<hybrj_functor> solver(functor);
379 hybrd_functor functor; local
406 hybrd_functor functor; local
481 lmstr_functor functor; local
510 lmstr_functor functor; local
566 lmdif_functor functor; local
596 lmdif_functor functor; local
682 chwirut2_functor functor; local
762 misra1a_functor functor; local
852 hahn1_functor functor; local
938 misra1d_functor functor; local
1016 lanczos1_functor functor; local
1102 rat42_functor functor; local
1180 MGH10_functor functor; local
1256 BoxBOD_functor functor; local
1338 MGH17_functor functor; local
1427 MGH09_functor functor; local
1513 Bennett5_functor functor; local
1600 thurber_functor functor; local
1692 rat43_functor functor; local
1779 eckerle4_functor functor; local
[all...]
/external/skia/include/core/
H A DSkTSearch.h34 // The most general form of SkTSearch takes an array of T and a key of type K. A functor, less, is
71 // Adapts a less-than function to a functor.
76 // Specialization for case when T==K and the caller wants to use a function rather than functor.
79 static SkTLessFunctionToFunctorAdaptor<T, LESS> functor; local
80 return SkTSearch(base, count, target, elemSize, functor);
83 // Adapts operator < to a functor.
91 static SkTLessFunctor<T> functor; local
92 return SkTSearch(base, count, target, elemSize, functor);
95 // Similar to SkLessFunctionToFunctorAdaptor but makes the functor interface take T* rather than T.
104 static SkTLessFunctionToPtrFunctorAdaptor<T, LESS> functor; local
[all...]
/external/eigen/Eigen/src/Core/
H A DCwiseUnaryOp.h21 * \param UnaryOp template functor implementing the operator
73 /** \returns the functor representing the unary operation */
74 const UnaryOp& functor() const { return m_functor; } function in class:Eigen::CwiseUnaryOp
103 return derived().functor()(derived().nestedExpression().coeff(rowId, colId));
109 return derived().functor().packetOp(derived().nestedExpression().template packet<LoadMode>(rowId, colId));
114 return derived().functor()(derived().nestedExpression().coeff(index));
120 return derived().functor().packetOp(derived().nestedExpression().template packet<LoadMode>(index));
H A DCwiseUnaryView.h20 * \param ViewOp template functor implementing the view
74 /** \returns the functor representing unary operation */
75 const ViewOp& functor() const { return m_functor; } function in class:Eigen::CwiseUnaryView
118 return derived().functor()(derived().nestedExpression().coeff(row, col));
123 return derived().functor()(derived().nestedExpression().coeff(index));
128 return derived().functor()(const_cast_derived().nestedExpression().coeffRef(row, col));
133 return derived().functor()(const_cast_derived().nestedExpression().coeffRef(index));
/external/chromium_org/base/
H A Dbind.h63 Bind(Functor functor) { argument
64 // Typedefs for how to store and run the functor.
72 new BindState(internal::MakeRunnable(functor)));
82 Bind(Functor functor, const P1& p1) { argument
83 // Typedefs for how to store and run the functor.
89 // functor is going to interpret the argument as.
118 new BindState(internal::MakeRunnable(functor), p1));
129 Bind(Functor functor, const P1& p1, const P2& p2) { argument
130 // Typedefs for how to store and run the functor.
136 // functor i
181 Bind(Functor functor, const P1& p1, const P2& p2, const P3& p3) argument
238 Bind(Functor functor, const P1& p1, const P2& p2, const P3& p3, const P4& p4) argument
301 Bind(Functor functor, const P1& p1, const P2& p2, const P3& p3, const P4& p4, const P5& p5) argument
370 Bind(Functor functor, const P1& p1, const P2& p2, const P3& p3, const P4& p4, const P5& p5, const P6& p6) argument
444 Bind(Functor functor, const P1& p1, const P2& p2, const P3& p3, const P4& p4, const P5& p5, const P6& p6, const P7& p7) argument
[all...]
/external/eigen/test/
H A DdenseLM.cpp102 int test_minimizeLM(FunctorType& functor, VectorType& uv) argument
104 LevenbergMarquardt<FunctorType> lm(functor);
115 int test_lmder(FunctorType& functor, VectorType& uv) argument
119 LevenbergMarquardt<FunctorType> lm(functor);
128 int test_minimizeSteps(FunctorType& functor, VectorType& uv) argument
131 LevenbergMarquardt<FunctorType> lm(functor);
/external/clang/test/SemaTemplate/
H A Dinstantiate-local-class.cpp168 struct functor { struct
169 functor(Func f) : func(f) {} function in struct:PR14373::functor
173 return functor(f);
/external/eigen/unsupported/Eigen/src/LevenbergMarquardt/
H A DLevenbergMarquardt.h89 // to be defined in the functor
92 // to be defined in the functor if no automatic differentiation
123 LevenbergMarquardt(FunctorType& functor) argument
124 : m_functor(functor),m_nfev(0),m_njev(0),m_fnorm(0.0),m_gnorm(0),
139 FunctorType &functor,
349 FunctorType &functor,
356 Index m = functor.values();
362 NumericalDiff<FunctorType> numDiff(functor);
348 lmdif1( FunctorType &functor, FVectorType &x, Index *nfev, const Scalar tol ) argument

Completed in 2993 milliseconds

123