Giter Site home page Giter Site logo

kongzii / sgsl Goto Github PK

View Code? Open in Web Editor NEW
10.0 2.0 1.0 8.83 MB

Simple scientific library for Swift based on GNU Scientific Library

License: Apache License 2.0

Swift 96.08% C 0.63% Makefile 3.29%
swift scientific-computing mathematics statistics gsl gsl-library

sgsl's Introduction

Swift Version Build Status PRs Welcome

SGSL

Simple scientific library for Swift based on GNU Scientific Library.

Documentation is generated automatically from master branch using jazzy and travis. Available at github pages.

Usage

Add dependency

Add a dependency in your Package.swift

.package(url: "https://github.com/kongzii/SGSL", from: "0.1.0")

Currently, SGSL depends on the system library gsl.

OSX

brew install gsl

Linux

apt install pkg-config libgsl-dev

Usage

Import whole library

You can import the whole library via

import SGSL

Import only required components

Or only specific parts

import Statistics

Usage example

import Statistics

let x = [1.0, 2.0, 3.0]
print(x.mean())

Documentation

To 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.

Code style

We use swiftformat with default settings.

Tests

docker-compose up --build test

Contributions

If you found missing features or bugs, please feel free to open an issue or even better, a pull request.

Working on your first Pull Request? You can learn how from this free series How to Contribute to an Open Source Project on GitHub

sgsl's People

Contributors

kongzii avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

renangreca

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.