1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
extern crate num as libnum;
extern crate matrixmultiply;

pub mod matrix;
pub mod convert;
pub mod macros;
pub mod error;
pub mod utils;
pub mod vector;

/// Trait for linear algebra metrics.
///
/// Currently only implements basic euclidean norm.
pub trait Metric<T> {
    /// Computes the euclidean norm.
    fn norm(&self) -> T;
}