Fixed matrix operation in basic eigendecomposition