a matrix toolkit (mirror)