About 1,729,975 results (1,843 milliseconds)

User-defined functions

https://groups.google.com/g/casadi-users/c/zvy3FjcB8Lo/m/gOUZrcWlAQAJ
May 12, 2017 ... If I want to use such a function to e.g. define ... Also, I am not sure I understand how the python function is transformed into a casadi function ...

Can I use an external function as my objective function?

https://groups.google.com/g/pyomo-forum/c/4n8rnycjpTU
May 31, 2016 ... For external *python* functions, it is technically possible, but not ... def obj_rule(model):. PVgen.qgini = model.x. sim ...

Create and deploy an HTTP Cloud Run function with Python

https://cloud.google.com/functions/docs/create-deploy-http-python
There are two types of Cloud Run functions: An HTTP function, which you invoke from standard HTTP requests. An event-driven function, which you use to handle ...

User-defined functions | BigQuery | Google Cloud

https://cloud.google.com/bigquery/docs/user-defined-functions
UDFs cannot mutate data, talk to external systems, or send logs to Google Cloud Observability or similar applications. To create a UDF, use the CREATE FUNCTION ...

The Python Runtime | Cloud Run functions Documentation | Google ...

https://cloud.google.com/functions/docs/concepts/python-runtime
For Cloud Run functions to find your function's definition ... Your Python runtime automatically sets certain environment variables for your function to use as ...

How to expose a function returning a C++ object to Python using ...

https://groups.google.com/g/cython-users/c/39Nwqsksdto
Your getPeaks is a pure python method declared with a 'def' statement. You can't return C++ types for such methods (the C++ object would be visible to ...

passing a pointer function to another function which can be called in ...

https://groups.google.com/g/cython-users/c/0ouYUUa60R4
Sep 24, 2017 ... ... python function similar to the following example from ... That error exactly identifies the problem: a "def" function will get python ...

Async unittest for "async def" methods?

https://groups.google.com/g/python-tornado/c/aXBrKGgWHqo
Feb 4, 2017 ... Environment: Python 3, tornado 4.4. The normal unittests cannot be used because methods are asynchronous.

Cannot use importlib to import Cython extensions

https://groups.google.com/g/cython-users/c/sHqrBrpIfak
Jul 18, 2020 ... > make this a C function rather than a Python one. > You do know that def functions are still compiled by Cython and that the speed of the code ...

using python function within desolve_odeint

https://groups.google.com/g/sage-support/c/sH6Ld2znnfM
My students are attempting to use a python function with an if statement in ... Here is some same code for a simpler case than what they are doing. def f(x,y):

Python Reference: CP-SAT | OR-Tools | Google for Developers

https://developers.google.com/optimization/reference/python/sat/python/cp_model
Aug 6, 2024 ... Returns the value of the objective after solve. Expand source code. def ... To define the objective function. For example. model.Minimize(x + 2 ...

Embedding_api how to define exported function names in Windows

https://groups.google.com/g/python-cffi/c/xWi17kJSrOg
Sep 27, 2016 ... Hi again. I'm on Windows 7 Ultimate 64bit, Python 2.7.10 32bit and Microsoft Visual C++ Compiler Package for Python 2.7. I'm trying to use ...

__pyx_skip_dispatch argument in cpdef functions

https://groups.google.com/g/cython-users/c/-WYHyqKq31c
to check if the Python-level function or method was overwritten, and if so, ... Given that you can still use "def" functions > in Cython code, that's what I ...

Metaclass .pxd: How should I implement __eq__()?

https://groups.google.com/g/cython-users/c/q5QehBnvP3o
Jan 19, 2015 ... ... function definition in pxd file must be declared 'cdef inline'" ... - If I use "def __richcmp__(Japan_Car_ABC self, Japan_Car_ABC other ...

Write event-driven functions | Cloud Run functions Documentation ...

https://cloud.google.com/functions/docs/writing/write-event-driven-functions
You use CloudEvent functions to invoke your function. ... In Python, you register a CloudEvent handler function with the Functions Framework for Python.

Write HTTP functions | Cloud Run functions Documentation | Google ...

https://cloud.google.com/functions/docs/writing/write-http-functions
In Cloud Run functions, you use HTTP functions when you want to invoke a function via an HTTP(S) request.

sympy.nsolve, mpmath.findroots how to pass args to the function?

https://groups.google.com/g/sympy/c/Uz06ihU3wys
Jan 31, 2010 ... awesome. In the meantime, just use global variables, e.g. something like: params = [ <whatever you need here> ]. def f(.

An Intro to the Earth Engine Python API | Google Earth Engine ...

https://developers.google.com/earth-engine/tutorials/community/intro-to-python-api
We now define a function to transform this array into a pandas Dataframe which is much more convenient to manipulate. import pandas as pd def ee_array_to_df ...

pure Python mode: .pxd and @locals

https://groups.google.com/g/cython-users/c/PBwmaoC71Qw
Could you explain to me why this specific example does not work ? While you can override a def function with a cpdef function *signature* in ... use one method or ...

[Python-Dev] Class decorators can't be pickled, which breaks ...

https://groups.google.com/g/dev-python/c/wZ1m3A7C3DA
Aug 11, 2018 ... There's a really simple fix for this, which is just, instead of "decorating" the function (with the @), instantiate the decorator and use it ...