Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion slycot/synthesis.py
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,7 @@ def sb03md57(A, U=None, C=None,
if C is None:
C = _np.zeros((n, n))
if ldwork is None:
ldwork = max(2*n*n, 3*n)
ldwork = max(2*n*n, 3*n) if dico == 'C' else 2*n*n + 2*n
if dico != 'C' and dico != 'D':
raise SlycotParameterError('dico must be either D or C', -1)
out = _wrapper.sb03md(dico, n, A, U, C,
Expand Down