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

Monotonic interpolations #238

Closed
Closed
Show file tree
Hide file tree
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
1 change: 0 additions & 1 deletion test/gradient.jl
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,6 @@ using Test, Interpolations, DualNumbers, LinearAlgebra
for t in grid
gradval = epsilon(itp(dual(t, 1.0)))
@test Interpolations.gradient1(itp, t) ≈ gradval atol = 1.e-12
@test Interpolations.gradient(itp, [t])[1] ≈ gradval atol = 1.e-12
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather than remove these can you change [t] to t?

end
end
end
Expand Down
1 change: 0 additions & 1 deletion test/hessian.jl
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ using Test, Interpolations, LinearAlgebra, ForwardDiff
for t in grid
hessval = ForwardDiff.hessian(u -> itp(u[1]), [t])[1, 1]
@test Interpolations.hessian1(itp, t) ≈ hessval atol = 1.e-12
@test Interpolations.hessian(itp, [t])[1] ≈ hessval atol = 1.e-12
end
end
end
Expand Down