2013-05-21 23:25:01 +08:00
|
|
|
/*!
|
|
|
|
|
Removed occurences of copy/Copy + improved api.
Now, access to vector components are x, y, z, w, a, b, ... instead of at[i].
The method at(i) has the same (read only) effect as the old at[i].
Now, access to matrix components are m11, m12, ... instead of mij[offset(i, j)]...
The method at((i, j)) has the same effect as the old mij[offset(i, j)].
Automatic implementation of all traits the compiler supports has been added on the #[deriving]
clause for both matrices and vectors.
2013-07-20 21:07:49 +08:00
|
|
|
# A n-dimensional linear algebra library.
|
2013-05-21 23:25:01 +08:00
|
|
|
|
|
|
|
*/
|
2013-05-15 05:08:29 +08:00
|
|
|
#[link(name = "nalgebra"
|
Removed occurences of copy/Copy + improved api.
Now, access to vector components are x, y, z, w, a, b, ... instead of at[i].
The method at(i) has the same (read only) effect as the old at[i].
Now, access to matrix components are m11, m12, ... instead of mij[offset(i, j)]...
The method at((i, j)) has the same effect as the old mij[offset(i, j)].
Automatic implementation of all traits the compiler supports has been added on the #[deriving]
clause for both matrices and vectors.
2013-07-20 21:07:49 +08:00
|
|
|
, vers = "0.1"
|
2013-05-15 05:08:29 +08:00
|
|
|
, author = "Sébastien Crozet"
|
2013-09-22 16:58:21 +08:00
|
|
|
, uuid = "1e96070f-4778-4ec1-b080-bf69f7048216")];
|
2013-05-15 05:08:29 +08:00
|
|
|
#[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)];
|
2013-05-15 05:08:29 +08:00
|
|
|
|
|
|
|
extern mod std;
|
Removed occurences of copy/Copy + improved api.
Now, access to vector components are x, y, z, w, a, b, ... instead of at[i].
The method at(i) has the same (read only) effect as the old at[i].
Now, access to matrix components are m11, m12, ... instead of mij[offset(i, j)]...
The method at((i, j)) has the same effect as the old mij[offset(i, j)].
Automatic implementation of all traits the compiler supports has been added on the #[deriving]
clause for both matrices and vectors.
2013-07-20 21:07:49 +08:00
|
|
|
extern mod extra;
|
2013-05-15 05:08:29 +08:00
|
|
|
|
2013-08-02 00:55:42 +08:00
|
|
|
pub mod dmat;
|
|
|
|
pub mod dvec;
|
2013-07-22 17:35:36 +08:00
|
|
|
pub mod vec;
|
|
|
|
pub mod mat;
|
2013-09-22 16:58:21 +08:00
|
|
|
pub mod types;
|
2013-05-15 05:08:29 +08:00
|
|
|
|
2013-05-21 23:25:01 +08:00
|
|
|
/// Wrappers around raw matrices to restrict their behaviour.
|
2013-09-13 16:26:19 +08:00
|
|
|
pub mod adaptors {
|
2013-08-17 23:50:01 +08:00
|
|
|
pub mod rotmat;
|
|
|
|
pub mod transform;
|
2013-05-17 05:30:39 +08:00
|
|
|
}
|
|
|
|
|
2013-09-26 23:18:14 +08:00
|
|
|
/// Traits implemented by matrices and vectors. Re-exported by the `mat` or the `vec` module.
|
2013-09-13 16:26:19 +08:00
|
|
|
pub mod traits {
|
2013-09-22 16:58:21 +08:00
|
|
|
pub mod geometry;
|
|
|
|
pub mod structure;
|
|
|
|
pub mod operations;
|
2013-05-15 05:08:29 +08:00
|
|
|
}
|
2013-05-19 01:04:03 +08:00
|
|
|
|
2013-09-22 16:58:21 +08:00
|
|
|
// specialization for some 1d, 2d and 3d operations
|
|
|
|
#[doc(hidden)]
|
|
|
|
mod spec {
|
|
|
|
mod identity;
|
|
|
|
mod mat;
|
|
|
|
mod vec0;
|
|
|
|
mod vec;
|
|
|
|
}
|
|
|
|
// mod lower_triangular;
|
|
|
|
// mod chol;
|
|
|
|
|
2013-05-21 23:25:01 +08:00
|
|
|
#[cfg(test)]
|
2013-09-13 16:34:49 +08:00
|
|
|
mod tests {
|
|
|
|
mod vec;
|
2013-09-22 16:58:21 +08:00
|
|
|
mod mat;
|
2013-09-13 19:21:42 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
#[cfg(test)]
|
|
|
|
mod bench {
|
|
|
|
mod vec;
|
2013-09-22 16:58:21 +08:00
|
|
|
mod mat;
|
2013-05-19 01:04:03 +08:00
|
|
|
}
|