Skip to content

Conversation

@MatthewCochrane
Copy link
Contributor

Resolves #221 .

Checklist

Please ensure the following tasks are completed before submitting this pull request.

  • Read, understood, and followed the contributing guidelines, including the relevant style guides.
  • Read and understand the Code of Conduct.
  • Read and understood the licensing terms.
  • Searched for existing issues and pull requests before submitting this pull request.
  • Filed an issue (or an issue already existed) prior to submitting this pull request.
  • Rebased onto latest develop.
  • Submitted against develop branch.

Description

What is the purpose of this pull request?

This pull request:

  • Add support for computing the reciprocal square root (i.e., 1/sqrt(x))

Related Issues

Does this pull request have any related issues?

This pull request:

Questions

Any questions for reviewers of this pull request?

I haven't added any benchmarks other than the js benchmark. When I ran make BENCHMARKS_FILTER=.*/math/base/special/sqrt/.* benchmark (for sqrt which has other benchmarks than the javascript ones in benchmark.js) it would only run the javascipt benchmarks only.
Is there any need for other language benchmarks at this point if they're not automatically run?

Other

Any other information relevant to this pull request? This may include screenshots, references, and/or implementation notes.

As I discussed on gitter briefly, I haven't made the markdown equations. When I tried to run markdown-equations I got an error stating there was an unbound variable.

This is my first PR for this repo and the style guides and procedure are pretty involved. Hopefully I've followed everything correctly but I'll be happy for you to point out any mistakes I've made.

Thanks a lot,
Matt


@stdlib-js/reviewers

Copy link
Member

@kgryte kgryte left a comment

Choose a reason for hiding this comment

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

@MatthewCochrane This is awesome! Really well done. Some very minor nitpicks. Once resolved, this should be ready for merge! Thanks for working on this!

@kgryte kgryte added Feature Issue or pull request for adding a new feature. Math Issue or pull request specific to math functionality. labels Feb 10, 2019
kgryte and others added 2 commits February 11, 2019 14:48
Co-Authored-By: MatthewCochrane <mattisback@gmail.com>
@MatthewCochrane
Copy link
Contributor Author

Thanks @kgryte. Appreciate you taking the time to review it. Good catch on a few of those small mistakes with sqrt & rsqrt.

Copy link
Member

@kgryte kgryte left a comment

Choose a reason for hiding this comment

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

@MatthewCochrane I missed a couple of lint errors in my initial review. Sorry about that. Once the example code is fixed, then I'll merge this PR! Thanks again for working on this!

Co-Authored-By: MatthewCochrane <mattisback@gmail.com>
@kgryte kgryte changed the title Feature/rsqrt Add support for computing the reciprocal square root Feb 12, 2019
@kgryte kgryte merged commit 810c489 into stdlib-js:develop Feb 12, 2019
@kgryte
Copy link
Member

kgryte commented Feb 12, 2019

@MatthewCochrane Merged! Thanks again for working on this!

@MatthewCochrane
Copy link
Contributor Author

Not a problem @kgryte!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature Issue or pull request for adding a new feature. Math Issue or pull request specific to math functionality.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RFC: Add support for computing the reciprocal square root (rsqrt)

2 participants