More matrix math and eigen integration