-
Notifications
You must be signed in to change notification settings - Fork 82
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
Too many subscripts for einstein sum #164
Comments
I'm guessing your function spits out the wrong data shape. Can you provide a minimal example? |
It is literally the line_segment example in the readme file.
|
Cannot reproduce. This import quadpy
import numpy as np
val = quadpy.line_segment.integrate(
lambda x: np.exp(x),
[0.0, 1.0],
quadpy.line_segment.GaussPatterson(5)
)
print(val) gives
on my machine. (The exact value is |
Looks very much like an error in your numpy installation. |
Edit: Tried it again after restarting ipython. And it worked this time. Got the same answer as you. Possibly some numpy issue. Thanks for looking in to it. |
Hi Nico,
I wanted to use quadpy for my integrations. I tried the line_integral example given in the readme. It gives me a
ValueError: einstein sum subscripts string contains too many subscripts for operand 0
.I am not sure what is going wrong. Any ideas?
Thanks.
The text was updated successfully, but these errors were encountered: