/external/ceres-solver/internal/ceres/ |
H A D | 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...] |
H A D | 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 122 TranscendentalFunctor functor; local 135 TranscendentalFunctor functor; local 148 TranscendentalFunctor functor; local 196 EasyFunctor functor; local [all...] |
H A D | 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, 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/opencv3/modules/cudev/include/opencv2/cudev/expr/ |
H A D | unary_op.hpp | 63 #define CV_CUDEV_EXPR_UNOP_INST(op, functor) \ 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_type> > > \ 86 return makeExpr(transformPtr(src.body, functor<typename Body::value_type>())); \
|
H A D | binary_op.hpp | 66 #define CV_CUDEV_EXPR_BINOP_INST(op, functor) \ 68 __host__ Expr<BinaryTransformPtrSz<typename PtrTraits<GpuMat_<T> >::ptr_type, typename PtrTraits<GpuMat_<T> >::ptr_type, functor<T> > > \ 71 return makeExpr(transformPtr(src1, src2, functor<T>())); \ 74 __host__ Expr<BinaryTransformPtrSz<typename PtrTraits<GpuMat_<T> >::ptr_type, typename PtrTraits<GlobPtrSz<T> >::ptr_type, functor<T> > > \ 77 return makeExpr(transformPtr(src1, src2, functor<T>())); \ 80 __host__ Expr<BinaryTransformPtrSz<typename PtrTraits<GlobPtrSz<T> >::ptr_type, typename PtrTraits<GpuMat_<T> >::ptr_type, functor<T> > > \ 83 return makeExpr(transformPtr(src1, src2, functor<T>())); \ 86 __host__ Expr<BinaryTransformPtrSz<typename PtrTraits<GpuMat_<T> >::ptr_type, typename PtrTraits<Texture<T> >::ptr_type, functor<T> > > \ 89 return makeExpr(transformPtr(src1, src2, functor<T>())); \ 92 __host__ Expr<BinaryTransformPtrSz<typename PtrTraits<Texture<T> >::ptr_type, typename PtrTraits<GpuMat_<T> >::ptr_type, functor< [all...] |
/external/opencv3/modules/cudalegacy/src/cuda/ |
H A D | NCVRuntimeTemplates.hpp | 148 //and to pass this typelist to a user defined functor 154 static void call(Func *functor, ...) argument 161 va_start(listPointer, functor); 171 call(*functor, templateParamList); 176 static void call( Func &functor, std::vector<int> &templateParamList) argument 190 ::call(functor, templateParamList); 197 ::call(functor, templateParamList); 203 //-> actual kernel functor call 207 static void call(Func &functor) argument 209 //Call to the functor' 213 call(Func &functor, std::vector<int> &templateParams) argument [all...] |
H A D | NCVAlg.hpp | 113 Tfunc functor; local 117 functor.assign(reduceArr + threadIdx.x, &threadElem); 122 functor.reduce(reduceArr[threadIdx.x], reduceArr[threadIdx.x + 128]); 128 functor.reduce(reduceArr[threadIdx.x], reduceArr[threadIdx.x + 64]); 136 functor.reduce(reduceArr[threadIdx.x], reduceArr[threadIdx.x + 32]); 140 functor.reduce(reduceArr[threadIdx.x], reduceArr[threadIdx.x + 16]); 141 functor.reduce(reduceArr[threadIdx.x], reduceArr[threadIdx.x + 8]); 142 functor.reduce(reduceArr[threadIdx.x], reduceArr[threadIdx.x + 4]); 143 functor.reduce(reduceArr[threadIdx.x], reduceArr[threadIdx.x + 2]); 144 functor [all...] |
/external/webrtc/webrtc/base/ |
H A D | asyncinvoker.h | 33 // invocation and execution of the functor. AsyncInvoker is designed to 74 // Call |functor| asynchronously on |thread|, with no callback upon 77 void AsyncInvoke(Thread* thread, const FunctorT& functor, uint32_t id = 0) { argument 79 new RefCountedObject<FireAndForgetAsyncClosure<FunctorT> >(functor)); 83 // Call |functor| asynchronously on |thread| with |delay_ms|, with no callback 87 const FunctorT& functor, 91 new RefCountedObject<FireAndForgetAsyncClosure<FunctorT> >(functor)); 95 // Call |functor| asynchronously on |thread|, calling |callback| when done. 98 const FunctorT& functor, 104 this, Thread::Current(), functor, callbac 86 AsyncInvokeDelayed(Thread* thread, const FunctorT& functor, uint32_t delay_ms, uint32_t id = 0) argument 97 AsyncInvoke(Thread* thread, const FunctorT& functor, void (HostT::*callback)(ReturnT), HostT* callback_host, uint32_t id = 0) argument 111 AsyncInvoke(Thread* thread, const FunctorT& functor, void (HostT::*callback)(), HostT* callback_host, uint32_t id = 0) argument 166 AsyncInvoke(const FunctorT& functor, uint32_t id = 0) argument 177 AsyncInvokeDelayed(const FunctorT& functor, uint32_t delay_ms, uint32_t id = 0) argument 191 AsyncInvoke(const FunctorT& functor, void (HostT::*callback)(ReturnT), HostT* callback_host, uint32_t id = 0) argument 206 AsyncInvoke(const FunctorT& functor, void (HostT::*callback)(), HostT* callback_host, uint32_t id = 0) argument [all...] |
H A D | callback.h | 75 template <class T> Callback0(const T& functor) argument 76 : helper_(new RefCountedObject< HelperImpl<T> >(functor)) {} 90 explicit HelperImpl(const T& functor) : functor_(functor) {} argument 105 template <class T> Callback1(const T& functor) argument 106 : helper_(new RefCountedObject< HelperImpl<T> >(functor)) {} 120 explicit HelperImpl(const T& functor) : functor_(functor) {} argument 136 template <class T> Callback2(const T& functor) argument 137 : helper_(new RefCountedObject< HelperImpl<T> >(functor)) {} 151 HelperImpl(const T& functor) argument 168 Callback3(const T& functor) argument 183 HelperImpl(const T& functor) argument 201 Callback4(const T& functor) argument 216 HelperImpl(const T& functor) argument 235 Callback5(const T& functor) argument 250 HelperImpl(const T& functor) argument [all...] |
H A D | messagehandler.h | 37 // Helper class to facilitate executing a functor on a thread. 41 explicit FunctorMessageHandler(const FunctorT& functor) argument 42 : functor_(functor) {} 58 explicit FunctorMessageHandler(const FunctorT& functor) : functor_(functor) {} argument 71 explicit FunctorMessageHandler(const FunctorT& functor) argument 72 : functor_(functor) {}
|
H A D | 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) {}
|
H A D | asyncinvoker-inl.h | 43 explicit FireAndForgetAsyncClosure(const FunctorT& functor) argument 44 : functor_(functor) {} 84 const FunctorT& functor, 88 functor_(functor), 112 const FunctorT& functor, 116 functor_(functor) { 82 NotifyingAsyncClosure(AsyncInvoker* invoker, Thread* calling_thread, const FunctorT& functor, void (HostT::*callback)(ReturnT), HostT* callback_host) argument 110 NotifyingAsyncClosure(AsyncInvoker* invoker, Thread* calling_thread, const FunctorT& functor, void (HostT::*callback)(), HostT* callback_host) argument
|
H A D | bind_unittest.cc | 168 auto functor = Bind(&LifeTimeCheck::NullaryVoid, &object); local 184 auto functor = Bind(&LifeTimeCheck::NullaryVoid, scoped_object); local 192 // Test Bind where method object is captured as scoped_refptr<> and the functor 213 auto functor = local 234 auto functor = Bind(&Ref, x); local 235 EXPECT_NE(&x, functor());
|
/external/ceres-solver/include/ceres/internal/ |
H A D | variadic_evaluate.h | 45 // 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 D | numeric_diff.h | 50 // 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/ceres-solver/include/ceres/ |
H A D | 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) argument 173 : functor_(functor) { 179 // Takes ownership of functor. Ignores the template-provided 184 AutoDiffCostFunction(CostFunctor* functor, in argument [all...] |
H A D | dynamic_numeric_diff_cost_function.h | 40 // 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 D | 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 113 // Takes ownership of functor. 114 explicit AutoDiffLocalParameterization(Functor* functor) : argument 115 functor_(functor) {}
|
/external/eigen/unsupported/test/ |
H A D | NumericalDiff.cpp | 11 // 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);
|
/external/skia/include/private/ |
H A D | 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/libchrome/base/ |
H A D | bind.h | 57 Bind(Functor functor, const Args&... args) { argument 58 // Type aliases for how to store and run the functor. 64 // functor is going to interpret the argument as. 96 new BindState(internal::MakeRunnable(functor), args...));
|
/external/libweave/third_party/chromium/base/ |
H A D | bind.h | 57 Bind(Functor functor, const Args&... args) { argument 58 // Type aliases for how to store and run the functor. 64 // functor is going to interpret the argument as. 96 new BindState(internal::MakeRunnable(functor), args...));
|
/external/eigen/Eigen/src/Core/ |
H A D | 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));
|
H A D | 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));
|
/external/eigen/test/ |
H A D | denseLM.cpp | 102 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);
|