rust-numpy 0.1.0

A row version of a convinient rust-numpy library which target is to dublicate functionality of well known python library 'numpy'.
Documentation
#![allow(unused_macros)]

pub use vector::Vector;
pub use matrix::Matrix;


mod vector;
mod matrix;
mod vectors;
mod macroses;

#[cfg(test)]
mod tests;

pub trait Init {

    type Output;
    type Size;

    fn init(value: f64, size: Self::Size) -> Self::Output;

    fn init_func<F>(func: F, size: Self::Size) -> Self::Output
        where F: std::ops::Fn(Self::Size) -> f64;

    fn zeros(size: Self::Size) -> Self::Output {
        Self::init(0.0, size)
    }

    fn ones(size: Self::Size) ->Self::Output {
        Self::init(1.0, size)
    }
}


pub trait Dot<Rhs = Self> {
    type Output;

    fn dot(&self, rhs: &Rhs) -> Self::Output;
}


// #[macro_export]
// macro_rules! impl_math {
//     ( $( $func:ident ),* ) => {
//         trait Math {
//             type Output;
//             $(
//             fn $func(&self) -> Self::Output {
//                 self.apply(f64::$func)
//             }
//             )*
//
//             #[inline]
//             fn apply(&self, func: fn(f64) -> f64) -> Self::Output;
//         }
//     };
// }




// impl_math![
//     sin, cos, tan,
//     // (asin), (acos), (atan),
//     // (sinh), (cosh), (tanh),
//     // (asinh), (acosh), (atanh),
//     // (ln), (log10), (log2)
//     (powf, power : f64)
// ];