Skip to content

Return type of eigenvalues from lqr and lqe not consistent #439

Description

@bnavigator

This came up while pytestifying statefbk_test.py (#438)

lqr() will always return E as (nstates, ) array

E = w[0:nstates];
return _ssmatrix(K), _ssmatrix(S), E

lqe() returns _ssmatrix(E) which is a (nstates, ) array or (1, nstates) matrix depending on config.defaults.use_numpy_matrix()

return _ssmatrix(LT.T), _ssmatrix(P), _ssmatrix(E)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions