PaddedViews.jl
PaddedViews.jl copied to clipboard
Add virtual padding to the edges of an array
Bumps [julia-actions/setup-julia](https://github.com/julia-actions/setup-julia) from 1 to 2. Release notes Sourced from julia-actions/setup-julia's releases. v2.0.0 - Update to Node20 What's Changed update to node20 by @ranocha in julia-actions/setup-julia#209 Note the rationale for...
Why is it not possible to provide a `PaddedView` for a `Vector`? ```julia a = collect(1:10) PaddedView(1,a,(10,2),(1,2)) # doesn't work PaddedView(1,hcat(a,a),(10,3),(1,2)) # works ```
Running `PaddedView(missing, 1:7, (-2:7,))` in the REPL outputs this: ``` 10-element PaddedView(missing, ::UnitRange{Int64}, (-2:7,)) with eltype Union{Missing, Int64} with indices -2:7: missing missing missing 1 2 3 4 5 6...
This doesn't seem to support the classic padding styles by repeating values already inside the array. Is support planned, or not in the scope of this package? Am I missing...
I find I can ```julia using FFTW, PaddedViews a = reshape(1:9, 3, 3) x = PaddedView(-1, a, (4, 5)) fft(x) ``` and get complex float array of the right size....
Relates to issue #31
For my own code, I've defined: ```julia # TODO arrr type piracy Base.any(p::PaddedViews.PaddedView) = p.fillvalue || any(parent(p)) Base.all(p::PaddedViews.PaddedView) = p.fillvalue && all(parent(p)) ``` I was about to make a PR...
It seems now we don't have support for `A_mul_B!(c, fft_plan, a)` where a is a padded_view. It would be really good to have this feature so that one can avoid...
I have a matrix that I want to fill with 0 values using PaddedViews.jl: `f2 = x -> sum(PaddedView(eltype(x)(0.0), x, (5, 5)))` But when using zygote to calculate the gradient:...
This PR was suggested by @nsajko in JuliaLang/julia#54825. Currently Julia compares ranges only by comparing their values, not their indices, although they should also be taken into account for `AbstractVector`....