Comments (2)
It seems to be due to the following being incorrectly implemented:
# workaround for https://github.com/SciML/RecursiveArrayTools.jl/issues/49
function Base._unsafe_getindex(::IndexStyle, A::ArrayPartition,
I::Vararg{Union{Real, AbstractArray}, N}) where {N}
# This is specifically not inlined to prevent excessive allocations in type unstable code
shape = Base.index_shape(I...)
dest = similar(A.x[1], shape)
Base._unsafe_getindex!(dest, A, I...) # usually a generated function, don't allow it to impact inference result
return dest
end
@ChrisRackauckas I don’t suppose you remember this workaround from 2020?
from recursivearraytools.jl.
I do not. Was this fixed? I think I recall a PR around this but now I can't find it.
from recursivearraytools.jl.
Related Issues (20)
- `reshape` with `Colon` fails on `VectorOfArray` HOT 5
- Broadcasting with Float ArrayPartition HOT 2
- Loosen type constraints for ArrayPartition copy? HOT 2
- Incorrect `iszero` behavior HOT 2
- Improve docstrings
- Prepending/appending a list of ArrayPartition HOT 1
- similar() of ArrayPartition involving primitives fails HOT 3
- `@deprecate` usage invalid on Julia <=1.7 HOT 8
- Implement `pointer` and `resize!` for `VectorOfArray`
- v3.2.0 precompiles fail with "Method definition overwritten" HOT 5
- Type instability when iterating nested recursive arrays HOT 7
- Fix method ambiguities.
- views with `Vector{Bool}` indices are broken HOT 1
- 3.4.1 -> 3.4.2 breaking HOT 5
- Documentation does not reflect deprecation of linear indexing HOT 2
- Add `eachrow`/`eachcol`/`eachslice` for `AbstractVectorOfArray`
- `getindex` with slice breaks on size 1 arrays
- ArrayPartition Incompatible for Native Implicit SDE Solvers HOT 4
- Getting the `sol` of an observed variable (using SymbolicIndexingInterface) of a trivial ODE (with no reduced states) fails HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from recursivearraytools.jl.