Comments (7)
weird. y = Fun(x->[0.0, 1.0] )
doesn't cause the same error
from approxfun.jl.
I understand the reason behind using []
indexing on Funs, to emphasize that these are infinite dimensional vectors, but vectors nonetheless. I think, though, it might be interesting to consider using ()
to index the Fun variable, and []
to access elements of multi-dimensional valued Funs (like vector valued Funs, not multivariate Funs)
from approxfun.jl.
Yes I agree. The real reason for overriding [] is it wasn’t impossible to override() in 0.3. But it should be in 0.4.
In the meantime, you vec(f) will convert it vector-valued Fun to a vector of scalar-valued funs, so you can do e.g. vec(f)[1][.1]
Sheehan
On 2 Dec 2014, at 10:48 am, Gustavo Goretkin [email protected] wrote:
I understand the reason behind using [] indexing on Funs, to emphasize that these are infinite dimensional vectors, but vectors nonetheless. I think, though, it might be interesting to consider using () to index the Fun variable, and [] to access elements of multi-dimensional valued Funs (like vector valued Funs, not multivariate Funs)
—
Reply to this email directly or view it on GitHub #51 (comment).
from approxfun.jl.
Good to know that!
from approxfun.jl.
Here is a different error when trying to construct a vector-valued fun
julia> Fun(x->Float64[0.0], 50)
ERROR: `plan_r2r` has no method matching plan_r2r(::Array{Array{Float64,1},1}, ::Int32, ::UnitRange{Int64}, ::Uint32, ::Float64)
in chebyshevtransform at /Users/goretkin/.julia/v0.3/ApproxFun/src/LinearAlgebra/chebyshevtransform.jl:27
in transform at /Users/goretkin/.julia/v0.3/ApproxFun/src/Spaces/Ultraspherical/ChebyshevSpace.jl:22
in Fun at /Users/goretkin/.julia/v0.3/ApproxFun/src/Fun/constructors.jl:10
in Fun at /Users/goretkin/.julia/v0.3/ApproxFun/src/Fun/constructors.jl:26
from approxfun.jl.
Sorry for the rapid-fire. Is there a way to convert from an Array of scalar-valued Funs to a Vector Fun? the opposite of vec()
from approxfun.jl.
devec()
Sent from my iPhone
On 2 Dec 2014, at 11:37 am, Gustavo Goretkin [email protected] wrote:
Sorry for the rapid-fire. Is there a way to convert from an Array of scalar-valued Funs to a Vector Fun? the opposite of vec()
—
Reply to this email directly or view it on GitHub.
from approxfun.jl.
Related Issues (20)
- Cumsum fails when used on the output of sign()
- Rounding errors lead to empty domain error when using abs
- Changing operand order causes incorrect calculation of the infinity norm
- Creating a Fun of tanh returns the zero Fun HOT 2
- Division by Fun with root fails: `setdomain(::PiecewiseSpace,::ClosedInterval)` not implement
- L2 operator
- typos HOT 1
- Array concatenations produce unexpected results HOT 1
- Multivariate function roots HOT 12
- Cannot use `Integral` in Newton solver HOT 5
- Wrong tensor product between Fourier and Chebyshev HOT 1
- Are we able to solve this simple sturm liouville problem taken from chebfun examples? HOT 3
- No DefiniteIntegral() documentation
- What is the difference between adjoint and a Derivative (newton solver)?
- Simple error following the documentation HOT 2
- Multiplying CosSpace() / SinSpace() of different period leads error? HOT 6
- OutOfMemoryError() when approximating a 3D function
- Incorrect results for sin and cosine functions HOT 2
- Implementing a convolution operator HOT 4
- Cannot apply multiplication operator on Fourier() space
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 approxfun.jl.