-
Notifications
You must be signed in to change notification settings - Fork 94
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
The PythonRandomVector.getSample() method returns a 0-dimension sample #2567
Comments
there is a default implementation of getSample but it wants to use the value 0 you declared for the dimension: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What happened?
The
QuantileOrderStatisticsBound
class below implements aPythonRandomVector
. More precisely, it implements thegetRealization()
method. ThegetSample()
method is used in the script, but this produces an error: the returnedsample
has the correct size, but has a 0 dimension.If we implement the
getSample()
method naively, everything works. Still, it seems to me that there should be a default implementation ofgetSample()
, since that it just a loop over the required sample size.How to reproduce the issue?
IndexError: vector::_M_range_check: __n (which is 0) >= this->size() (which is 0)
Version
1.22
Operating System
Windows
Installation media
conda
Additional Context
No response
The text was updated successfully, but these errors were encountered: