{"id":22820852,"url":"https://github.com/gha3mi/fordiff","last_synced_at":"2026-03-01T14:02:20.787Z","repository":{"id":178152786,"uuid":"661419623","full_name":"gha3mi/fordiff","owner":"gha3mi","description":"ForDiff - A Fortran library for numerical differentiation","archived":false,"fork":false,"pushed_at":"2025-09-11T22:00:39.000Z","size":1507,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-11T23:08:26.381Z","etag":null,"topics":["complex-step-differentiation","derivative","differentiation","finite-difference","fortran","fortran-package-manager"],"latest_commit_sha":null,"homepage":"https://gha3mi.github.io/fordiff/","language":"Fortran","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/gha3mi.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-02T19:32:33.000Z","updated_at":"2025-09-11T22:00:40.000Z","dependencies_parsed_at":"2024-01-25T15:44:04.183Z","dependency_job_id":"710b7177-7d6b-48c3-88b6-8e8f44d05dd3","html_url":"https://github.com/gha3mi/fordiff","commit_stats":null,"previous_names":["gha3mi/fordiff"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/gha3mi/fordiff","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gha3mi%2Ffordiff","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gha3mi%2Ffordiff/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gha3mi%2Ffordiff/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gha3mi%2Ffordiff/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gha3mi","download_url":"https://codeload.github.com/gha3mi/fordiff/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gha3mi%2Ffordiff/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29970543,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T13:32:00.443Z","status":"ssl_error","status_checked_at":"2026-03-01T13:32:00.084Z","response_time":124,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["complex-step-differentiation","derivative","differentiation","finite-difference","fortran","fortran-package-manager"],"created_at":"2024-12-12T15:42:38.831Z","updated_at":"2026-03-01T14:02:20.767Z","avatar_url":"https://github.com/gha3mi.png","language":"Fortran","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![GitHub](https://img.shields.io/badge/GitHub-fordiff-blue.svg?style=social\u0026logo=github)](https://github.com/gha3mi/fordiff)\n[![Version](https://img.shields.io/github/v/tag/gha3mi/fordiff?label=version\u0026sort=semver)](https://github.com/gha3mi/fordiff/releases)\n[![Documentation](https://img.shields.io/badge/ford-Documentation%20-blueviolet.svg)](https://gha3mi.github.io/fordiff/)\n[![Setup Fortran Conda CI/CD](https://github.com/gha3mi/fordiff/actions/workflows/CI-CD.yml/badge.svg?branch=main)](https://github.com/gha3mi/fordiff/actions/workflows/CI-CD.yml)\n[![License](https://img.shields.io/github/license/gha3mi/fordiff?color=green)](https://github.com/gha3mi/fordiff/blob/main/LICENSE)\n\n\n**ForDiff**: A Fortran library for numerical differentiation\n\n\n- [fpm dependency](#fpm-dependency)\n- [Usage](#usage)\n- [Run Demos](#run-demos)\n- [Run Tests](#run-tests)\n- [TODO](#todo)\n- [CI Status](#ci-status)\n- [API documentation](#api-documentation)\n- [Contributing](#contributing)\n\n## fpm dependency\n\nTo use `ForDiff` as a dependency in your fpm project, include the following line in your `fpm.toml` file:\n\n```toml\n[dependencies]\nfordiff = {git=\"https://github.com/gha3mi/fordiff.git\"}\n```\n\n## Usage\n\n```fortran\nuse fordiff\ndfdx = derivative(f, x, h, method)\n```\n\n## Run Demos\n\n`example/demo1.f90` demonstrates how to compute the derivative of a scalar-valued function w.r.t to a scalar variable using complex-step and finite-difference methods.\n\n```bash\nfpm run --example demo1\n```\n\n`example/demo2.f90` demonstrates how to compute the derivative of a scalar-valued function w.r.t to a vector variable using complex-step and finite-difference methods.\n\n```bash\nfpm run --example demo2\n```\n\n`example/demo3.f90` demonstrates how to compute the derivative of a vector-valued function w.r.t to a vector variable using complex-step and finite-difference methods.\n\n```bash\nfpm run --example demo3\n```\n\n## Run Tests\n\nThe `tests` directory contains test programs to verify the functionality of the `fordiff` module. To run the tests using `fpm`, you can use:\n\n```bash\nfpm test\n```\n\n## TODO\n- [x] Complex-step: f(x) f is a scalar-valued function and x is a scalar variable\n- [x] Complex-step: f(x) f is a scalar-valued function and x is a vector variable\n- [x] Complex-step: f(x) f is a vector-valued function and x is a vector variable\n- [x] Finite Difference: f(x) f is a scalar-valued function and x is a scalar variable\n- [x] Finite Difference: f(x) f is a scalar-valued function and x is a vector variable\n- [x] Finite Difference: f(x) f is a vector-valued function and x is a vector variable\n- [ ] Automatic Differentiation\n\n## CI Status\n\n\u003c!-- STATUS:setup-fortran-conda:START --\u003e\n| Compiler   | macos | ubuntu | windows |\n|------------|----------------------|----------------------|----------------------|\n| `flang-new` | - | fpm ✅ | fpm ✅ |\n| `gfortran` | fpm ✅ | fpm ✅ | fpm ✅ |\n| `ifx` | - | fpm ✅ | fpm ✅ |\n| `lfortran` | fpm ❌ | fpm ❌ | fpm ❌ |\n| `nvfortran` | - | fpm ✅ | - |\n\u003c!-- STATUS:setup-fortran-conda:END --\u003e\n\n## API documentation\n\nThe most up-to-date API documentation for the main branch is available\n[here](https://gha3mi.github.io/fordiff/).\nTo generate the API documentation for `ForDiff` using\n[ford](https://github.com/Fortran-FOSS-Programmers/ford) run the following\ncommand:\n\n```shell\nford README.md\n```\n\n## Contributing\n\nContributions to fordiff are welcome! If you find any issues or would like to suggest improvements, please open an issue or submit a pull request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgha3mi%2Ffordiff","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgha3mi%2Ffordiff","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgha3mi%2Ffordiff/lists"}