{"id":22760475,"url":"https://github.com/funatsufumiya/ofxnumcpp","last_synced_at":"2025-03-30T08:44:08.574Z","repository":{"id":261607993,"uuid":"884802810","full_name":"funatsufumiya/ofxNumCpp","owner":"funatsufumiya","description":"NumCpp for openFrameworks","archived":false,"fork":false,"pushed_at":"2024-11-07T12:53:37.000Z","size":368,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-25T05:06:27.258Z","etag":null,"topics":["openframeworks-addon"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/funatsufumiya.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2024-11-07T12:20:11.000Z","updated_at":"2024-11-07T13:51:53.000Z","dependencies_parsed_at":"2024-11-07T13:46:00.750Z","dependency_job_id":"ee20f5e8-55a6-4253-82b8-e5dee51380c6","html_url":"https://github.com/funatsufumiya/ofxNumCpp","commit_stats":null,"previous_names":["funatsufumiya/ofxnumcpp"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funatsufumiya%2FofxNumCpp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funatsufumiya%2FofxNumCpp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funatsufumiya%2FofxNumCpp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funatsufumiya%2FofxNumCpp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/funatsufumiya","download_url":"https://codeload.github.com/funatsufumiya/ofxNumCpp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246296562,"owners_count":20754632,"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":["openframeworks-addon"],"created_at":"2024-12-11T09:07:13.908Z","updated_at":"2025-03-30T08:44:08.550Z","avatar_url":"https://github.com/funatsufumiya.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ofxNumCpp\n\n[NumCpp](https://github.com/dpilger26/NumCpp) for openFrameworks (tested on v0.12.0, NumCpp version: 2.12.1)\n\n## Usage\n\nSee [example](example). (Please use `projectGenerator` before run it)\n\n```cpp\n#include \"ofApp.h\"\n\n#define NUMCPP_NO_USE_BOOST 1\n\n#include \"NumCpp.hpp\"\n\nvoid ofApp::setup(){\n    ofLogToConsole();\n\n    nc::NdArray\u003cint\u003e a = { 1, 2, 3, 4, 5, 6, 7, 8, 9 };\n    vector\u003cint\u003e a_as_vector = a.toStlVector();\n    auto sum = nc::sum(a);\n    float sum_as_float = sum.item();\n    ofLogNotice(\"ofApp\") \u003c\u003c \"a = \" \u003c\u003c a;\n    ofLogNotice(\"ofApp\") \u003c\u003c \"a_as_vector = \" \u003c\u003c ofToString(a_as_vector);\n    ofLogNotice(\"ofApp\") \u003c\u003c \"sum = \" \u003c\u003c sum;\n    ofLogNotice(\"ofApp\") \u003c\u003c \"sum_as_float = \" \u003c\u003c sum_as_float;\n\n    // matrix multiplication\n    nc::NdArray\u003cint\u003e a1 = { { 1, 2, 3 }, { 4, 5, 6 }, { 7, 8, 9 } };\n    nc::NdArray\u003cint\u003e a2 = { { 9, 8, 7 }, { 6, 5, 4 }, { 3, 2, 1 } };\n    auto dotted = nc::dot(a1, a2);\n    ofLogNotice(\"ofApp\") \u003c\u003c \"a1 = \" \u003c\u003c endl \u003c\u003c a1;\n    ofLogNotice(\"ofApp\") \u003c\u003c \"a2 = \" \u003c\u003c endl \u003c\u003c a2;\n    ofLogNotice(\"ofApp\") \u003c\u003c \"dot(a1, a2) = \" \u003c\u003c endl \u003c\u003c dotted;\n}\n\n// Result:\n// [notice ] ofApp: a = [[1, 2, 3, 4, 5, 6, 7, 8, 9, ]]\n// [notice ] ofApp: a_as_vector = {1, 2, 3, 4, 5, 6, 7, 8, 9}\n// [notice ] ofApp: sum = [[45, ]]\n// [notice ] ofApp: sum_as_float = 45\n//\n// [notice ] ofApp: a1 =\n// [[1, 2, 3, ]\n// [4, 5, 6, ]\n// [7, 8, 9, ]]\n//\n// [notice ] ofApp: a2 =\n// [[9, 8, 7, ]\n// [6, 5, 4, ]\n// [3, 2, 1, ]]\n//\n// [notice ] ofApp: dot(a1, a2) =\n// [[30, 24, 18, ]\n// [84, 69, 54, ]\n// [138, 114, 90, ]]\n```\n\n## LICENSE\n\n- NumCpp: [MIT License](https://github.com/dpilger26/NumCpp/blob/Version_2.12.1/LICENSE)\n\nNOTE: No specific copyright is claimed for this repository changes (for oF binding), but the [Apache License 2.0](LICENSE_APACHE) or [MIT License](LICENSE_MIT) can be applied if necessary.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffunatsufumiya%2Fofxnumcpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffunatsufumiya%2Fofxnumcpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffunatsufumiya%2Fofxnumcpp/lists"}