Skip to content

Conversation

@amostof
Copy link

@amostof amostof commented Sep 19, 2023

No description provided.

@ChrisRackauckas
Copy link
Member

Can you add a test?

if weight == nothing
@inbounds for i in 1:length(sol)
sumsq += (data[i] - sol[i])^2
sumsq += (coalesce(data[i] - sol[i], 0))^2
Copy link
Member

Choose a reason for hiding this comment

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

use zero of the same type as elements

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.

3 participants