converts a css matrix string into a mat4 array