Using [ndarray](https://docs.rs/ndarray/0.14.0/ndarray/) may provide some very convenient functions. It may also increase the size of the generated code. We should look into this possibility.