[−][src]Macro tensor_macros::tensor
Generates a tensor type
Generates a type with the given name and dimensions (space seperated) There's no upper limit on the amount of dimensions given Matricies and vectors have special properties assigned to them
Example
#![feature(try_from)] #[macro_use] use tensor_macros::*; use tensor_macros::tensor::*; tensor!(M23: 2 x 3); assert_eq!(M23::<f64>::dims(), vec!(2, 3)); let m23: M23<f64> = Default::default(); assert_eq!(m23.get_dims(), vec!(2, 3));