{"id":23450815,"url":"https://github.com/red-data-tools/red-tensor","last_synced_at":"2025-04-10T09:59:24.743Z","repository":{"id":91683628,"uuid":"300182525","full_name":"red-data-tools/red-tensor","owner":"red-data-tools","description":"Generic tensor interface in Ruby","archived":false,"fork":false,"pushed_at":"2020-11-09T07:17:38.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"math_functions","last_synced_at":"2025-02-15T19:48:43.255Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/red-data-tools.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2020-10-01T07:11:09.000Z","updated_at":"2020-11-09T07:17:42.000Z","dependencies_parsed_at":"2023-07-11T08:00:23.666Z","dependency_job_id":null,"html_url":"https://github.com/red-data-tools/red-tensor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/red-data-tools%2Fred-tensor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/red-data-tools%2Fred-tensor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/red-data-tools%2Fred-tensor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/red-data-tools%2Fred-tensor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/red-data-tools","download_url":"https://codeload.github.com/red-data-tools/red-tensor/tar.gz/refs/heads/math_functions","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248198865,"owners_count":21063626,"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":[],"created_at":"2024-12-24T00:15:14.191Z","updated_at":"2025-04-10T09:59:24.724Z","avatar_url":"https://github.com/red-data-tools.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tensor - Common protocol for numerical array libraries\n\nTensor provides the programming interface and the backend protocol for operating numerical arrays among different libraries.\n\n## Install\n\n```console\n$ gem install tensor\n```\n\n## Usage\n\n```ruby\nrequire \"tensor\"\nrequire \"numo/narray\"\nrequire \"pandas\"\n\nx1  = [0, 0.5, 1, 1.5, 2].map {|x| x * Math::PI }\nx2 = Numo::DFloat[*ary]\nx3 = Pandas::Series.new(a)\n\ny1 = Tensor.sin(x1)\ny2 = Tensor.sin(x2)\ny3 = Tensor.sin(x3)\n\np y1.class  #=\u003e Array\np y2.class  #=\u003e Numo::DFloat\np y3.class  #=\u003e \u003cclass 'pandas.core.series.Series'\u003e\n```\n\n## License\n\nMIT License\n\n## Author\n\n- [Kenta Murata](https://github.com/mrkn)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fred-data-tools%2Fred-tensor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fred-data-tools%2Fred-tensor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fred-data-tools%2Fred-tensor/lists"}