nalgebra/src/lib.rs

86 lines
1.6 KiB
Rust
Raw Normal View History

/*!
# A n-dimensional linear algebra library.
*/
#[link(name = "nalgebra"
, vers = "0.1"
, author = "Sébastien Crozet"
, uuid = "1E96070F-4778-4EC1-B080-BF69F7048216")];
#[crate_type = "lib"];
2013-07-24 22:50:40 +08:00
#[deny(non_camel_case_types)];
#[deny(non_uppercase_statics)];
#[deny(unnecessary_qualification)];
#[deny(missing_doc)];
extern mod std;
extern mod extra;
pub mod dmat;
pub mod dvec;
pub mod vec;
pub mod mat;
2013-06-29 08:34:45 +08:00
// specialization for some 1d, 2d and 3d operations
mod mat_spec;
mod vec_spec;
mod vec0_spec;
mod identity_spec;
// mod lower_triangular;
// mod chol;
/// Wrappers around raw matrices to restrict their behaviour.
pub mod adaptors {
2013-08-17 23:50:01 +08:00
pub mod rotmat;
pub mod transform;
}
2013-07-22 19:44:08 +08:00
pub mod types;
pub mod traits {
pub mod vector;
pub mod sample;
pub mod indexable;
pub mod row;
pub mod iterable;
pub mod outer;
pub mod cross;
pub mod inv;
pub mod transpose;
pub mod dim;
pub mod basis;
pub mod rotation;
pub mod translation;
pub mod transformation;
pub mod rlmul;
pub mod scalar_op;
pub mod homogeneous;
pub mod vec_cast;
pub mod mat_cast;
pub mod norm;
pub mod dot;
pub mod mat;
pub mod absolute;
pub mod col;
/// Unusual traits which are composition of other primitive traits.
/// Those are mainly shortcuts to make some operation easier to use or faster.
/// Mathematics purists should really not go in there!
pub mod comp {
pub mod rotation_with_translation;
pub mod absolute_rotate;
}
}
2013-05-19 01:04:03 +08:00
#[cfg(test)]
2013-09-13 16:34:49 +08:00
mod tests {
mod mat;
mod vec;
}
#[cfg(test)]
mod bench {
mod mat;
mod vec;
2013-05-19 01:04:03 +08:00
}