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 convert instead of Vector(x) #285

Merged
merged 1 commit into from
Aug 8, 2022
Merged

use convert instead of Vector(x) #285

merged 1 commit into from
Aug 8, 2022

Conversation

dpo
Copy link
Member

@dpo dpo commented Aug 1, 2022

If x is already a Vector{Float64} and y = convert(Vector{Float64}, x),
then x == y and x === y, which isn't true if y = Vector{Float64}(x).

@dpo dpo requested a review from tmigot August 1, 2022 22:47
If x is already a Vector{Float64} and y = convert(Vector{Float64}, x),
then x == y and x === y, which isn't true if y = Vector{Float64}(x).
@codecov
Copy link

codecov bot commented Aug 8, 2022

Codecov Report

Merging #285 (ee45fe2) into main (960dde2) will decrease coverage by 0.43%.
The diff coverage is 93.75%.

@@            Coverage Diff             @@
##             main     #285      +/-   ##
==========================================
- Coverage   87.18%   86.75%   -0.44%     
==========================================
  Files           5        5              
  Lines         718      717       -1     
==========================================
- Hits          626      622       -4     
- Misses         92       95       +3     
Impacted Files Coverage Δ
src/julia_interface.jl 99.71% <93.75%> (ø)
src/CUTEst.jl 82.68% <0.00%> (-1.77%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Member

@tmigot tmigot left a comment

Choose a reason for hiding this comment

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

Thanks for updating!

@tmigot tmigot merged commit c9acb80 into main Aug 8, 2022
@tmigot tmigot deleted the convert branch August 8, 2022 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants