Skip to content

ensure type in array convert #237

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

Merged
merged 1 commit into from
Mar 29, 2023

Conversation

jishnub
Copy link
Member

@jishnub jishnub commented Mar 29, 2023

The main change is to disallow Array(::Fill) from returning anything other than an Array. This would mean that the following won't work anymore:

julia> f = Fill(2, ∞)
ℵ₀-element Fill{Int64, 1, Tuple{InfiniteArrays.OneToInf{Int64}}} with indices OneToInf(), with entries equal to 2

julia> Array(f)
ℵ₀-element LazyArrays.CachedArray{Int64, 1, Vector{Int64}, Fill{Int64, 1, Tuple{InfiniteArrays.OneToInf{Int64}}}} with indices OneToInf():
 2
 2
 2
 2
 2
 2
 2
 2
 

Also, This PR adds some docstrings.

@codecov
Copy link

codecov bot commented Mar 29, 2023

Codecov Report

❗ No coverage uploaded for pull request base (release-1.0@5be668f). Click here to learn what that means.
The diff coverage is n/a.

@@              Coverage Diff               @@
##             release-1.0     #237   +/-   ##
==============================================
  Coverage               ?   99.23%           
==============================================
  Files                  ?        5           
  Lines                  ?      657           
  Branches               ?        0           
==============================================
  Hits                   ?      652           
  Misses                 ?        5           
  Partials               ?        0           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@dlfivefifty dlfivefifty merged commit 3e706b4 into JuliaArrays:release-1.0 Mar 29, 2023
dlfivefifty added a commit that referenced this pull request Mar 30, 2023
* StepRangeLen to support 0 step size in cumsum #226 (#230)

* use StepRangeLen to support 0 step size

* v0.13.11

* allow special casing on ∞ length

* Restore ± special cases

* Update runtests.jl

* fix more tests

* Update runtests.jl

* Structured Broadcasting (#228)

* Structured Broadcasting

* add jishnubs tests

* Update runtests.jl

* Fix #97 by adding promote_rules (#234)

* Move OneElement from Zygote and overload setindex (#161) (#235)

* Add Zeros(T, n...) and Ones(T, n...) constructors (#94( (#233)

* Add Zeros(T, n...) and Ones(T, n...) constructors (#94(

* increase coverage

* Update README.md

* Move over OneElement from Zygote

* Add tests

* Update oneelement.jl

* add tests

* Update runtests.jl

* add docs

* ensure type in array convert (#237)

* increase coverage

* add convert tests

* v1.0

* `_fill_dot` support general vectors (#229)

* Update fillalgebra.jl

* promote_op

* add breaking test

* add breaking test

* fix

* accept round-off errors

* Update test/runtests.jl

Co-authored-by: Sheehan Olver <solver@mac.com>

* update

* support inf and nan

* fix 1.6

* Update fillalgebra.jl

* Update fillalgebra.jl

* trying to fix Julia 1.6

* comments

* Update runtests.jl

* add @inferred

---------

Co-authored-by: Sheehan Olver <solver@mac.com>

---------

Co-authored-by: Jishnu Bhattacharya <jishnub.github@gmail.com>
Co-authored-by: Tianyi Pu <44583944+putianyi889@users.noreply.github.com>
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.

2 participants