matrix decompositions and operations migration draft