Skip to content

Commit 016f4ef

Browse files
committed
Update Cone.jl
1 parent 22d2395 commit 016f4ef

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Cone/Cone.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ blocklengths(d::DuffyCone) = blocklengths(rectspace(d))
249249

250250
function points(d::Cone,n)
251251
N = round(Int,1/3*(-1 + 1/(-1 + 27n + 3sqrt(3)sqrt(n*(-2 + 27n)))^(1/3) + (-1 + 27n + 3sqrt(3)sqrt(n*(-2 + 27n)))^(1/3)),RoundUp)
252+
M = N(N+1)/2
252253
pts = Array{float(eltype(d))}(undef,0)
253254
a,b = rectspace(DuffyCone()).spaces
254255
for y in points(b,M), x in points(a,N)

0 commit comments

Comments
 (0)