Home
last modified time | relevance | path

Searched refs:functor (Results 1 – 25 of 70) sorted by relevance

123

/external/opencv3/modules/cudev/include/opencv2/cudev/expr/
Dbinary_op.hpp66 #define CV_CUDEV_EXPR_BINOP_INST(op, functor) \ argument
68 …ename PtrTraits<GpuMat_<T> >::ptr_type, typename PtrTraits<GpuMat_<T> >::ptr_type, functor<T> > > \
71 return makeExpr(transformPtr(src1, src2, functor<T>())); \
74 …ame PtrTraits<GpuMat_<T> >::ptr_type, typename PtrTraits<GlobPtrSz<T> >::ptr_type, functor<T> > > \
77 return makeExpr(transformPtr(src1, src2, functor<T>())); \
80 …ame PtrTraits<GlobPtrSz<T> >::ptr_type, typename PtrTraits<GpuMat_<T> >::ptr_type, functor<T> > > \
83 return makeExpr(transformPtr(src1, src2, functor<T>())); \
86 …ename PtrTraits<GpuMat_<T> >::ptr_type, typename PtrTraits<Texture<T> >::ptr_type, functor<T> > > \
89 return makeExpr(transformPtr(src1, src2, functor<T>())); \
92 …ename PtrTraits<Texture<T> >::ptr_type, typename PtrTraits<GpuMat_<T> >::ptr_type, functor<T> > > \
[all …]
Dunary_op.hpp63 #define CV_CUDEV_EXPR_UNOP_INST(op, functor) \ argument
65 __host__ Expr<UnaryTransformPtrSz<typename PtrTraits<GpuMat_<T> >::ptr_type, functor<T> > > \
68 return makeExpr(transformPtr(src, functor<T>())); \
71 __host__ Expr<UnaryTransformPtrSz<typename PtrTraits<GlobPtrSz<T> >::ptr_type, functor<T> > > \
74 return makeExpr(transformPtr(src, functor<T>())); \
77 __host__ Expr<UnaryTransformPtrSz<typename PtrTraits<Texture<T> >::ptr_type, functor<T> > > \
80 return makeExpr(transformPtr(src, functor<T>())); \
83 …__host__ Expr<UnaryTransformPtrSz<typename PtrTraits<Body>::ptr_type, functor<typename Body::value…
86 return makeExpr(transformPtr(src.body, functor<typename Body::value_type>())); \
/external/ceres-solver/internal/ceres/
Dnumeric_diff_cost_function_test.cc57 EasyFunctor functor; in TEST() local
58 functor.ExpectCostFunctionEvaluationIsNearlyCorrect(*cost_function, CENTRAL); in TEST()
70 EasyFunctor functor; in TEST() local
71 functor.ExpectCostFunctionEvaluationIsNearlyCorrect(*cost_function, FORWARD); in TEST()
83 EasyFunctor functor; in TEST() local
84 functor.ExpectCostFunctionEvaluationIsNearlyCorrect(*cost_function, CENTRAL); in TEST()
96 EasyFunctor functor; in TEST() local
97 functor.ExpectCostFunctionEvaluationIsNearlyCorrect(*cost_function, FORWARD); in TEST()
109 TranscendentalFunctor functor; in TEST() local
110 functor.ExpectCostFunctionEvaluationIsNearlyCorrect(*cost_function, CENTRAL); in TEST()
[all …]
Dnumeric_diff_functor_test.cc53 EasyFunctor functor; in TEST() local
59 functor.ExpectCostFunctionEvaluationIsNearlyCorrect(*cost_function, CENTRAL); in TEST()
64 functor.ExpectCostFunctionEvaluationIsNearlyCorrect(*cost_function, CENTRAL); in TEST()
72 EasyFunctor functor; in TEST() local
78 functor.ExpectCostFunctionEvaluationIsNearlyCorrect(*cost_function, FORWARD); in TEST()
83 functor.ExpectCostFunctionEvaluationIsNearlyCorrect(*cost_function, FORWARD); in TEST()
91 TranscendentalFunctor functor; in TEST() local
97 functor.ExpectCostFunctionEvaluationIsNearlyCorrect(*cost_function, CENTRAL); in TEST()
102 functor.ExpectCostFunctionEvaluationIsNearlyCorrect(*cost_function, CENTRAL); in TEST()
110 TranscendentalFunctor functor; in TEST() local
[all …]
Dautodiff_test.cc362 VaryingResidualFunctor functor; in TEST() local
366 functor.num_residuals = num_residuals; in TEST()
370 functor, parameters, num_residuals, residuals, jacobians))); in TEST()
529 Residual1Param functor; in TEST() local
532 functor, parameters, 1, &residual, jacobians))); in TEST()
540 Residual2Param functor; in TEST() local
543 functor, parameters, 1, &residual, jacobians))); in TEST()
551 Residual3Param functor; in TEST() local
554 functor, parameters, 1, &residual, jacobians))); in TEST()
562 Residual4Param functor; in TEST() local
[all …]
/external/ceres-solver/include/ceres/internal/
Dvariadic_evaluate.h52 static bool Call(const Functor& functor, T const *const *input, T* output) { in Call()
53 return functor(input[0], in Call()
70 static bool Call(const Functor& functor, T const *const *input, T* output) {
71 return functor(input[0],
87 static bool Call(const Functor& functor, T const *const *input, T* output) {
88 return functor(input[0],
103 static bool Call(const Functor& functor, T const *const *input, T* output) {
104 return functor(input[0],
118 static bool Call(const Functor& functor, T const *const *input, T* output) {
119 return functor(input[0],
[all …]
Dnumeric_diff.h55 bool EvaluateImpl(const CostFunctor* functor, in EvaluateImpl() argument
62 *functor, in EvaluateImpl()
70 bool EvaluateImpl(const CostFunctor* functor, in EvaluateImpl() argument
74 return functor->Evaluate(parameters, residuals, NULL); in EvaluateImpl()
90 const CostFunctor* functor, in EvaluateJacobianForParameterBlock()
144 functor, parameters, residuals.data(), functor)) { in EvaluateJacobianForParameterBlock()
160 functor, parameters, residuals.data(), functor)) { in EvaluateJacobianForParameterBlock()
191 const CostFunctor* functor,
/external/webrtc/webrtc/base/
Dcallback.h75 template <class T> Callback0(const T& functor) in Callback0() argument
76 : helper_(new RefCountedObject< HelperImpl<T> >(functor)) {} in Callback0()
90 explicit HelperImpl(const T& functor) : functor_(functor) {} in HelperImpl()
105 template <class T> Callback1(const T& functor) in Callback1() argument
106 : helper_(new RefCountedObject< HelperImpl<T> >(functor)) {} in Callback1()
120 explicit HelperImpl(const T& functor) : functor_(functor) {} in HelperImpl()
136 template <class T> Callback2(const T& functor) in Callback2() argument
137 : helper_(new RefCountedObject< HelperImpl<T> >(functor)) {} in Callback2()
151 explicit HelperImpl(const T& functor) : functor_(functor) {} in HelperImpl()
168 template <class T> Callback3(const T& functor) in Callback3() argument
[all …]
Dasyncinvoker.h77 void AsyncInvoke(Thread* thread, const FunctorT& functor, uint32_t id = 0) {
79 new RefCountedObject<FireAndForgetAsyncClosure<FunctorT> >(functor));
87 const FunctorT& functor,
91 new RefCountedObject<FireAndForgetAsyncClosure<FunctorT> >(functor));
98 const FunctorT& functor,
104 this, Thread::Current(), functor, callback, callback_host));
112 const FunctorT& functor,
118 this, Thread::Current(), functor, callback, callback_host));
166 bool AsyncInvoke(const FunctorT& functor, uint32_t id = 0) {
170 invoker_.AsyncInvoke<ReturnT, FunctorT>(thread_, functor, id);
[all …]
Dmessagehandler.h41 explicit FunctorMessageHandler(const FunctorT& functor) in FunctorMessageHandler() argument
42 : functor_(functor) {} in FunctorMessageHandler()
58 explicit FunctorMessageHandler(const FunctorT& functor) : functor_(functor) {} in FunctorMessageHandler() argument
71 explicit FunctorMessageHandler(const FunctorT& functor) in FunctorMessageHandler() argument
72 : functor_(functor) {} in FunctorMessageHandler()
Dasyncinvoker-inl.h43 explicit FireAndForgetAsyncClosure(const FunctorT& functor) in FireAndForgetAsyncClosure() argument
44 : functor_(functor) {} in FireAndForgetAsyncClosure()
84 const FunctorT& functor, in NotifyingAsyncClosure() argument
88 functor_(functor), in NotifyingAsyncClosure()
112 const FunctorT& functor, in NotifyingAsyncClosure() argument
116 functor_(functor) { in NotifyingAsyncClosure()
Dbind_unittest.cc168 auto functor = Bind(&LifeTimeCheck::NullaryVoid, &object); in TEST() local
184 auto functor = Bind(&LifeTimeCheck::NullaryVoid, scoped_object); in TEST() local
213 auto functor = in TEST() local
234 auto functor = Bind(&Ref, x); in TEST() local
235 EXPECT_NE(&x, functor()); in TEST()
/external/opencv3/modules/cudalegacy/src/cuda/
DNCVRuntimeTemplates.hpp154 static void call(Func *functor, ...) in call()
161 va_start(listPointer, functor); in call()
171 call(*functor, templateParamList); in call()
176 static void call( Func &functor, std::vector<int> &templateParamList) in call()
190 ::call(functor, templateParamList); in call()
197 ::call(functor, templateParamList); in call()
207 static void call(Func &functor) in call()
210functor.call(TList()); //TList instantiated to get the method template parameter resolved in call()
213 static void call(Func &functor, std::vector<int> &templateParams) in call()
216 functor.call(TList()); in call()
DNCVAlg.hpp113 Tfunc functor; in subReduce() local
117 functor.assign(reduceArr + threadIdx.x, &threadElem); in subReduce()
122 functor.reduce(reduceArr[threadIdx.x], reduceArr[threadIdx.x + 128]); in subReduce()
128 functor.reduce(reduceArr[threadIdx.x], reduceArr[threadIdx.x + 64]); in subReduce()
136 functor.reduce(reduceArr[threadIdx.x], reduceArr[threadIdx.x + 32]); in subReduce()
140 functor.reduce(reduceArr[threadIdx.x], reduceArr[threadIdx.x + 16]); in subReduce()
141 functor.reduce(reduceArr[threadIdx.x], reduceArr[threadIdx.x + 8]); in subReduce()
142 functor.reduce(reduceArr[threadIdx.x], reduceArr[threadIdx.x + 4]); in subReduce()
143 functor.reduce(reduceArr[threadIdx.x], reduceArr[threadIdx.x + 2]); in subReduce()
144 functor.reduce(reduceArr[threadIdx.x], reduceArr[threadIdx.x + 1]); in subReduce()
[all …]
/external/eigen/unsupported/test/
DNumericalDiff.cpp75 my_functor functor; in test_forward() local
80 functor.actual_df(x, actual_jac); in test_forward()
84 NumericalDiff<my_functor> numDiff(functor); in test_forward()
96 my_functor functor; in test_central() local
101 functor.actual_df(x, actual_jac); in test_central()
104 NumericalDiff<my_functor,Central> numDiff(functor); in test_central()
DNonLinearOptimization.cpp176 lmder_functor functor; in testLmder1() local
177 LevenbergMarquardt<lmder_functor> lm(functor); in testLmder1()
205 lmder_functor functor; in testLmder() local
206 LevenbergMarquardt<lmder_functor> lm(functor); in testLmder()
290 hybrj_functor functor; in testHybrj1() local
291 HybridNonLinearSolver<hybrj_functor> solver(functor); in testHybrj1()
323 hybrj_functor functor; in testHybrj() local
324 HybridNonLinearSolver<hybrj_functor> solver(functor); in testHybrj()
379 hybrd_functor functor; in testHybrd1() local
380 HybridNonLinearSolver<hybrd_functor> solver(functor); in testHybrd1()
[all …]
Dlevenberg_marquardt.cpp69 lmder_functor functor; in testLmder1() local
70 LevenbergMarquardt<lmder_functor> lm(functor); in testLmder1()
98 lmder_functor functor; in testLmder() local
99 LevenbergMarquardt<lmder_functor> lm(functor); in testLmder()
171 lmdif_functor functor; in testLmdif1() local
173 info = LevenbergMarquardt<lmdif_functor>::lmdif1(functor, x, &nfev); in testLmdif1()
180 functor(x, fvec); in testLmdif1()
201 lmdif_functor functor; in testLmdif() local
202 NumericalDiff<lmdif_functor> numDiff(functor); in testLmdif()
287 chwirut2_functor functor; in testNistChwirut2() local
[all …]
/external/skia/include/private/
DSkTSearch.h79 static SkTLessFunctionToFunctorAdaptor<T, LESS> functor; in SkTSearch() local
80 return SkTSearch(base, count, target, elemSize, functor); in SkTSearch()
91 static SkTLessFunctor<T> functor; in SkTSearch() local
92 return SkTSearch(base, count, target, elemSize, functor); in SkTSearch()
104 static SkTLessFunctionToPtrFunctorAdaptor<T, LESS> functor; in SkTSearch() local
105 return SkTSearch(base, count, target, elemSize, functor); in SkTSearch()
/external/ceres-solver/include/ceres/
Ddynamic_numeric_diff_cost_function.h78 explicit DynamicNumericDiffCostFunction(const CostFunctor* functor,
81 : functor_(functor), in functor_() argument
244 bool EvaluateCostFunctorImpl(const CostFunctor* functor, in EvaluateCostFunctorImpl() argument
248 return (*functor)(parameters, residuals); in EvaluateCostFunctorImpl()
251 bool EvaluateCostFunctorImpl(const CostFunctor* functor, in EvaluateCostFunctorImpl() argument
255 return functor->Evaluate(parameters, residuals, NULL); in EvaluateCostFunctorImpl()
Dautodiff_cost_function.h172 explicit AutoDiffCostFunction(CostFunctor* functor) in AutoDiffCostFunction() argument
173 : functor_(functor) { in AutoDiffCostFunction()
184 AutoDiffCostFunction(CostFunctor* functor, int num_residuals) in AutoDiffCostFunction() argument
185 : functor_(functor) { in AutoDiffCostFunction()
/external/eigen/Eigen/src/Core/
DCwiseUnaryOp.h74 const UnaryOp& functor() const { return m_functor; }
103 return derived().functor()(derived().nestedExpression().coeff(rowId, colId));
109 …return derived().functor().packetOp(derived().nestedExpression().template packet<LoadMode>(rowId, …
114 return derived().functor()(derived().nestedExpression().coeff(index));
120 …return derived().functor().packetOp(derived().nestedExpression().template packet<LoadMode>(index));
DCwiseUnaryView.h75 const ViewOp& functor() const { return m_functor; }
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/eigen/unsupported/Eigen/src/NonLinearOptimization/
DLevenbergMarquardt.h50 … : functor(_functor) { nfev = njev = iter = 0; fnorm = gnorm = 0.; useExternalScaling=false; } in LevenbergMarquardt()
83 FunctorType &functor,
112 FunctorType &functor;
134 m = functor.values(); in lmder1()
167 m = functor.values(); in minimizeInit()
194 if ( functor(x, fvec) < 0) in minimizeInit()
215 Index df_ret = functor.df(x, fjac); in minimizeOneStep()
280 if ( functor(wa2, wa4) < 0) in minimizeOneStep()
362 m = functor.values(); in lmstr1()
381 m = functor.values(); in minimizeOptimumStorageInit()
[all …]
/external/eigen/test/
DdenseLM.cpp102 int test_minimizeLM(FunctorType& functor, VectorType& uv) in test_minimizeLM() argument
104 LevenbergMarquardt<FunctorType> lm(functor); in test_minimizeLM()
115 int test_lmder(FunctorType& functor, VectorType& uv) in test_lmder() argument
119 LevenbergMarquardt<FunctorType> lm(functor); in test_lmder()
128 int test_minimizeSteps(FunctorType& functor, VectorType& uv) in test_minimizeSteps() argument
131 LevenbergMarquardt<FunctorType> lm(functor); in test_minimizeSteps()
/external/eigen/unsupported/Eigen/src/LevenbergMarquardt/
DLevenbergMarquardt.h123 LevenbergMarquardt(FunctorType& functor) in LevenbergMarquardt() argument
124 : m_functor(functor),m_nfev(0),m_njev(0),m_fnorm(0.0),m_gnorm(0), in LevenbergMarquardt()
139 FunctorType &functor,
349 FunctorType &functor, in lmdif1() argument
356 Index m = functor.values(); in lmdif1()
362 NumericalDiff<FunctorType> numDiff(functor); in lmdif1()

123