This PR proposes a change to the adjoint function in adjoint.m. Specifically, the change will modify the behavior of adjoint(M) when M is a scalar. Currently, when M is a scalar, the function returns M itself. However, this PR proposes that adjoint(M) should instead return 1 for scalar M.
This PR proposes a change to the adjoint function in adjoint.m. Specifically, the change will modify the behavior of adjoint(M) when M is a scalar. Currently, when M is a scalar, the function returns M itself. However, this PR proposes that adjoint(M) should instead return 1 for scalar M.