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

Add Expr.ExponentiateOutputs and unit tests #67

Merged
merged 1 commit into from
Nov 15, 2021
Merged

Add Expr.ExponentiateOutputs and unit tests #67

merged 1 commit into from
Nov 15, 2021

Conversation

jeffmay
Copy link
Owner

@jeffmay jeffmay commented Nov 15, 2021

No description provided.

case num: Double if num.isNaN =>
result.output.value match {
case obs: Double =>
assert(obs.isNaN, "Expected output to be NaN")
Copy link
Owner Author

Choose a reason for hiding this comment

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

NaN is pretty much the only value that isn't equal to itself, so I feel like a special case is warranted here. How this would play out in plain Scala code would be effectively the same as the result you would get from vapors, so handling NaN in the resulting output is still the responsibility of the library user.

Copy link
Collaborator

@paul-a-kennedy-rally paul-a-kennedy-rally left a comment

Choose a reason for hiding this comment

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

LGTM

@jeffmay jeffmay merged commit 9384b5f into prototype Nov 15, 2021
@jeffmay jeffmay deleted the jeff/exp branch November 15, 2021 22:13
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