code to help debug singular code in M2
merging in mikestillman/linalg