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

Fix the return type of linspaced_array #3023

Merged
merged 4 commits into from
Feb 7, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix copy/paste error in tests
  • Loading branch information
WardBrian authored Feb 6, 2024
commit 41bc0e8162716eecd7b09928e368e7fd2f1dd8dd
2 changes: 1 addition & 1 deletion test/unit/math/prim/fun/linspaced_array_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ TEST(MathFunctions, linspaced_array) {
std::vector<int>({-2, -1, 0, 1, 2}));

std::vector<double> x = linspaced_array(5, 1.1, 5.5);
EXPECT_STD_VECTOR_FLOAT_EQ(x, std::vector<int>({1.1, 2.2, 3.3, 4.4, 5.5}));
EXPECT_STD_VECTOR_FLOAT_EQ(x, std::vector<double>({1.1, 2.2, 3.3, 4.4, 5.5}));
}

TEST(MathFunctions, linspaced_array_throw) {
Expand Down