We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 linspaced_array function returns integers when it should return real numbers.
linspaced_array
Thanks to Rodrigo Silva for reporting on the forums.
transformed data { array[5] real y = linspaced_array(5, 1.1, 5.5); print("y = ", y); }
Output is:
Chain [3] y = [1,2,3,4,5]
y = [1.1,2.2,3.3,4.4,5.5]
v4.8.1
The text was updated successfully, but these errors were encountered:
It seems like this was introduced in c3226b0 as a result of a misread review comment
The tests never directly assign this to std::vector<double>, but I'm still surprised they compiled.
std::vector<double>
Sorry, something went wrong.
SteveBronder
WardBrian
Successfully merging a pull request may close this issue.
Description
The
linspaced_array
function returns integers when it should return real numbers.Thanks to Rodrigo Silva for reporting on the forums.
Example
Output is:
Expected output
Current Version:
v4.8.1
The text was updated successfully, but these errors were encountered: