Fixed matrix inverse functions