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

Fixed sprand for dimensions of unusual integer type #30516

Merged
merged 4 commits into from
Dec 27, 2018

Conversation

raghav9-97
Copy link
Contributor

Fixes #30502.

@abraunst
Copy link
Contributor

You should also fix sprand(m, n, p, rfn) (the function right below); otherwise sprand(UInt8(16), UInt8(16), 1.0, ones) has the same problem.

@raghav9-97
Copy link
Contributor Author

Please re review this PR.

@ViralBShah
Copy link
Member

ViralBShah commented Dec 26, 2018

@raghav9-97 PRs do get reviewed as you submit them (unless you put WIP in the title). In general, you want to bump it up for review if it has not received any attention in about 3-4 days. Hope that helps.

Of course, this being holidays, it is likely to take longer.

@ViralBShah ViralBShah added the sparse Sparse arrays label Dec 26, 2018
@test sprand(UInt8(16), UInt8(16), 1.0) != spzeros(UInt8(16), UInt8(16))
@test sprand(Int8(16), Int8(16), 1.0) != spzeros(Int8(16), Int8(16))
@test sprand(UInt8(16), UInt8(16), 1.0, ones) != spzeros(UInt8(16), UInt8(16))
end
Copy link
Member

@ViralBShah ViralBShah Dec 26, 2018

Choose a reason for hiding this comment

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

Can we have a test that checks correctness of the intended answer with ==? Also, only one test for each of the changed functions would be enough here.

@ViralBShah ViralBShah changed the title Fixed sprand for integer type Fixed sprand for dimensions of unusual integer type Dec 26, 2018
@raghav9-97
Copy link
Contributor Author

Is this PR now ready to be merged?

@ViralBShah ViralBShah merged commit 2ab1405 into JuliaLang:master Dec 27, 2018
@raghav9-97 raghav9-97 deleted the sprand branch December 27, 2018 07:12
KristofferC pushed a commit that referenced this pull request Jan 11, 2019
@KristofferC KristofferC mentioned this pull request Jan 11, 2019
53 tasks
@StefanKarpinski StefanKarpinski added triage This should be discussed on a triage call backport 1.1 and removed backport 1.0 triage This should be discussed on a triage call labels Jan 31, 2019
@StefanKarpinski StefanKarpinski added backport 1.0 triage This should be discussed on a triage call and removed triage This should be discussed on a triage call labels Jan 31, 2019
@JeffBezanson JeffBezanson removed backport 1.0 triage This should be discussed on a triage call labels Jan 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sparse Sparse arrays
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants