summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 748ca1b..fb67823 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -9,7 +9,7 @@
//!
//! Examples:
//! ```
-//! use matrix::Matrix;
+//! use matrix::{Matrix, MatrixMath};
//! use std::str::FromStr;
//! let m = Matrix::from_str("1,2,3\n4,5,6\n7,8,9").expect("Expected this to work");
//! println!("Matrix string formatting:\n{}", m);
@@ -24,8 +24,11 @@ pub mod error;
#[cfg(test)]
mod tests;
-pub use matrix::Matrix;
+pub use matrix::{Matrix, MatrixMath};
pub fn test() {
println!("Testing code here");
+ let m = Matrix::from(vec![1,2,3,4,5]);
+ m.transpose();
+ m.determinant();
}