{"id":21054662,"url":"https://github.com/bemasher/fftw","last_synced_at":"2025-07-07T08:33:35.744Z","repository":{"id":13793020,"uuid":"16488461","full_name":"bemasher/fftw","owner":"bemasher","description":"A Go wrapper for 1D full and half complex DFT's provided by the FFTW library.","archived":false,"fork":false,"pushed_at":"2014-07-30T11:34:14.000Z","size":302,"stargazers_count":2,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-05T07:25:15.486Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bemasher.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-02-03T18:28:37.000Z","updated_at":"2023-01-30T15:34:46.000Z","dependencies_parsed_at":"2022-09-14T09:12:51.767Z","dependency_job_id":null,"html_url":"https://github.com/bemasher/fftw","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bemasher/fftw","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bemasher%2Ffftw","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bemasher%2Ffftw/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bemasher%2Ffftw/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bemasher%2Ffftw/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bemasher","download_url":"https://codeload.github.com/bemasher/fftw/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bemasher%2Ffftw/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264043190,"owners_count":23548518,"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-11-19T16:15:57.491Z","updated_at":"2025-07-07T08:33:35.681Z","avatar_url":"https://github.com/bemasher.png","language":"C++","readme":"## FFTW\nThis package is a wrapper for 1D full and half complex DFT's provided by the FFTW library. Beware, this package is still under some heavy development and interface is subject to change.\n\n[![Build Status](https://travis-ci.org/bemasher/fftw.svg?branch=master)](https://travis-ci.org/bemasher/fftw)\n[![GoDoc](https://godoc.org/github.com/bemasher/fftw?status.png)](https://godoc.org/github.com/bemasher/fftw)\n\n## Example\n```Go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"github.com/bemasher/fftw\"\n)\n\nfunc main() {\n\tdft := fftw.NewDFT1D(8, fftw.Forward, fftw.OutOfPlace, fftw.Measure)\n\tdefer dft.Close()\n\n\t// Modifying the location of the input or output arrays will cause FFTW to\n\t// fail. Instead, copy data into and out of arrays.\n\tcopy(dft.In, []complex128{1, 1, 1, 1, 0, 0, 0, 0})\n\n\tdft.Execute()\n\n\tfmt.Println(dft)\n\tfmt.Printf(\"%+0.3f\\n\", dft.In)\n\tfmt.Printf(\"%+0.3f\\n\", dft.Out)\n}\n```\nOutput:\n```\n{Kind:C2C Locality:OutOfPlace PlanFlags:NA In:[8]complex128 Out:[8]complex128}\n[(+1.000+0.000i) (+1.000+0.000i) (+1.000+0.000i) (+1.000+0.000i) (+0.000+0.000i) (+0.000+0.000i) (+0.000+0.000i) (+0.000+0.000i)]\n[(+4.000+0.000i) (+1.000-2.414i) (+0.000+0.000i) (+1.000-0.414i) (+0.000+0.000i) (+1.000+0.414i) (+0.000+0.000i) (+1.000+2.414i)]\n```\n\n## Windows\nOn Windows the library file `libfftw3.a` must be placed in the source directory of the package and can be generated using:\n\t\n\tdlltool -d libfftw3-3.def -D libfftw3-3.dll -l libfftw3.a\n\n## Linux\nIn Debian flavored distributions installing the `libfftw3-dev` package is all that is required:\n\n\tsudo apt-get install libfftw3-dev\n\n## Copyright\nThe FFTW header file `fftw3.h` carries the following copyright notice:\n\n\tCopyright (c) 2003, 2007-11 Matteo Frigo\n\tCopyright (c) 2003, 2007-11 Massachusetts Institute of Technology\n\n\tThe following statement of license applies *only* to this header file,\n\tand *not* to the other files distributed with FFTW or derived therefrom:\n\n\tRedistribution and use in source and binary forms, with or without\n\tmodification, are permitted provided that the following conditions\n\tare met:\n\n\t1. Redistributions of source code must retain the above copyright\n\tnotice, this list of conditions and the following disclaimer.\n\n\t2. Redistributions in binary form must reproduce the above copyright\n\tnotice, this list of conditions and the following disclaimer in the\n\tdocumentation and/or other materials provided with the distribution.\n\n\tTHIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS\n\tOR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n\tWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n\tARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY\n\tDIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n\tDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE\n\tGOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n\tINTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,\n\tWHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\n\tNEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\n\tSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbemasher%2Ffftw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbemasher%2Ffftw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbemasher%2Ffftw/lists"}