8000 Better compare implementations for numeric tower (autodiff #3.5) by sritchie · Pull Request #236 · sicmutils/sicmutils · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Better compare implementatio 10000 ns for numeric tower (autodiff #3.5) #236

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

Merged
merged 25 commits into from
Jan 31, 2021

Conversation

sritchie
Copy link
Member

The autodiff PRs exposed some weaknesses with our ability to compare numbers to each other in Clojurescript. I caught some of this stuff after I realized that by using sg/real I would flex a lot of the cross-type comparisons.

I also discovered valueOf in Javascript, which allows us to compare, say, a wrapped Differential or Expression instance (holding a number) with a native number, using the native comparison operators!!

@codecov-io
Copy link

Codecov Report

❗ No coverage uploaded for pull request base (sritchie/diff_three@9ec861f). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@                  Coverage Diff                   @@
##             sritchie/diff_three     #236   +/-   ##
======================================================
  Coverage                       ?   84.16%           
======================================================
  Files                          ?       79           
  Lines                          ?     8098           
  Branches                       ?      441           
======================================================
  Hits                           ?     6816           
  Misses                         ?      841           
  Partials                       ?      441           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9ec861f...21162e6. Read the comment docs.

@sritchie sritchie changed the base branch from sritchie/diff_three to master January 21, 2021 23:01
@sritchie
Copy link
Member Author

@littleredcomputer , merging this and a few of the less-brainy ones to drain the queue a bit.

@sritchie sritchie merged commit de43bea into master Jan 31, 2021
@sritchie sritchie deleted the sritchie/compare_fixes branch May 3, 2021 13: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
0