Skip to content

guanyilun/Wignerd.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wignerd.jl

https://img.shields.io/badge/docs-stable-blue.svg https://img.shields.io/badge/docs-dev-blue.svg https://github.com/guanyilun/Wignerd.jl/actions/workflows/CI.yml/badge.svg?branch=master https://codecov.io/gh/guanyilun/Wignerd.jl/branch/master/graph/badge.svg

Re-implementation of wignerd.c library in julia.

As of now, cf_from_cl is around 2.5 times faster than the version in wignerd.c, and cl_from_cf is around 4 times faster than the version in wignerd.c.

Example

using Wignerd

lmax = 3000
npoints = 4501

l = collect(0:lmax)
cl = @. l*(l+1)  # dummy

glq = Wignerd.glquad(npoints)

# calculate cf = \sum_l d^l_{22}(\beta) cl(l)
cf = cf_from_cl(glq, 2, 2, cl)

# calculate cl = \int_{-1}^1 d\cos\beta cf(\beta) d_{13}^l(\beta)
cl = cl_from_cf(glq, 1, 3, lmax, cf)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages