Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Infinite recursion in apply for IdentityOperator * scalar #276

Closed
pmli opened this issue Jul 29, 2016 · 1 comment
Closed

Infinite recursion in apply for IdentityOperator * scalar #276

pmli opened this issue Jul 29, 2016 · 1 comment
Milestone

Comments

@pmli
Copy link
Member

@pmli pmli commented Jul 29, 2016

from pymor.operators.constructions import IdentityOperator
from pymor.vectorarrays.numpy import NumpyVectorArray
import numpy as np

v = NumpyVectorArray(np.array([1, 2, 3]))
A = IdentityOperator(v.space) * 3

A.apply(v)

causes RuntimeError: maximum recursion depth exceeded in comparison.

(Observed when replacing LincombOperator((A, I), (1, p)) with A + I * p.)

@sdrave sdrave added this to the 0.4 milestone Jul 29, 2016
@sdrave
Copy link
Member

@sdrave sdrave commented Jul 30, 2016

Hi, I have just pushed f562037 to master and the 0.4.x branch, which should make the above code work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants