A small, extensible matrix library for heterogeneous supercomputers