{"id":24573107,"url":"https://github.com/perazz/fastmath","last_synced_at":"2026-01-03T16:47:38.457Z","repository":{"id":152531353,"uuid":"557180213","full_name":"perazz/fastmath","owner":"perazz","description":"A Modern Fortran library for fast, approximate math functions","archived":false,"fork":false,"pushed_at":"2023-01-22T10:04:15.000Z","size":13,"stargazers_count":15,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-23T19:55:35.575Z","etag":null,"topics":["exponential","fast-math","fortran","logarithm","rsqrt"],"latest_commit_sha":null,"homepage":"","language":"Fortran","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/perazz.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}},"created_at":"2022-10-25T08:10:45.000Z","updated_at":"2024-11-15T11:25:14.000Z","dependencies_parsed_at":"2023-09-24T12:00:52.487Z","dependency_job_id":null,"html_url":"https://github.com/perazz/fastmath","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"ad0f14c455205c0e6c1b9300cd7f333fafb750e2"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perazz%2Ffastmath","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perazz%2Ffastmath/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perazz%2Ffastmath/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perazz%2Ffastmath/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/perazz","download_url":"https://codeload.github.com/perazz/fastmath/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244014773,"owners_count":20383832,"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":["exponential","fast-math","fortran","logarithm","rsqrt"],"created_at":"2025-01-23T19:55:48.165Z","updated_at":"2026-01-03T16:47:38.409Z","avatar_url":"https://github.com/perazz.png","language":"Fortran","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fastmath\n\nThis is a Modern Fortran library for fast, approximate math functions: `exp`, `log`, `1/sqrt`. \n\nThese functions provide fast, approximate evaluations of the exponential, logarithm and normalization functions in 64-bit precision. \n\nA detailed explanation of the underlying math with the IEEE-754 representation is reported in ref [1].\n\nFor each function, a module is provided; the interface has both simple functions and a programmable object-oriented wrapper. \n\nReferences\n==========\n\nThis code is released under MIT license; please cite the following reference whenever using it.\n\n[1] F. Perini, R.D. Reitz, \"Fast approximations of exponential and logarithm functions combined with efficient storage/retrieval for combustion kinetics calculations\" Combustion and Flame 194(2018), 37-51. \n\nBuilding, using\n===============\n\nAn automated build is not available yet. \n- `src/fast_exp.f90`   contains the exponential routines\n- `src/fast_log.f90`   contains the logarithm routines\n- `src/fast_rsqrt.f90` contains the 1/sqrt(x) routines.\n- `test/test.f90` is the test driver program \n\nEach module has no external dependencies, they can also be used individually.\n\nA simple command line build script is: \n\n```\ngfortran src/fast_exp.f90 src/fast_log.f90 src/fast_rsqrt.f90 test/test.f90  -o fastmath_test.exe\n```\n\nA simple makefile for the GNU compiler suite is provided in folder `project`; to run it: \n\n```\ncd project/\nmake -f makefile.gcc\n```\n\nThe testing executable compares performance and accuracy wrt the compiler's intrinsics functions. \n \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperazz%2Ffastmath","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fperazz%2Ffastmath","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperazz%2Ffastmath/lists"}