Skip to content

Commit 966c732

Browse files
get the bounds right for rectangular transforms
1 parent ddee40c commit 966c732

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/SphericalHarmonics/slowplan.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ function Base.A_mul_B!(P::RotationPlan, A::AbstractMatrix)
106106
@stepthreads for m = M÷2:-1:2
107107
@inbounds for j = m:-2:2
108108
for l = N-j:-1:1
109-
s = snm[l+(j-2)*(2*N+3-j)÷2]
110-
c = cnm[l+(j-2)*(2*N+3-j)÷2]
109+
s = snm[l+(j-2)*(M+2-j)÷2]
110+
c = cnm[l+(j-2)*(M+2-j)÷2]
111111
a1 = A[l+N*(2*m-1)]
112112
a2 = A[l+2+N*(2*m-1)]
113113
a3 = A[l+N*(2*m)]
@@ -129,8 +129,8 @@ function Base.At_mul_B!(P::RotationPlan, A::AbstractMatrix)
129129
@stepthreads for m = M÷2:-1:2
130130
@inbounds for j = reverse(m:-2:2)
131131
for l = 1:N-j
132-
s = snm[l+(j-2)*(2*N+3-j)÷2]
133-
c = cnm[l+(j-2)*(2*N+3-j)÷2]
132+
s = snm[l+(j-2)*(M+2-j)÷2]
133+
c = cnm[l+(j-2)*(M+2-j)÷2]
134134
a1 = A[l+N*(2*m-1)]
135135
a2 = A[l+2+N*(2*m-1)]
136136
a3 = A[l+N*(2*m)]

test/sphericalharmonics/thinplantests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ using Compat.Test
44
import FastTransforms: normalizecolumns!, maxcolnorm
55

66
@testset "Thin plan" begin
7-
m, n = VERSION < v"0.6.0-" ? (362, 300) : (724, 600)
7+
m, n = 724, 600
88

99
A = sphrandn(Float64, m, n);
1010
normalizecolumns!(A);

0 commit comments

Comments
 (0)