Comments (5)
Probably. hanging it to c === zero(c)
and c === one(c)
fixes it?
from approxfunbase.jl.
That would fail for BigFloat
because they're mutable but not treated as such.
Is there a good reason for the cases? Seems there are three different type outcomes of this method. Does ConstantTimesOperator
have a big overhead compared with ZeroOperator
?
from approxfunbase.jl.
Poor design? Premature optimisation? Feel free to delete it and see if tests still pass
from approxfunbase.jl.
The very next line is suspect too: any reason why *(A::Operator,c::Number) = A*(c*one(domainspace(A)))
isn't *(A::Operator,c::Number) = c*A
?
from approxfunbase.jl.
Because it’s applying the operator to a constant function, which returns a function. If/when it’s revamped, operators will be functions of functions, applying an operator will be A(f)
instead of A*f
and composing operators will be A\circ B
instead of A*B
.
This will in practice be lowered to quasi arrays which have well-defined matrix operations
from approxfunbase.jl.
Related Issues (19)
- Multiplications of derivatives is too permissible, even if spaces aren't compatible HOT 2
- Why is `Fun` mutable? HOT 2
- Multiplication of 2D functions not working properly HOT 1
- Evaluation operator does not work with ArraySpaces HOT 1
- 3+ dim calculus operator do not work and Syntax proposal HOT 1
- What would be the best way to implement support differentiation of a SubSpace HOT 1
- Seem like the Bug in the code ApproxFunBase/src/Caching/almostbanded.jl line106 HOT 3
- iszero type piracy causes a lot of invalidations HOT 21
- ApproxFun+IntervalArithmetic: make ODE solving really rigorous
- Are ProductFun points broken?
- TagBot trigger issue HOT 319
- Subtracting two simple, seemingly compatible functions (f - g) results in wrong answer upon evaluation (typeof(f) = Chebyshev ⨁ CosSpace ⨁ SinSpace and typeof(g) = Chebyshev)
- Error in iszero in Julia v1.10 HOT 1
- Why does ZeroOperator have a rangespace?
- Predicting number of coefficients in output of operator HOT 3
- Why won't `AbstractMatrix(::SubOperator)` return a `BandedBlockBandedMatrix`? HOT 10
- Why are coefficients in tensor product bases represented the way they are? HOT 1
- Accidental piracy of Base.real
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 approxfunbase.jl.