Matrix and other utilities for use with GoGL (https://github.com/chsc/GoGL)