Skip to content

Ensure a zero float is returned if multiplier is zero - #201

Merged
santisoler merged 1 commit into
mainfrom
zero-multiplier
Oct 22, 2026
Merged

santisoler merged 1 commit into
mainfrom
zero-multiplier

Conversation

@santisoler

Copy link
Copy Markdown
Member

Make sure that when calling a Scaled function with a null multiplier (as a float or as any Real object) the float 0.0 is returned. Add a test for the patch, and for the gradient, hessian and hessian_diagonal methods in case the multiplier is null.

Make sure that when calling a `Scaled` function with a null multiplier
(as a `float` or as any `Real` object) the `float` 0.0 is returned.
Add a test for the patch, and for the `gradient`, `hessian` and
`hessian_diagonal` methods in case the multiplier is null.
@santisoler
santisoler merged commit b3693e2 into main Oct 22, 2026
5 checks passed
@santisoler
santisoler deleted the zero-multiplier branch October 22, 2026 18: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.

1 participant