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

Use numpy arrays as default return value #166

Closed
axsaucedo opened this issue Feb 28, 2021 · 0 comments · Fixed by #164
Closed

Use numpy arrays as default return value #166

axsaucedo opened this issue Feb 28, 2021 · 0 comments · Fixed by #164

Comments

@axsaucedo
Copy link
Member

Using python list has a flaw given that by default python floats are C++ doubles, so there are situations where there is nuanced differences even when returning a rounded up float. To avoid these ambiguities it's best to ensure we always use numpy arrays as return values - similarly we currently also support numpy arrays as parameter so users shoudl eb aware that there may be some loss if this is not approached consciously.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant