add function to decompose uniform scaled matrices