Implemented absolute and relative matrix transformations