nalgebra/src/nalgebra.rc

76 lines
1.2 KiB
Plaintext
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"];
#[warn(non_camel_case_types)]
extern mod std;
extern mod extra;
2013-07-22 16:26:20 +08:00
mod dmat;
mod dvec;
pub mod vec;
pub mod mat;
2013-06-29 08:34:45 +08:00
// specialization for some 1d, 2d and 3d operations
pub mod mat_spec;
pub mod vec_spec;
2013-07-20 22:32:39 +08:00
pub mod vec0_spec;
/// Wrappers around raw matrices to restrict their behaviour.
pub mod adaptors
{
pub mod rotmat;
pub mod transform;
}
2013-07-22 19:44:08 +08:00
pub mod types;
pub mod num
2013-07-22 16:26:20 +08:00
{
pub use traits::dim::*;
pub use traits::homogeneous::*;
2013-07-22 16:26:20 +08:00
pub use traits::ring::*;
pub use traits::division_ring::*;
}
2013-07-22 16:26:20 +08:00
// FIXME: it would be better to hide all those from the outside!
/// Useful linear-algebra related traits.
mod traits
{
mod sample;
mod indexable;
mod column;
mod iterable;
mod dot;
mod cross;
mod inv;
mod transpose;
mod dim;
mod basis;
mod norm;
mod rotation;
mod translation;
mod transformation;
mod vector_space;
mod ring;
mod division_ring;
mod sub_dot;
mod rlmul;
mod scalar_op;
mod homogeneous;
}
2013-05-19 01:04:03 +08:00
#[cfg(test)]
pub mod tests
2013-05-19 01:04:03 +08:00
{
pub mod mat;
pub mod vec;
2013-05-19 01:04:03 +08:00
}