[−][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)] use tensor_macros::*; tensor!(M23 2 x 3); let m23: M23<f64> = Default::default(); assert_eq!(m23.dims(), vec!(2, 3));