Skip to content

Commit bcaf69d

Browse files
committed
no type conversion, add small test for positive weights
1 parent a35d02a commit bcaf69d

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/matchings.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function FrankWolfe.compute_extreme_point(
3333
) where {M}
3434
N = length(direction)
3535
if v === nothing
36-
v = spzeros(N)
36+
v = spzeros(Int, N)
3737
else
3838
v .= 0
3939
end

test/runtests.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ end
6161
end
6262
end
6363
@test v_sol == v
64+
v2 = FrankWolfe.compute_extreme_point(lmo, ones(M))
65+
@test norm(v2) == 0
6466
end
6567

6668

0 commit comments

Comments
 (0)