Skip to content

Commit 12fea64

Browse files
fix typo
fix timings of leg2cheb and cheb2leg add timings for sht
1 parent 9a777a7 commit 12fea64

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
`FastTransforms.jl` allows the user to conveniently work with orthogonal polynomials with degrees well into the millions.
66

7-
This package provides a Julia wrapper for the [C library](https://github.com/MikaelSlevinsky/FastTransforms) of the same name. Additionally, all three types of nonuniform fast Fourier transforms available, as well as the Padua transform.
7+
This package provides a Julia wrapper for the [C library](https://github.com/MikaelSlevinsky/FastTransforms) of the same name. Additionally, all three types of nonuniform fast Fourier transforms are available, as well as the Padua transform.
88

99
## Installation
1010

@@ -54,13 +54,13 @@ julia> @time leg2cheb(c);
5454
0.433938 seconds (9 allocations: 64.641 KiB)
5555

5656
julia> @time p1*c;
57-
0.007927 seconds (79 allocations: 68.563 KiB)
57+
0.005713 seconds (8 allocations: 64.594 KiB)
5858

5959
julia> @time cheb2leg(c);
6060
0.423865 seconds (9 allocations: 64.641 KiB)
6161

6262
julia> @time p2*c;
63-
0.009164 seconds (89 allocations: 69.672 KiB)
63+
0.005829 seconds (8 allocations: 64.594 KiB)
6464

6565
```
6666

@@ -90,9 +90,11 @@ julia> PS = plan_sph_synthesis(F);
9090

9191
julia> PA = plan_sph_analysis(F);
9292

93-
julia> G = PS*(P*F);
93+
julia> @time G = PS*(P*F);
94+
0.090767 seconds (12 allocations: 31.985 MiB, 1.46% gc time)
9495

95-
julia> H = P\(PA*G);
96+
julia> @time H = P\(PA*G);
97+
0.092726 seconds (12 allocations: 31.985 MiB, 1.63% gc time)
9698

9799
julia> norm(F-H)/norm(F)
98100
2.1541073345177038e-15

0 commit comments

Comments
 (0)