{"id":20525909,"url":"https://github.com/yokaze/python-multi-array","last_synced_at":"2025-08-12T18:37:59.933Z","repository":{"id":255895128,"uuid":"94879017","full_name":"yokaze/python-multi-array","owner":"yokaze","description":"A python wrapper for boost::multi_array","archived":false,"fork":false,"pushed_at":"2017-08-27T05:10:41.000Z","size":21,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-16T11:26:52.841Z","etag":null,"topics":["boost","multi-array","python"],"latest_commit_sha":null,"homepage":null,"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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-06-20T10:23:54.000Z","updated_at":"2018-09-14T11:01:21.000Z","dependencies_parsed_at":"2024-09-07T18:39:52.964Z","dependency_job_id":null,"html_url":"https://github.com/yokaze/python-multi-array","commit_stats":null,"previous_names":["yokaze/python-multi-array"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yokaze%2Fpython-multi-array","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yokaze%2Fpython-multi-array/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yokaze%2Fpython-multi-array/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yokaze%2Fpython-multi-array/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yokaze","download_url":"https://codeload.github.com/yokaze/python-multi-array/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242130280,"owners_count":20076603,"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":["boost","multi-array","python"],"created_at":"2024-11-15T23:11:02.091Z","updated_at":"2025-03-06T01:27:46.061Z","avatar_url":"https://github.com/yokaze.png","language":"C++","readme":"# Overview\npython-multi-array exports ```std::shared_ptr\u003cboost::multi_array\u003cT, N\u003e\u003e``` for \n```\nT: bool, uint8, uint16, uint32, uint64, int8, int16, int32, int64, float32 and floa64\nN: 1 to 8.\n```\n\nThe library serves a powerful tool to cooperate python and its extension modules written in C++.\nYou can create arrays and set values in python, make heavy calculation in C++ (OpenMP and every other C++ tools are available,) and get back to python and display the results using matplotlib.\n\nThe array is allocated via multi_array.make.\n```python\n\u003e\u003e\u003e import numpy, multi_array\n\u003e\u003e\u003e multi_array.make((4, 2), numpy.float32)\n\u003cmulti_array.shared_float_matrix object at 0x10aeb3f50\u003e)\n```\n\nThe array itself has simple I/O APIs:\n```python\n\u003e\u003e\u003e x = multi_array.make((4, 2), numpy.float32)\n\u003e\u003e\u003e x.num_dimensions()\n2\n\u003e\u003e\u003e x.num_elements()\n8\n\u003e\u003e\u003e x.shape()\n(4, 2)\n\u003e\u003e\u003e x[1, 1] = 3\n\u003e\u003e\u003e x[1, 1]\n3.0\n```\n\nand conversion APIs with numpy.ndarray.\n```python\n\u003e\u003e\u003e x.set(scipy.rand(4, 2))\n\u003e\u003e\u003e type(x.get())\n\u003ctype 'numpy.ndarray'\u003e\n\u003e\u003e\u003e x.get()\narray([[ 0.91382688,  0.374331  ],\n       [ 0.43389955,  0.5571261 ],\n       [ 0.6937117 ,  0.40599877],\n       [ 0.80906659,  0.75029951]], dtype=float32)\n```\n\n# Setup\n\n```\n$ make\n```\nwill build ```multi_array.so``` in the same directory.\n\n# Documentation\n\nFull documentation is available on [GitHub Wiki](https://github.com/yokaze/python-multi-array/wiki).\n\n# Requirements\n- [NumPy](http://www.numpy.org/)\n- [boost 1.63.0+](http://www.boost.org/) ... v1.63.0 or later is required to use Boost.Python NumPy Extension.\n\n# Contact\nIf you have any question about the library, feel free to contact me: https://github.com/yokaze\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyokaze%2Fpython-multi-array","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyokaze%2Fpython-multi-array","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyokaze%2Fpython-multi-array/lists"}