Merge pull request #109 from aepsil0n/stabilization

Partial stabilization to Rust 1.0
This commit is contained in:
Sébastien Crozet 2015-03-29 16:41:31 +02:00
commit 8e13aae742
2 changed files with 15 additions and 18 deletions

View File

@ -82,10 +82,8 @@ Feel free to add your project to this list if you happen to use **nalgebra**!
#![deny(unused_qualifications)] #![deny(unused_qualifications)]
#![deny(unused_results)] #![deny(unused_results)]
#![warn(missing_docs)] #![warn(missing_docs)]
#![feature(unboxed_closures)]
#![feature(core)] #![feature(core)]
#![feature(std_misc)] #![cfg_attr(test, feature(test))]
#![feature(test)]
#![doc(html_root_url = "http://nalgebra.org/doc")] #![doc(html_root_url = "http://nalgebra.org/doc")]
extern crate rustc_serialize; extern crate rustc_serialize;

View File

@ -1,8 +1,7 @@
//! Traits giving structural informations on linear algebra objects or the space they live in. //! Traits giving structural informations on linear algebra objects or the space they live in.
use std::f32; use std::{f32, f64, i8, i16, i32, i64, u8, u16, u32, u64, isize, usize};
use std::f64; use std::num::Float;
use std::num::{Int, Float};
use std::slice::{Iter, IterMut}; use std::slice::{Iter, IterMut};
use std::ops::{Add, Sub, Mul, Div, Neg, Rem, Index, IndexMut}; use std::ops::{Add, Sub, Mul, Div, Neg, Rem, Index, IndexMut};
use traits::operations::{RMul, LMul, Axpy, Transpose, Inv, Absolute}; use traits::operations::{RMul, LMul, Axpy, Transpose, Inv, Absolute};
@ -363,18 +362,18 @@ macro_rules! impl_bounded(
} }
); );
impl_bounded!(f32, Float::min_value(), Float::max_value()); impl_bounded!(f32, f32::MIN, f32::MAX);
impl_bounded!(f64, Float::min_value(), Float::max_value()); impl_bounded!(f64, f64::MIN, f64::MAX);
impl_bounded!(i8, Int::min_value(), Int::max_value()); impl_bounded!(i8, i8::MIN, i8::MAX);
impl_bounded!(i16, Int::min_value(), Int::max_value()); impl_bounded!(i16, i16::MIN, i16::MAX);
impl_bounded!(i32, Int::min_value(), Int::max_value()); impl_bounded!(i32, i32::MIN, i32::MAX);
impl_bounded!(i64, Int::min_value(), Int::max_value()); impl_bounded!(i64, i64::MIN, i64::MAX);
impl_bounded!(isize, Int::min_value(), Int::max_value()); impl_bounded!(isize, isize::MIN, isize::MAX);
impl_bounded!(u8, Int::min_value(), Int::max_value()); impl_bounded!(u8, u8::MIN, u8::MAX);
impl_bounded!(u16, Int::min_value(), Int::max_value()); impl_bounded!(u16, u16::MIN, u16::MAX);
impl_bounded!(u32, Int::min_value(), Int::max_value()); impl_bounded!(u32, u32::MIN, u32::MAX);
impl_bounded!(u64, Int::min_value(), Int::max_value()); impl_bounded!(u64, u64::MIN, u64::MAX);
impl_bounded!(usize, Int::min_value(), Int::max_value()); impl_bounded!(usize, usize::MIN, usize::MAX);
// BaseFloat // BaseFloat