QMRITools`GeneralTools`
QMRITools`GeneralTools`

DecomposeScaleMatrix

DecomposeScaleMatrix[mat]

decomposes the affine matirx in T, R, S and Q.