{"id":14977808,"url":"https://github.com/yokaze/pyscience11","last_synced_at":"2025-10-28T05:31:04.186Z","repository":{"id":62583307,"uuid":"128483536","full_name":"yokaze/pyscience11","owner":"yokaze","description":"C++11 wrapper for NumPy, SciPy and Matplotlib using pybind11","archived":false,"fork":false,"pushed_at":"2018-09-14T10:52:08.000Z","size":38,"stargazers_count":20,"open_issues_count":2,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-01T12:11:13.812Z","etag":null,"topics":["matplotlib","numpy","pybind11","python","scipy"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yokaze.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-04-07T00:35:24.000Z","updated_at":"2024-01-15T13:38:55.000Z","dependencies_parsed_at":"2022-11-03T21:34:40.007Z","dependency_job_id":null,"html_url":"https://github.com/yokaze/pyscience11","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yokaze%2Fpyscience11","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yokaze%2Fpyscience11/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yokaze%2Fpyscience11/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yokaze%2Fpyscience11/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yokaze","download_url":"https://codeload.github.com/yokaze/pyscience11/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238603669,"owners_count":19499490,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["matplotlib","numpy","pybind11","python","scipy"],"created_at":"2024-09-24T13:56:22.375Z","updated_at":"2025-10-28T05:31:03.697Z","avatar_url":"https://github.com/yokaze.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Overview\npyscience11 is a C++11 wrapper for NumPy, SciPy and Matplotlib, that provides lightspeed access to their functionality.\n\n```cpp\n#include \u003cpybind11/embed.h\u003e\n#include \u003cpybind11/pybind11.h\u003e\n#include \u003cpyscience11/matplotlib.h\u003e\n#include \u003cpyscience11/matplotlib/pyplot.h\u003e\n#include \u003cpyscience11/numpy.h\u003e\n#include \u003cpyscience11/scipy/special.h\u003e\n\nnamespace py = pybind11;\nnamespace m11 = matplotlib11;\nnamespace n11 = numpy11;\nnamespace s11 = scipy11;\n\nint main(void)\n{\n    py::scoped_interpreter interpreter;\n\n    auto numpy = n11::import_numpy();\n    auto scipy_special = s11::scipy::import_special();\n    auto x = numpy.linspace(-2, 2, 1001, py::arg(\"dtype\") = numpy.attr(\"float32\"));\n    auto y = scipy_special.erf(x);\n\n    auto matplotlib = m11::import_matplotlib();\n    matplotlib.use(\"TkAgg\");\n\n    auto pl = m11::matplotlib::import_pyplot();\n    pl.plot(x, y);\n    pl.show();\n\n    return 0;\n}\n```\n\n# Install\nThis library is header-only, therefore nothing needs to be installed.\n\nFollowing command could be helpful to place headers into system directory.\n```shell\npip install pyscience11\n```\n\n# Requirements\n- [pybind11](https://github.com/pybind/pybind11)\n\n# Contact\nIf you have any question about the library, feel free to contact me: https://github.com/yokaze\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyokaze%2Fpyscience11","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyokaze%2Fpyscience11","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyokaze%2Fpyscience11/lists"}