two new gfxmatrix functions