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

Make MArray stay mutable #536

Merged
merged 2 commits into from
Nov 10, 2018
Merged

Conversation

YingboMa
Copy link
Contributor

@YingboMa YingboMa commented Nov 1, 2018

Ref: #327

@coveralls
Copy link

coveralls commented Nov 1, 2018

Coverage Status

Coverage increased (+0.01%) to 66.125% when pulling eb4ec59 on YingboMa:myb/MArray into db98a1a on JuliaArrays:master.

@@ -78,8 +78,8 @@ similar_type(::Type{A},::Type{T},s::Size{S}) where {A<:AbstractArray,T,S} = defa
default_similar_type(::Type{T}, s::Size{S}, ::Type{Val{D}}) where {T,S,D} = SArray{Tuple{S...},T,D,prod(s)}


# should mutable things stay mutable?
#similar_type{SA<:Union{MVector,MMatrix,MArray},T,S}(::Type{SA},::Type{T},s::Size{S}) = mutable_similar_type(T,s,length_val(s))
# should mutable things stay mutable? yes
Copy link
Member

Choose a reason for hiding this comment

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

maybe just delete the comment :)

Copy link
Member

Choose a reason for hiding this comment

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

I enjoy this.

@codecov-io
Copy link

codecov-io commented Nov 2, 2018

Codecov Report

Merging #536 into master will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #536      +/-   ##
==========================================
+ Coverage   66.11%   66.12%   +0.01%     
==========================================
  Files          38       38              
  Lines        2892     2893       +1     
==========================================
+ Hits         1912     1913       +1     
  Misses        980      980
Impacted Files Coverage Δ
src/abstractarray.jl 88.88% <100%> (+0.25%) ⬆️

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 db98a1a...eb4ec59. Read the comment docs.

@andyferris
Copy link
Member

So... are we going ahead with this?

@ChrisRackauckas
Copy link
Member

Yes :).

@YingboMa
Copy link
Contributor Author

YingboMa commented Nov 9, 2018

Yes yes yes 😆

@ChrisRackauckas ChrisRackauckas merged commit a46d711 into JuliaArrays:master Nov 10, 2018
@YingboMa YingboMa deleted the myb/MArray branch November 10, 2018 02:45
@andyferris
Copy link
Member

:)

And - welcome, Chris!

@andyferris
Copy link
Member

This will need a breaking release... we're probably not v1.0 yet though.

@ChrisRackauckas
Copy link
Member

Yup, but minor releases when pre-1.0 are allowed to be breaking in semvar?

@andyferris
Copy link
Member

Yes!

@ChrisRackauckas
Copy link
Member

Oh I read what you meant wrong. I thought you meant this would have to wait until StaticArrays v1.0.

@andyferris
Copy link
Member

Right. That was actually a clumsy attempt to get you to use your new powers and create a release for me ;)

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.

5 participants