Coder Social home page Coder Social logo

arb's Introduction

Arb

This package provides a high-level ocaml limited interface to the Arb library. For more information on functionality see the arb documentation.

Dependencies

This package requires arb and flint as well as gmp to be installed for this package to build.

For ocaml opam is also helpful. To install these dependencies on Ubuntu run:

sudo apt-get install opam libgmp-dev libflint-dev libflint-arb-dev

To initialize opam run:

opam init

To install dune run:

opam install dune

Optional dependency Zarith

This package contains two public libraries. arb, and optionally arb.zarith. In the arb library the only way to interface to the arb integer type is by the use of strings. The conversion from these strings to gmp values gives a slight overhead. arb.zarith has all the functionality as arb except it also provides conversions from zarith integers to arb integers directly. arb.zarith will be built and installed if you have zarith installed. Otherwise, only arb will be installed.

To install zarith run:

opam install zarith

Building

To build the libraries run:

dune build

Installing

To install the library as a dev version through opam run:

opam install .

Usage

If the package is installed, documentation can be built with odig odoc and viewed with odig doc. Or documentation can be built locally with dune build @doc, and then viewed in _build/default/_doc/_html.

bin/main.ml gives some examples of using the library. To run use dune exec bin/main.exe

arb's People

Contributors

cyphertjohn avatar

Watchers

 avatar

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.