Comments (4)
There is no linear algebra defined on ArrayPartition
. We should fix that. Thanks for reporting!
from recursivearraytools.jl.
These examples a lot more are all fixed. Go ham.
from recursivearraytools.jl.
Adding another MWE to this discussion showing the current incompatibility of ArrayPartitions with NLsolve:
using NLsolve
using RecursiveArrayTools
function mymodel(F, vars)
x = vars.x[1]
F.x[1][1] = (x[1]+3)*(x[2]^3-7)+18
F.x[1][2] = sin(x[2]*exp(x[1])-1)
y=vars.x[2]
F.x[2][1] = (y[1]+3)*(y[2]^3-7)+18
F.x[2][2] = sin(y[2]*exp(y[1])-1)
end
# To show that the function works
F = ArrayPartition([0.0 0.0],[0.0, 0.0])
u0= ArrayPartition([0.1; 1.2], [0.1; 1.2])
result = mymodel(F, u0)
# To show the NLsolve error that results with ArrayPartitions:
nlsolve(f!, ArrayPartition([0.1; 1.2], [0.1; 1.2]))
from recursivearraytools.jl.
@YingboMa what do you think about just defining a slow fallback for now? I don't think it would actually be a major performance hit since the factorization is just a normal array factorization, we just need to define ldiv!
to convert the ArrayPartition to an Array and then do the quick step?
from recursivearraytools.jl.
Related Issues (20)
- `reshape` with `Colon` fails on `VectorOfArray` HOT 5
- ArrayPartition([1,1],[1])[1:3,1] segfaults. HOT 2
- 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.