macro_rules! tensor { ( $( [ $( $x:expr ),* ] ),* ) => { ... }; ( $( $x:expr ),* $(,)? ) => { ... }; }
Expand description
Creates a new Tensor
from a two-dimensional vector of floating point values.
§Usage
let tensor = tensor![[1.0, 2.0], [3.0, 4.0]];