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

Comments

Projects
None yet
2 participants
@pmli
Member

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

This comment has been minimized.

Member

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