Skip to content

Commit

Permalink
another fix
Browse files Browse the repository at this point in the history
  • Loading branch information
willow-ahrens committed Nov 17, 2023
1 parent 06b933d commit 4f0bd64
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/tensors/levels/sparsehashlevels.jl
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ function thaw_level!(lvl::VirtualSparseHashLevel, ctx::AbstractCompiler, pos)
$(lvl.ptr)[1] = 1
$(lvl.qos_fill) = length($(lvl.tbl))
end)
lvl.lvl = thaw_level!(lvl.lvl, ctx, call(*, pos, lvl.shape))
lvl.lvl = thaw_level!(lvl.lvl, ctx, value(lvl.qos_fill, Tp))
return lvl
end

Expand Down
6 changes: 3 additions & 3 deletions test/test_issues.jl
Original file line number Diff line number Diff line change
Expand Up @@ -473,10 +473,10 @@ using CIndices

#https://github.com/willow-ahrens/Finch.jl/issues/313
let
edge_matrix = Fiber!(SparseList(SparseList(Element(0.0), 254156), 254156))
edge_values = fsprand((254156, 254156), .0001)
edge_matrix = Fiber!(SparseList(SparseList(Element(0.0), 254), 254))
edge_values = fsprand((254, 254), .001)
@finch (edge_matrix .= 0; for j=_, i=_; edge_matrix[i,j] = edge_values[i,j]; end)
output_matrix = Fiber!(SparseHash{1}(SparseHash{1}(Element(0.0), (254156,)), (254156,)))
output_matrix = Fiber!(SparseHash{1}(SparseHash{1}(Element(0.0), (254,)), (254,)))
@finch (for v_4=_, v_3=_, v_2=_, v_5=_; output_matrix[v_2,v_5] += edge_matrix[v_5, v_4]*edge_matrix[v_2, v_3]*edge_matrix[v_3, v_4]; end)

a_matrix = [1 0; 0 1]
Expand Down

0 comments on commit 4f0bd64

Please sign in to comment.