Skip to content

Commit 64d7c80

Browse files
fix triangular harmonics chebyshev normalization
1 parent 67d8d22 commit 64d7c80

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/TriangularHarmonics/slowplan.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ function Base.A_mul_B!(Y::Matrix, SP::SlowTriangularHarmonicPlan, X::Matrix)
104104
A_mul_B_col_J!!(Y, p, B, J)
105105
end
106106
@inbounds for J = 1:N
107-
nrm = sqrt(π/(2-δ(J-1,0)))
107+
nrm = sqrt((2-δ(J-1,0))/π)
108108
@simd for I = 1:M
109109
Y[I,J] *= nrm
110110
end
@@ -117,7 +117,7 @@ function Base.At_mul_B!(Y::Matrix, SP::SlowTriangularHarmonicPlan, X::Matrix)
117117
copy!(B, X)
118118
M, N = size(X)
119119
@inbounds for J = 1:N
120-
nrm = sqrt((2-δ(J-1,0))/π)
120+
nrm = sqrt(π/(2-δ(J-1,0)))
121121
@simd for I = 1:M
122122
B[I,J] *= nrm
123123
end

0 commit comments

Comments
 (0)