Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User/feiyang/stubfile #49

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

Feiyang472
Copy link

Autogenerate a pyi stub file for cpg_module PyBind extension for better readability.

Example of generated pyi file, with nonneg_LS example given below.

"""
Auto-generated by CVXPYgen on April 26, 2024 at 19:53:26.
Content: Python extension stub file..
"""


class cpg_params:

    @property
    def A(self):
        ...

    @property
    def b(self):
        ...


class cpg_updated:

    @property
    def A(self):
        ...

    @property
    def b(self):
        ...


class cpg_prim:

    @property
    def x(self):
        ...


class cpg_dual:

    @property
    def d0(self):
        ...


class cpg_info:

    @property
    def obj_val(self):
        ...

    @property
    def iter(self):
        ...

    @property
    def status(self):
        ...

    @property
    def pri_res(self):
        ...

    @property
    def dua_res(self):
        ...

    @property
    def time(self):
        ...


class cpg_result:

    @property
    def cpg_prim(self):
        ...

    @property
    def cpg_info(self):
        ...

    @property
    def cpg_dual(self):
        ...


def solve(arg0: cpg_updated, arg1: cpg_params):
    ...

def set_solver_default_settings():
    ...

def set_solver_normalize(arg0: int):
    ...

def set_solver_scale(arg0: float):
    ...

def set_solver_adaptive_scale(arg0: int):
    ...

def set_solver_rho_x(arg0: float):
    ...

def set_solver_max_iters(arg0: int):
    ...

def set_solver_eps_abs(arg0: float):
    ...

def set_solver_eps_rel(arg0: float):
    ...

def set_solver_eps_infeas(arg0: float):
    ...

def set_solver_alpha(arg0: float):
    ...

def set_solver_time_limit_secs(arg0: float):
    ...

def set_solver_verbose(arg0: int):
    ...

def set_solver_warm_start(arg0: int):
    ...

def set_solver_acceleration_lookback(arg0: int):
    ...

def set_solver_acceleration_interval(arg0: int):
    ...

def set_solver_write_data_filename(arg0: str):
    ...

def set_solver_log_csv_filename(arg0: str):
    ...

@Feiyang472 Feiyang472 force-pushed the user/feiyang/stubfile branch from 053056d to 4c27d96 Compare April 26, 2024 19:36
@Feiyang472 Feiyang472 force-pushed the user/feiyang/stubfile branch 2 times, most recently from 5c21e41 to 5385c97 Compare April 26, 2024 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant