Skip to content

Package should be O(n) not O(n^2) #130

@dlfivefifty

Description

@dlfivefifty
julia> n = 100; P = SemiclassicalJacobi(2, 1/2, 0, 1/2); @time P[0.1,n]
  0.043851 seconds (225.48 k allocations: 11.675 MiB)
-1.9278461993824771

julia> n = 200; P = SemiclassicalJacobi(2, 1/2, 0, 1/2); @time P[0.1,n]
  0.173099 seconds (771.69 k allocations: 50.952 MiB, 11.95% gc time)
-0.42808375446709973

julia> n = 400; P = SemiclassicalJacobi(2, 1/2, 0, 1/2); @time P[0.1,n]
  0.641172 seconds (2.83 M allocations: 273.142 MiB, 6.42% gc time)
0.6259343524965616

julia> n = 800; P = SemiclassicalJacobi(2, 1/2, 0, 1/2); @time P[0.1,n]
  2.965002 seconds (11.61 M allocations: 1.691 GiB, 9.94% gc time)
0.9986605877063376

Looking at the profile there's a lot of time in lanczos! but this should just be using Cholesky!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions