Git Product home page Git Product logo

Comments (7)

goretkin avatar goretkin commented on June 21, 2024

weird. y = Fun(x->[0.0, 1.0] ) doesn't cause the same error

from approxfun.jl.

goretkin avatar goretkin commented on June 21, 2024

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.

dlfivefifty avatar dlfivefifty commented on June 21, 2024

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.

goretkin avatar goretkin commented on June 21, 2024

Good to know that!

from approxfun.jl.

goretkin avatar goretkin commented on June 21, 2024

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.

goretkin avatar goretkin commented on June 21, 2024

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.

dlfivefifty avatar dlfivefifty commented on June 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.