Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
pyMOR
pymor
Commits
add54c57
Commit
add54c57
authored
Sep 23, 2021
by
Linus
Browse files
[models.iosys] fix indexing bug
parent
a263bf4d
Pipeline
#102078
passed with stages
in 41 minutes and 22 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/pymor/models/iosys.py
View file @
add54c57
...
...
@@ -1253,8 +1253,8 @@ class LTIModel(InputStateOutputModel):
ast_ews
=
ew
[
ast_idx
]
idx
=
ast_ews
.
argsort
()
ast_lev
=
self
.
A
.
source
.
from_numpy
(
lev
[:,
idx
][:,
ast_idx
][:,
0
,
:].
T
)
ast_rev
=
self
.
A
.
range
.
from_numpy
(
rev
[:,
idx
][:,
ast_idx
][:,
0
,
:].
T
)
ast_lev
=
self
.
A
.
source
.
from_numpy
(
lev
[:,
ast_idx
][:,
0
,
:]
[:,
idx
]
.
T
)
ast_rev
=
self
.
A
.
range
.
from_numpy
(
rev
[:,
ast_idx
][:,
0
,
:]
[:,
idx
]
.
T
)
return
ast_lev
,
ast_ews
[
idx
],
ast_rev
...
...
René Fritze
@r_milk01
mentioned in commit
bdec91c2
·
Sep 24, 2021
mentioned in commit
bdec91c2
mentioned in commit bdec91c2108b0941974fe62b97c2ff51f0a2d183
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment