{"id":19466119,"url":"https://github.com/yoshoku/numo-pocketfft","last_synced_at":"2025-08-25T10:05:14.767Z","repository":{"id":55004034,"uuid":"201506946","full_name":"yoshoku/numo-pocketfft","owner":"yoshoku","description":"Numo::Pocketfft provides functions for descrete Fourier Transform based on pocketfft","archived":false,"fork":false,"pushed_at":"2025-01-01T12:04:16.000Z","size":130,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-03T19:51:12.522Z","etag":null,"topics":["fft","numo","ruby"],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/numo-pocketfft","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yoshoku.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2019-08-09T16:43:36.000Z","updated_at":"2025-01-01T12:04:20.000Z","dependencies_parsed_at":"2023-01-31T11:01:35.060Z","dependency_job_id":"3f927c67-7ee0-4b14-94d5-fe2b3a89affe","html_url":"https://github.com/yoshoku/numo-pocketfft","commit_stats":{"total_commits":84,"total_committers":3,"mean_commits":28.0,"dds":"0.023809523809523836","last_synced_commit":"1d8734856ed99e067b64acbc11659f89baea014f"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yoshoku%2Fnumo-pocketfft","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yoshoku%2Fnumo-pocketfft/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yoshoku%2Fnumo-pocketfft/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yoshoku%2Fnumo-pocketfft/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yoshoku","download_url":"https://codeload.github.com/yoshoku/numo-pocketfft/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250439290,"owners_count":21430823,"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":["fft","numo","ruby"],"created_at":"2024-11-10T18:25:45.175Z","updated_at":"2025-04-25T09:32:30.074Z","avatar_url":"https://github.com/yoshoku.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Numo::Pocketfft\n\n[![Build Status](https://github.com/yoshoku/numo-pocketfft/workflows/build/badge.svg)](https://github.com/yoshoku/numo-pocketfft/actions?query=workflow%3Abuild)\n[![Gem Version](https://badge.fury.io/rb/numo-pocketfft.svg)](https://badge.fury.io/rb/numo-pocketfft)\n[![BSD 3-Clause License](https://img.shields.io/badge/License-BSD%203--Clause-orange.svg)](https://github.com/yoshoku/numo-pocketfft/blob/main/LICENSE.txt)\n[![Documentation](https://img.shields.io/badge/api-reference-blue.svg)](https://yoshoku.github.io/numo-pocketfft/doc/)\n\nNumo::Pocketfft provides functions for performing descrete Fourier Transform with\n[Numo::NArray](https://github.com/ruby-numo/numo-narray) by using\n[pocketfft](https://gitlab.mpcdf.mpg.de/mtr/pocketfft) as backgroud library.\n\nNote: There are other useful Ruby gems perform descrete Fourier Transform with Numo::NArray:\n[Numo::FFTW](https://github.com/ruby-numo/numo-fftw) and [Numo::FFTE](https://github.com/ruby-numo/numo-ffte) by Masahiro Tanaka.\n\n## Installation\n\nNumo::Pocketfft bundles pocketfft codes, so there is no need to install another external library in advance.\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'numo-pocketfft'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install numo-pocketfft\n\n## Usage\n\n```ruby\nrequire 'numo/narray'\nrequire 'numo/pocketfft'\n\na = Numo::DFloat[1, 1, 1, 1]\n# =\u003e Numo::DFloat#shape=[4]\n# [1, 1, 1, 1]\n\nb = Numo::Pocketfft.rfft(a)\n# =\u003e Numo::DComplex#shape=[3]\n# [4+0i, 0+0i, 0+0i]\n\nNumo::Pocketfft.irfft(b)\n# =\u003e Numo::DFloat#shape=[4]\n# [1, 1, 1, 1]\n\nc = Numo::DFloat.new(2, 2).rand + Complex::I * Numo::DFloat.new(2, 2).rand\n# =\u003e Numo::DComplex#shape=[2,2]\n# [[0.0617545+0.116041i, 0.373067+0.344032i],\n#  [0.794815+0.539948i, 0.201042+0.737815i]]\n\nNumo::Pocketfft.ifft2(Numo::Pocketfft.fft2(c))\n#=\u003e Numo::DComplex#shape=[2,2]\n#[[0.0617545+0.116041i, 0.373067+0.344032i],\n# [0.794815+0.539948i, 0.201042+0.737815i]]\n```\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/yoshoku/numo-pocketfft. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](https://contributor-covenant.org) code of conduct.\n\n## License\n\nThe gem is available as open source under the terms of the [BSD-3-Clause License](https://opensource.org/licenses/BSD-3-Clause).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoshoku%2Fnumo-pocketfft","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyoshoku%2Fnumo-pocketfft","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoshoku%2Fnumo-pocketfft/lists"}