beaumont_linear_algebra/lib.rs
1#![deny(missing_docs)]
2
3//! A basic implementation of linear algebra common operations.
4//!
5//! <div class="warning">This crate is in an early stage of development and
6//! <strong>not</strong> production ready yet.<br>Use with caution!</div>
7//!
8//!
9
10
11/// A trait for types that have a dimension (such as vectors and matrices)
12pub trait Dimension {
13
14 /// The dimension of the type.
15 fn dimension(&self) -> usize;
16
17 /// Just a synonym of [`Dimension::dimension`]
18 fn order(&self) -> usize {
19 self.dimension()
20 }
21}
22
23mod vectors;
24// mod matrices;
25
26// Re-export the public contents of our private modules to the crate root
27pub use vectors::*;
28// pub use matrices::*;