See [here](https://www.py4u.net/discuss/94828) and [here](https://stackoverflow.com/questions/16064288/gcc-optimization-flags-for-matrix-vector-operations)