nalgebra/src/nalgebra.rc
Sébastien Crozet 7052aa88ee Add two traits: CrossMatrix and Row.
CrossMatrix is a trait for vectors having a cross product representable as a matrix.
Row is a trait for Matrixces and Vectors, to access (by index) their rows.
2013-08-25 23:01:44 +02:00

79 lines
1.4 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*!
# 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"];
#[deny(non_camel_case_types)];
#[deny(non_uppercase_statics)];
#[deny(unnecessary_qualification)];
#[deny(missing_doc)];
#[deny(warnings)];
extern mod std;
extern mod extra;
pub mod dmat;
pub mod dvec;
pub mod vec;
pub mod mat;
// specialization for some 1d, 2d and 3d operations
mod mat_spec;
mod vec_spec;
mod vec0_spec;
mod identity_spec;
/// Wrappers around raw matrices to restrict their behaviour.
pub mod adaptors
{
pub mod rotmat;
pub mod transform;
}
pub mod types;
// pub mod num
// {
// pub use traits::dim::*;
// pub use traits::homogeneous::*;
// pub use traits::ring::*;
// pub use traits::division_ring::*;
// }
// FIXME: it would be better to hide all those from the outside!
pub mod traits
{
pub mod vector;
pub mod sample;
pub mod indexable;
pub mod column;
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;
}
#[cfg(test)]
pub mod tests
{
pub mod mat;
pub mod vec;
}