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

Extend Base.setindex #64

Closed
wants to merge 1 commit into from

Conversation

perrutquist
Copy link

@perrutquist perrutquist commented Feb 17, 2020

This PR imports Base.setindex, so that this function is extended, instead of creating a new funciton SIMD.setindex.

This makes it easier to use SIMD.jl together with StaticArrays.jl (which also exports Base.setindex).

(This PR also fixes a bug in the argument order when the index is not an Int.)

Edit: I just noticed #63, which also fixes the above. Feel free to close this PR if you are planning to merge that one.

Import Base.setindex, so that this function is extended, instead of
creating a new funciton SIMD.setindex.

This makes it possible to use SIMD.jl together with e.g. StaticArrays.jl
without having to qualify the setindex function on each use.

This commit also fixes a bug in the argument order when the index is
not an Int.
@eschnett
Copy link
Owner

eschnett commented Feb 17, 2020

Codecov Report

Merging #64 into master will not change coverage by %.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #64   +/-   ##
=======================================
  Coverage   86.02%   86.02%           
=======================================
  Files           1        1           
  Lines         866      866           
=======================================
  Hits          745      745           
  Misses        121      121           

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 5a9fc0a...c061027. Read the comment docs.

1 similar comment
@codecov-io
Copy link

codecov-io commented Feb 17, 2020

Codecov Report

Merging #64 into master will not change coverage by %.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #64   +/-   ##
=======================================
  Coverage   86.02%   86.02%           
=======================================
  Files           1        1           
  Lines         866      866           
=======================================
  Hits          745      745           
  Misses        121      121           

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 5a9fc0a...c061027. Read the comment docs.

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.

4 participants