Karatsuba added, 2 bugs are fixed #328
No reviewers
Labels
No Label
bug
dependencies
discussion
documentation
duplicate
feature
good first issue
misc
performance
question
test
use case
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: kscience/kmath#328
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "dev"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
abs(Int.MIN_VALUE) == Int.MIN_VALUE
was fixed.equals
function now behaves with instances of other types as all other objects do.(Slack discussion)
I recently learned that E.A. Karatsuba has a fast method for evaluating transcendentals, which can be useful for working with certain probability distributions. It might be worth looking into at some point: https://en.wikipedia.org/wiki/FEE_method
@breandan However, the Karatsuba's algorithm that is subject of the PR is fast multiplication.
The changes in the core are not appropriate at the moment, they should be discussed in a separate issue first. Otherwise looks fine. It would be nice to have your benchmarking results in docs and a separate example in examples.
I have submitted what you suggested. Also, I fixed bugs, listed in Slack. I decreased the overhead of parsing of BigInt.
I found that the addition of large integers is slower with KMath BigInt than with JVM BigInteger: I added benchmarks for that.
The was a mistake in the added code It was discussed in Slack. It was fixed in the further commits to the repo.