Go to file
Homu aff06286ad Auto merge of #275 - bluss:repr-c, r=cuviper
Complex: Use repr(C) and add documentation for what it means

Here's an ambitious proposal that puts currently practiced ffi usage of `Complex<f32/f64>` on sound footing.

Fixes  #79

Current users appear to be:

- https://crates.io/crates/blas
  + Their use is not about Complex<f64> in an extern function's signature, but it is explicitly using that it is memory layout compatible.
2017-04-05 01:53:14 +09:00
benches bigint: allow `Sub` to work in-place on the RHS 2016-07-08 17:34:12 -07:00
bigint num-bigint-0.1.37 2017-03-08 11:14:32 -08:00
ci Bump rustc to 1.8 and revamp all CI 2017-02-09 16:09:48 -08:00
complex complex: Use repr(C) and add documentation for what it means 2017-04-04 06:48:35 +02:00
derive Add licenses to subcrates 2017-02-26 13:39:23 -08:00
doc Update repo and doc links 2015-11-12 18:40:13 -08:00
integer Auto merge of #272 - vks:binomial-coeffs, r=cuviper 2017-03-31 10:29:14 +09:00
iter Add licenses to subcrates 2017-02-26 13:39:23 -08:00
macros Add licenses to subcrates 2017-02-26 13:39:23 -08:00
rational Add licenses to subcrates 2017-02-26 13:39:23 -08:00
src Made requested changes. 2017-02-07 13:02:32 -07:00
traits Add licenses to subcrates 2017-02-26 13:39:23 -08:00
.gitignore Update num-macros to Rust master 2015-05-14 10:19:47 -07:00
.travis.yml Bump rustc to 1.8 and revamp all CI 2017-02-09 16:09:48 -08:00
Cargo.toml Bump versions in the num collection 2017-02-26 14:18:33 -08:00
LICENSE-APACHE Initial seeding from rust repo 2014-09-16 10:35:35 -07:00
LICENSE-MIT Initial seeding from rust repo 2014-09-16 10:35:35 -07:00
README.md Bump rustc to 1.8 and revamp all CI 2017-02-09 16:09:48 -08:00

README.md

num

A collection of numeric types and traits for Rust.

This includes new types for big integers, rationals, and complex numbers, new traits for generic programming on numeric properties like `Integer, and generic range iterators.

Documentation

Usage

Add this to your Cargo.toml:

[dependencies]
num = "0.1"

and this to your crate root:

extern crate num;

Compatibility

Most of the num crates are tested for rustc 1.8 and greater. The exceptions are num-derive which requires at least rustc 1.15, and the deprecated num-macros which requires nightly rustc.