{"id":26411491,"url":"https://github.com/kongzii/sgsl","last_synced_at":"2025-03-17T20:34:36.581Z","repository":{"id":63915563,"uuid":"253567154","full_name":"kongzii/SGSL","owner":"kongzii","description":"Simple scientific library for Swift based on GNU Scientific Library","archived":false,"fork":false,"pushed_at":"2020-06-07T20:22:51.000Z","size":9043,"stargazers_count":10,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-16T02:49:15.305Z","etag":null,"topics":["gsl","gsl-library","mathematics","scientific-computing","statistics","swift"],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kongzii.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}},"created_at":"2020-04-06T17:19:45.000Z","updated_at":"2023-09-01T16:55:08.000Z","dependencies_parsed_at":"2023-01-14T13:30:55.139Z","dependency_job_id":null,"html_url":"https://github.com/kongzii/SGSL","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kongzii%2FSGSL","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kongzii%2FSGSL/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kongzii%2FSGSL/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kongzii%2FSGSL/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kongzii","download_url":"https://codeload.github.com/kongzii/SGSL/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244106394,"owners_count":20399011,"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":["gsl","gsl-library","mathematics","scientific-computing","statistics","swift"],"created_at":"2025-03-17T20:34:35.916Z","updated_at":"2025-03-17T20:34:36.565Z","avatar_url":"https://github.com/kongzii.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Swift Version](https://img.shields.io/badge/Swift-5.2-green.svg)]()\n[![Build Status](https://travis-ci.com/kongzii/SGSL.svg?branch=master)](https://travis-ci.com/kongzii/SGSL)\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com) \n\n# SGSL\n\nSimple scientific library for Swift based on [GNU Scientific Library](https://www.gnu.org/software/gsl/).\n\nDocumentation is generated automatically from master branch using [jazzy](https://github.com/realm/jazzy) and [travis](travis-ci.org). Available at [github pages](https://kongzii.github.io/SGSL/).\n\n## Usage\n\n### Add dependency\n\nAdd a dependency in your `Package.swift`\n\n```swift\n.package(url: \"https://github.com/kongzii/SGSL\", from: \"0.1.0\")\n```\n\nCurrently, SGSL depends on the system library `gsl`. \n\n#### OSX\n\n```\nbrew install gsl\n```\n\n#### Linux\n\n```\napt install pkg-config libgsl-dev\n```\n\n### Usage\n\n#### Import whole library\n\nYou can import the whole library via\n\n```swift\nimport SGSL\n```\n\n#### Import only required components\n\nOr only specific parts\n\n```swift\nimport Statistics\n```\n\n### Usage example\n\n```swift\nimport Statistics\n\nlet x = [1.0, 2.0, 3.0]\nprint(x.mean())\n```\n\n## Documentation\n\nTo generate documentation, run `make documentation`. Files will be saved into `./Documentation` folder. It is not needed to re-generate documentation in PRs, as this will be done and published automatically.\n\n## Code style\n\nWe use [swiftformat](https://github.com/nicklockwood/SwiftFormat) with default settings.\n\n## Tests\n\n```\ndocker-compose up --build test\n```\n\n## Contributions\n\nIf you found missing features or bugs, please feel free to open an issue or even better, a pull request.\n\n**Working on your first Pull Request?** You can learn how from this *free* series [How to Contribute to an Open Source Project on GitHub](https://egghead.io/series/how-to-contribute-to-an-open-source-project-on-github) \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkongzii%2Fsgsl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkongzii%2Fsgsl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkongzii%2Fsgsl/lists"}