HomeSort by relevance Sort by last modified time
    Searched refs:functor (Results 1 - 25 of 92) sorted by null

1 2 3 4

  /external/ceres-solver/internal/ceres/
numeric_diff_functor_test.cc 53 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...]
numeric_diff_cost_function_test.cc 57 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.ExpectCostFunctionEvaluationIsNearlyCorrect(*cost_function, CENTRAL)
122 TranscendentalFunctor functor; local
135 TranscendentalFunctor functor; local
148 TranscendentalFunctor functor; local
196 EasyFunctor functor; local
    [all...]
autodiff_test.cc 360 // 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, parameters, 1, &residual, jacobians)))
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/libjingle/source/talk/base/
messagehandler.h 51 // Helper class to facilitate executing a functor on a thread.
55 explicit FunctorMessageHandler(const FunctorT& functor)
56 : functor_(functor) {}
71 explicit FunctorMessageHandler(const FunctorT& functor)
72 : functor_(functor) {}
asyncinvoker.h 50 // invocation and execution of the functor. AsyncInvoker is designed to
91 // Call |functor| asynchronously on |thread|, with no callback upon
95 const FunctorT& functor,
98 new RefCountedObject<FireAndForgetAsyncClosure<FunctorT> >(functor);
102 // Call |functor| asynchronously on |thread|, calling |callback| when done.
105 const FunctorT& functor,
111 this, Thread::Current(), functor, callback, callback_host);
115 // Call |functor| asynchronously on |thread|, calling |callback| when done.
119 const FunctorT& functor,
125 this, Thread::Current(), functor, callback, callback_host)
    [all...]
callback.h 93 template <class T> Callback0(const T& functor)
94 : helper_(new RefCountedObject< HelperImpl<T> >(functor)) {}
108 explicit HelperImpl(const T& functor) : functor_(functor) {}
123 template <class T> Callback1(const T& functor)
124 : helper_(new RefCountedObject< HelperImpl<T> >(functor)) {}
138 explicit HelperImpl(const T& functor) : functor_(functor) {}
154 template <class T> Callback2(const T& functor)
155 : helper_(new RefCountedObject< HelperImpl<T> >(functor)) {}
    [all...]
asyncinvoker-inl.h 59 explicit FireAndForgetAsyncClosure(const FunctorT& functor)
60 : functor_(functor) {}
100 const FunctorT& functor,
104 functor_(functor),
128 const FunctorT& functor,
132 functor_(functor) {
callback.h.pump 93 template <class T> Callback$i(const T& functor)
94 : helper_(new RefCountedObject< HelperImpl<T> >(functor)) {}
108 explicit HelperImpl(const T& functor) : functor_(functor) {}
  /external/chromium_org/third_party/webrtc/base/
messagehandler.h 34 // Helper class to facilitate executing a functor on a thread.
38 explicit FunctorMessageHandler(const FunctorT& functor)
39 : functor_(functor) {}
54 explicit FunctorMessageHandler(const FunctorT& functor)
55 : functor_(functor) {}
asyncinvoker.h 33 // 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, callback, callback_host)
    [all...]
callback.h 76 template <class T> Callback0(const T& functor)
77 : helper_(new RefCountedObject< HelperImpl<T> >(functor)) {}
91 explicit HelperImpl(const T& functor) : functor_(functor) {}
106 template <class T> Callback1(const T& functor)
107 : helper_(new RefCountedObject< HelperImpl<T> >(functor)) {}
121 explicit HelperImpl(const T& functor) : functor_(functor) {}
137 template <class T> Callback2(const T& functor)
138 : helper_(new RefCountedObject< HelperImpl<T> >(functor)) {}
    [all...]
asyncinvoker-inl.h 42 explicit FireAndForgetAsyncClosure(const FunctorT& functor)
43 : functor_(functor) {}
83 const FunctorT& functor,
87 functor_(functor),
111 const FunctorT& functor,
115 functor_(functor) {
callback.h.pump 76 template <class T> Callback$i(const T& functor)
77 : helper_(new RefCountedObject< HelperImpl<T> >(functor)) {}
91 explicit HelperImpl(const T& functor) : functor_(functor) {}
  /external/ceres-solver/include/ceres/internal/
variadic_evaluate.h 45 // This block of quasi-repeated code calls the user-supplied functor, which may
49 template<typename Functor, typename T, int N0, int N1, int N2, int N3, int N4,
52 static bool Call(const Functor& functor, T const *const *input, T* output) {
53 return functor(input[0],
67 template<typename Functor, typename T, int N0, int N1, int N2, int N3, int N4,
69 struct VariadicEvaluate<Functor, T, N0, N1, N2, N3, N4, N5, N6, N7, N8, 0> {
70 static bool Call(const Functor& functor, T const *const *input, T* output) {
71 return functor(input[0]
    [all...]
numeric_diff.h 50 // Helper templates that allow evaluation of a variadic functor or a
55 bool EvaluateImpl(const CostFunctor* functor,
62 *functor,
70 bool EvaluateImpl(const CostFunctor* functor,
74 return functor->Evaluate(parameters, residuals, NULL);
90 const CostFunctor* functor,
144 functor, parameters, residuals.data(), functor)) {
160 functor, parameters, residuals.data(), functor)) {
    [all...]
  /external/chromium_org/third_party/WebKit/Source/core/css/
CSSSelectorList.cpp 124 template <typename Functor>
125 static bool forEachTagSelector(Functor& functor, const CSSSelector& selector)
129 if (functor(*current))
133 if (forEachTagSelector(functor, *subSelector))
142 template <typename Functor>
143 static bool forEachSelector(Functor& functor, const CSSSelectorList* selectorList)
146 if (forEachTagSelector(functor, *selector))
167 SelectorNeedsNamespaceResolutionFunctor functor; local
181 SelectorHasShadowDistributed functor; local
195 SelectorCrossesTreeScopes functor; local
    [all...]
  /external/ceres-solver/include/ceres/
autodiff_cost_function.h 37 // 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)
173 : functor_(functor) {
179 // Takes ownership of functor. Ignores the template-provided
184 AutoDiffCostFunction(CostFunctor* functor, int num_residuals
    [all...]
autodiff_local_parameterization.h 47 // a class with a templated operator() (a functor) that computes
102 // WARNING: Since the functor will get instantiated with different types for
107 template <typename Functor, int kGlobalSize, int kLocalSize>
111 functor_(new Functor()) {}
113 // Takes ownership of functor.
114 explicit AutoDiffLocalParameterization(Functor* functor) :
115 functor_(functor) {}
137 return internal::AutoDiff<Functor, double, kGlobalSize, kLocalSize>
149 internal::scoped_ptr<Functor> functor_
    [all...]
dynamic_numeric_diff_cost_function.h 40 // The functor API differs slightly from the API for fixed size
78 explicit DynamicNumericDiffCostFunction(const CostFunctor* functor,
81 : functor_(functor),
242 // Helper templates to allow evaluation of a functor or a
244 bool EvaluateCostFunctorImpl(const CostFunctor* functor,
248 return (*functor)(parameters, residuals);
251 bool EvaluateCostFunctorImpl(const CostFunctor* functor,
255 return functor->Evaluate(parameters, residuals, NULL);
  /external/chromium_org/third_party/skia/include/core/
SkTSearch.h 34 // 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/
NumericalDiff.cpp 11 // Generic functor
13 struct Functor
26 Functor() : m_inputs(InputsAtCompileTime), m_values(ValuesAtCompileTime) {}
27 Functor(int inputs, int values) : m_inputs(inputs), m_values(values) {}
34 struct my_functor : Functor<double>
36 my_functor(void): Functor<double>(3,15) {}
75 my_functor functor; local
80 functor.actual_df(x, actual_jac);
84 NumericalDiff<my_functor> numDiff(functor);
96 my_functor functor; local
    [all...]
  /external/skia/include/core/
SkTSearch.h 34 // 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/
CwiseUnaryOp.h 21 * \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));
CwiseUnaryView.h 20 * \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));
  /frameworks/base/libs/hwui/
AnimatorManager.cpp 132 AnimateFunctor functor(info, mAnimationHandle->context());
134 newEnd = std::remove_if(mAnimators.begin(), mAnimators.end(), functor);
137 return functor.dirtyMask;
172 EndActiveAnimatorsFunctor functor(mAnimationHandle->context());
173 for_each(mAnimators.begin(), mAnimators.end(), functor);

Completed in 456 milliseconds

1 2 3 4