Code Monkey home page Code Monkey logo

Comments (3)

MikaelSlevinsky avatar MikaelSlevinsky commented on June 23, 2024

Moreover, the partial interface change was bad because now similar functions don't behave similarly:

julia> jac2jac(X, 0, 0, -0.5, -0.5)[:,2] == jac2jac(X[:,2], 0, 0, -0.5, -0.5)
true

julia> leg2cheb(X)[:,2] == leg2cheb(X[:,2])
false

from fasttransforms.jl.

dlfivefifty avatar dlfivefifty commented on June 23, 2024

We could change it to use lib_leg2cheb if the dimensions are very small. But when the dimensions are large the plan_leg2cheb is so slow its unusable:

julia> n = 100_000; x = randn(n); @time cheb2leg(x);
  1.184869 seconds (50.38 k allocations: 74.845 GiB, 22.38% gc time, 5.08% compilation time)

julia> n = 100_000; x = randn(n); @time (p = plan_cheb2leg(x); p*x)
 44.783364 seconds (53.23 k allocations: 3.302 MiB, 0.06% compilation time)

from fasttransforms.jl.

dlfivefifty avatar dlfivefifty commented on June 23, 2024

Maybe for now with matrices we default to libfasttransforms since we aren't going to make it to n = 100k and leave the 1D transforms as Toeplitz dot Hankel?

from fasttransforms.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.