Comments (4)
This has been implemented in approxfun-support, foolishly, since it's just going to make things harder... but it's definitely the right approach I think: I can't see any reason for UnionDomain
to benefit from having a Tuple
or Vector
of domains over a Set
.
from domainsets.jl.
Indeed, foolish: I reverted iit in approxfun-support, since ApproxFun's PiecewiseSpace
needs to have an ordering in order to interpret the coefficients, and in places in the code it assumes this ordering is consistent with the ordering of UnionDomain
.
I might try making this change again as it still feels "right" for it to be a Set. ApproxFun can work around this by calling domain.(s.spaces)
instead of domain(s).domains
.
from domainsets.jl.
JuliaLang/julia#23746 also makes working with Set
s annoying, however
from domainsets.jl.
Currently, the type of the list of domains is a parameter (DD), so it can be chosen freely. The idea was to allow both tuples and vectors: a tuple would be fully typed, making the union domain fast. The vector could allow for a long list of subdomains, but it would be fast only if they all had the same type. Yet, I don't think we ever relied on a UnionDomain
being fast.
Set
sounds like it would make the code shorter and clearer, which is good. I think we currently also have some code that enumerates over the subdomains, but I'd be surprised if the ordering matters anywhere - it shouldn't and if it does we can fix it.
from domainsets.jl.
Related Issues (20)
- Support hyperfaces
- Write documentation HOT 5
- `UnitSimplex` HOT 11
- Incorrect statement in README? HOT 14
- Support `iterate` for finite-dimensional sets HOT 2
- rand() HOT 5
- tests fail in 1.8
- boundingbox does not work for 1-D Balls HOT 1
- boundingbox does not work for Balls with BigFloat StaticVectors HOT 1
- clamp() and clamp!() HOT 3
- Support `getindex` of `TupleProductDomain` and maybe add a `NamedTupleProductDomain`? HOT 2
- Domain as an interface HOT 3
- Define intersect between a Point and a Domain HOT 2
- use atol and rtol in approx_in HOT 1
- are there conflicting versions of isapprox in IntervalSets? HOT 14
- More Spaces HOT 18
- Can StaticArrays dependency be made optional? HOT 5
- Factor out Map's
- ℤ contains non-integers HOT 6
- export factors
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 domainsets.jl.