Skip to content

Commit

Permalink
Regenerate test output
Browse files Browse the repository at this point in the history
  • Loading branch information
willow-bot committed Dec 28, 2024
1 parent 0a2a665 commit 97065a1
Show file tree
Hide file tree
Showing 18 changed files with 126 additions and 226 deletions.
12 changes: 6 additions & 6 deletions test/reference32/constructors/format_SparseBand.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Tensor(SparseBand(Element(0))) constructors:
initialized tensor: Tensor(SparseBand{Int32}(Element{0.0, Float64, Int32}([2.0, 2.0, 0.0, 3.0]), 6, [1, 2], [5], [1, 5]))
initialized tensor: Tensor(SparseBand{Int16}(Element{0.0, Float64, Int32}([2.0, 2.0, 0.0, 3.0]), 6, [1, 2], Int16[5], [1, 5]))
sized tensor: Tensor(SparseBand{Int32}(Element{0.0, Float64, Int32}(Float64[]), 7, [1], Int32[], Int32[]))
sized tensor: Tensor(SparseBand{Int16}(Element{0.0, Float64, Int32}(Float64[]), 7, [1], Int16[], Int32[]))
empty tensor: Tensor(SparseBand{Int32}(Element{0.0, Float64, Int32}(Float64[]), 0, [1], Int32[], Int32[]))
empty tensor: Tensor(SparseBand{Int16}(Element{0.0, Float64, Int32}(Float64[]), 0, [1], Int16[], Int32[]))
initialized tensor: Tensor(SparseBand{Int32}(Element{0.0, Float64, Int32}([2.0, 2.0, 0.0, 3.0]), 6, [5], [1, 5]))
initialized tensor: Tensor(SparseBand{Int16}(Element{0.0, Float64, Int32}([2.0, 2.0, 0.0, 3.0]), 6, Int16[5], [1, 5]))
sized tensor: Tensor(SparseBand{Int32}(Element{0.0, Float64, Int32}(Float64[]), 7, Int32[], Int32[]))
sized tensor: Tensor(SparseBand{Int16}(Element{0.0, Float64, Int32}(Float64[]), 7, Int16[], Int32[]))
empty tensor: Tensor(SparseBand{Int32}(Element{0.0, Float64, Int32}(Float64[]), 0, Int32[], Int32[]))
empty tensor: Tensor(SparseBand{Int16}(Element{0.0, Float64, Int32}(Float64[]), 0, Int16[], Int32[]))

12 changes: 6 additions & 6 deletions test/reference32/constructors/format_SparseInterval.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Tensor(SparseInterval(Element(0))) constructors:
initialized tensor: Tensor(SparseInterval{Int32}(Element{0.0, Float64, Int32}([2.0]), 6, [1, 2], [3], [3]))
initialized tensor: Tensor(SparseInterval{Int16}(Element{0.0, Float64, Int32}([2.0]), 6, [1, 2], Int16[3], Int16[3]))
sized tensor: Tensor(SparseInterval{Int32}(Element{0.0, Float64, Int32}(Float64[]), 7, [1], Int32[], Int32[]))
sized tensor: Tensor(SparseInterval{Int16}(Element{0.0, Float64, Int32}(Float64[]), 7, [1], Int16[], Int16[]))
empty tensor: Tensor(SparseInterval{Int32}(Element{0.0, Float64, Int32}(Float64[]), 0, [1], Int32[], Int32[]))
empty tensor: Tensor(SparseInterval{Int16}(Element{0.0, Float64, Int32}(Float64[]), 0, [1], Int16[], Int16[]))
initialized tensor: Tensor(SparseInterval{Int32}(Element{0.0, Float64, Int32}([2.0]), 6, [3], [3]))
initialized tensor: Tensor(SparseInterval{Int16}(Element{0.0, Float64, Int32}([2.0]), 6, Int16[3], Int16[3]))
sized tensor: Tensor(SparseInterval{Int32}(Element{0.0, Float64, Int32}(Float64[]), 7, Int32[], Int32[]))
sized tensor: Tensor(SparseInterval{Int16}(Element{0.0, Float64, Int32}(Float64[]), 7, Int16[], Int16[]))
empty tensor: Tensor(SparseInterval{Int32}(Element{0.0, Float64, Int32}(Float64[]), 0, Int32[], Int32[]))
empty tensor: Tensor(SparseInterval{Int16}(Element{0.0, Float64, Int32}(Float64[]), 0, Int16[], Int16[]))

12 changes: 6 additions & 6 deletions test/reference32/constructors/format_SparsePoint.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Tensor(SparsePoint(Element(0))) constructors:
initialized tensor: Tensor(SparsePoint{Int32}(Element{0.0, Float64, Int32}([2.0]), 6, [1, 2], [3]))
initialized tensor: Tensor(SparsePoint{Int16}(Element{0.0, Float64, Int32}([2.0]), 6, [1, 2], Int16[3]))
sized tensor: Tensor(SparsePoint{Int32}(Element{0.0, Float64, Int32}(Float64[]), 7, [1], Int32[]))
sized tensor: Tensor(SparsePoint{Int16}(Element{0.0, Float64, Int32}(Float64[]), 7, [1], Int16[]))
empty tensor: Tensor(SparsePoint{Int32}(Element{0.0, Float64, Int32}(Float64[]), 0, [1], Int32[]))
empty tensor: Tensor(SparsePoint{Int16}(Element{0.0, Float64, Int32}(Float64[]), 0, [1], Int16[]))
initialized tensor: Tensor(SparsePoint{Int32}(Element{0.0, Float64, Int32}([2.0]), 6, [3]))
initialized tensor: Tensor(SparsePoint{Int16}(Element{0.0, Float64, Int32}([2.0]), 6, Int16[3]))
sized tensor: Tensor(SparsePoint{Int32}(Element{0.0, Float64, Int32}(Float64[]), 7, Int32[]))
sized tensor: Tensor(SparsePoint{Int16}(Element{0.0, Float64, Int32}(Float64[]), 7, Int16[]))
empty tensor: Tensor(SparsePoint{Int32}(Element{0.0, Float64, Int32}(Float64[]), 0, Int32[]))
empty tensor: Tensor(SparsePoint{Int16}(Element{0.0, Float64, Int32}(Float64[]), 0, Int16[]))

Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
Dense{SparseBand} representation:

5x5_falses: Bool[0 0 0 0 0; 0 0 0 0 0; 0 0 0 0 0; 0 0 0 0 0; 0 0 0 0 0]
tensor: Tensor(Dense{Int32}(SparseBand{Int32}(Element{false, Bool, Int32}(Bool[]), 5, [1, 1, 1, 1, 1, 1], Int32[], [1]), 5))
tensor: Tensor(Dense{Int32}(SparseBand{Int32}(Element{false, Bool, Int32}(Bool[]), 5, [1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1]), 5))
countstored: 0
5x5_trues: Bool[1 1 1 1 1; 1 1 1 1 1; 1 1 1 1 1; 1 1 1 1 1; 1 1 1 1 1]
tensor: Tensor(Dense{Int32}(SparseBand{Int32}(Element{false, Bool, Int32}(Bool[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]), 5, [1, 2, 3, 4, 5, 6], [5, 5, 5, 5, 5], [1, 6, 11, 16, 21, 26]), 5))
tensor: Tensor(Dense{Int32}(SparseBand{Int32}(Element{false, Bool, Int32}(Bool[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]), 5, [5, 5, 5, 5, 5], [1, 6, 11, 16, 21, 26]), 5))
countstored: 25
4x4_one_bool: Bool[0 0 0 1; 0 0 0 0; 1 0 0 0; 0 1 0 0]
tensor: Tensor(Dense{Int32}(SparseBand{Int32}(Element{false, Bool, Int32}(Bool[1, 1, 1]), 4, [1, 2, 3, 3, 4], [3, 4, 1], [1, 2, 3, 4]), 4))
tensor: Tensor(Dense{Int32}(SparseBand{Int32}(Element{false, Bool, Int32}(Bool[1, 1, 1]), 4, [3, 4, 1, 1], [1, 2, 3, 3, 4]), 4))
countstored: 3
5x4_bool_mix: Bool[0 1 0 1; 0 0 0 0; 1 1 1 1; 1 1 1 1; 0 1 0 1]
tensor: Tensor(Dense{Int32}(SparseBand{Int32}(Element{false, Bool, Int32}(Bool[1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1]), 5, [1, 2, 3, 4, 5], [4, 5, 4, 5], [1, 3, 8, 10, 15]), 4))
tensor: Tensor(Dense{Int32}(SparseBand{Int32}(Element{false, Bool, Int32}(Bool[1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1]), 5, [4, 5, 4, 5], [1, 3, 8, 10, 15]), 4))
countstored: 14
5x5_zeros: [0.0 0.0 0.0 0.0 0.0; 0.0 0.0 0.0 0.0 0.0; 0.0 0.0 0.0 0.0 0.0; 0.0 0.0 0.0 0.0 0.0; 0.0 0.0 0.0 0.0 0.0]
tensor: Tensor(Dense{Int32}(SparseBand{Int32}(Element{0.0, Float64, Int32}(Float64[]), 5, [1, 1, 1, 1, 1, 1], Int32[], [1]), 5))
tensor: Tensor(Dense{Int32}(SparseBand{Int32}(Element{0.0, Float64, Int32}(Float64[]), 5, [1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1]), 5))
countstored: 0
5x5_ones: [1.0 1.0 1.0 1.0 1.0; 1.0 1.0 1.0 1.0 1.0; 1.0 1.0 1.0 1.0 1.0; 1.0 1.0 1.0 1.0 1.0; 1.0 1.0 1.0 1.0 1.0]
tensor: Tensor(Dense{Int32}(SparseBand{Int32}(Element{0.0, Float64, Int32}([1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0]), 5, [1, 2, 3, 4, 5, 6], [5, 5, 5, 5, 5], [1, 6, 11, 16, 21, 26]), 5))
tensor: Tensor(Dense{Int32}(SparseBand{Int32}(Element{0.0, Float64, Int32}([1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0]), 5, [5, 5, 5, 5, 5], [1, 6, 11, 16, 21, 26]), 5))
countstored: 25
5x5_float_mix: [0.0 1.0 2.0 2.0 3.0; 0.0 0.0 0.0 0.0 0.0; 1.0 1.0 2.0 0.0 0.0; 0.0 0.0 0.0 3.0 0.0; 0.0 0.0 0.0 0.0 0.0]
tensor: Tensor(Dense{Int32}(SparseBand{Int32}(Element{0.0, Float64, Int32}([1.0, 1.0, 0.0, 1.0, 2.0, 0.0, 2.0, 2.0, 0.0, 0.0, 3.0, 3.0]), 5, [1, 2, 3, 4, 5, 6], [3, 3, 3, 4, 1], [1, 2, 5, 8, 12, 13]), 5))
tensor: Tensor(Dense{Int32}(SparseBand{Int32}(Element{0.0, Float64, Int32}([1.0, 1.0, 0.0, 1.0, 2.0, 0.0, 2.0, 2.0, 0.0, 0.0, 3.0, 3.0]), 5, [3, 3, 3, 4, 1], [1, 2, 5, 8, 12, 13]), 5))
countstored: 12

24 changes: 12 additions & 12 deletions test/reference32/representation/SparseBand_representation.txt

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
SparseBand{Dense} representation:

5x5_falses: Bool[0 0 0 0 0; 0 0 0 0 0; 0 0 0 0 0; 0 0 0 0 0; 0 0 0 0 0]
tensor: Tensor(SparseBand{Int32}(Dense{Int32}(Element{false, Bool, Int32}(Bool[]), 5), 5, [1, 1], Int32[], [1]))
tensor: Tensor(SparseBand{Int32}(Dense{Int32}(Element{false, Bool, Int32}(Bool[]), 5), 5, [1], [1, 1]))
countstored: 0
5x5_trues: Bool[1 1 1 1 1; 1 1 1 1 1; 1 1 1 1 1; 1 1 1 1 1; 1 1 1 1 1]
tensor: Tensor(SparseBand{Int32}(Dense{Int32}(Element{false, Bool, Int32}(Bool[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]), 5), 5, [1, 2], [5], [1, 6]))
tensor: Tensor(SparseBand{Int32}(Dense{Int32}(Element{false, Bool, Int32}(Bool[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]), 5), 5, [5], [1, 6]))
countstored: 25
4x4_one_bool: Bool[0 0 0 1; 0 0 0 0; 1 0 0 0; 0 1 0 0]
tensor: Tensor(SparseBand{Int32}(Dense{Int32}(Element{false, Bool, Int32}(Bool[0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0]), 4), 4, [1, 2], [4], [1, 5]))
tensor: Tensor(SparseBand{Int32}(Dense{Int32}(Element{false, Bool, Int32}(Bool[0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0]), 4), 4, [4], [1, 5]))
countstored: 16
5x4_bool_mix: Bool[0 1 0 1; 0 0 0 0; 1 1 1 1; 1 1 1 1; 0 1 0 1]
tensor: Tensor(SparseBand{Int32}(Dense{Int32}(Element{false, Bool, Int32}(Bool[0, 0, 1, 1, 0, 1, 0, 1, 1, 1, 0, 0, 1, 1, 0, 1, 0, 1, 1, 1]), 5), 4, [1, 2], [4], [1, 5]))
tensor: Tensor(SparseBand{Int32}(Dense{Int32}(Element{false, Bool, Int32}(Bool[0, 0, 1, 1, 0, 1, 0, 1, 1, 1, 0, 0, 1, 1, 0, 1, 0, 1, 1, 1]), 5), 4, [4], [1, 5]))
countstored: 20
5x5_zeros: [0.0 0.0 0.0 0.0 0.0; 0.0 0.0 0.0 0.0 0.0; 0.0 0.0 0.0 0.0 0.0; 0.0 0.0 0.0 0.0 0.0; 0.0 0.0 0.0 0.0 0.0]
tensor: Tensor(SparseBand{Int32}(Dense{Int32}(Element{0.0, Float64, Int32}(Float64[]), 5), 5, [1, 1], Int32[], [1]))
tensor: Tensor(SparseBand{Int32}(Dense{Int32}(Element{0.0, Float64, Int32}(Float64[]), 5), 5, [1], [1, 1]))
countstored: 0
5x5_ones: [1.0 1.0 1.0 1.0 1.0; 1.0 1.0 1.0 1.0 1.0; 1.0 1.0 1.0 1.0 1.0; 1.0 1.0 1.0 1.0 1.0; 1.0 1.0 1.0 1.0 1.0]
tensor: Tensor(SparseBand{Int32}(Dense{Int32}(Element{0.0, Float64, Int32}([1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0]), 5), 5, [1, 2], [5], [1, 6]))
tensor: Tensor(SparseBand{Int32}(Dense{Int32}(Element{0.0, Float64, Int32}([1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0]), 5), 5, [5], [1, 6]))
countstored: 25
5x5_float_mix: [0.0 1.0 2.0 2.0 3.0; 0.0 0.0 0.0 0.0 0.0; 1.0 1.0 2.0 0.0 0.0; 0.0 0.0 0.0 3.0 0.0; 0.0 0.0 0.0 0.0 0.0]
tensor: Tensor(SparseBand{Int32}(Dense{Int32}(Element{0.0, Float64, Int32}([0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0, 2.0, 0.0, 2.0, 0.0, 0.0, 2.0, 0.0, 0.0, 3.0, 0.0, 3.0, 0.0, 0.0, 0.0, 0.0]), 5), 5, [1, 2], [5], [1, 6]))
tensor: Tensor(SparseBand{Int32}(Dense{Int32}(Element{0.0, Float64, Int32}([0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0, 2.0, 0.0, 2.0, 0.0, 0.0, 2.0, 0.0, 0.0, 3.0, 0.0, 3.0, 0.0, 0.0, 0.0, 0.0]), 5), 5, [5], [1, 6]))
countstored: 25

Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
SparseBand{SparseList} representation:

5x5_falses: Bool[0 0 0 0 0; 0 0 0 0 0; 0 0 0 0 0; 0 0 0 0 0; 0 0 0 0 0]
tensor: Tensor(SparseBand{Int32}(SparseList{Int32}(Element{false, Bool, Int32}(Bool[]), 5, [1], Int32[]), 5, [1, 1], Int32[], [1]))
tensor: Tensor(SparseBand{Int32}(SparseList{Int32}(Element{false, Bool, Int32}(Bool[]), 5, [1], Int32[]), 5, [1], [1, 1]))
countstored: 0
5x5_trues: Bool[1 1 1 1 1; 1 1 1 1 1; 1 1 1 1 1; 1 1 1 1 1; 1 1 1 1 1]
tensor: Tensor(SparseBand{Int32}(SparseList{Int32}(Element{false, Bool, Int32}(Bool[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]), 5, [1, 6, 11, 16, 21, 26], [1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5]), 5, [1, 2], [5], [1, 6]))
tensor: Tensor(SparseBand{Int32}(SparseList{Int32}(Element{false, Bool, Int32}(Bool[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]), 5, [1, 6, 11, 16, 21, 26], [1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5]), 5, [5], [1, 6]))
countstored: 25
4x4_one_bool: Bool[0 0 0 1; 0 0 0 0; 1 0 0 0; 0 1 0 0]
tensor: Tensor(SparseBand{Int32}(SparseList{Int32}(Element{false, Bool, Int32}(Bool[1, 1, 1]), 4, [1, 2, 3, 3, 4], [3, 4, 1]), 4, [1, 2], [4], [1, 5]))
tensor: Tensor(SparseBand{Int32}(SparseList{Int32}(Element{false, Bool, Int32}(Bool[1, 1, 1]), 4, [1, 2, 3, 3, 4], [3, 4, 1]), 4, [4], [1, 5]))
countstored: 3
5x4_bool_mix: Bool[0 1 0 1; 0 0 0 0; 1 1 1 1; 1 1 1 1; 0 1 0 1]
tensor: Tensor(SparseBand{Int32}(SparseList{Int32}(Element{false, Bool, Int32}(Bool[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]), 5, [1, 3, 7, 9, 13], [3, 4, 1, 3, 4, 5, 3, 4, 1, 3, 4, 5]), 4, [1, 2], [4], [1, 5]))
tensor: Tensor(SparseBand{Int32}(SparseList{Int32}(Element{false, Bool, Int32}(Bool[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]), 5, [1, 3, 7, 9, 13], [3, 4, 1, 3, 4, 5, 3, 4, 1, 3, 4, 5]), 4, [4], [1, 5]))
countstored: 12
5x5_zeros: [0.0 0.0 0.0 0.0 0.0; 0.0 0.0 0.0 0.0 0.0; 0.0 0.0 0.0 0.0 0.0; 0.0 0.0 0.0 0.0 0.0; 0.0 0.0 0.0 0.0 0.0]
tensor: Tensor(SparseBand{Int32}(SparseList{Int32}(Element{0.0, Float64, Int32}(Float64[]), 5, [1], Int32[]), 5, [1, 1], Int32[], [1]))
tensor: Tensor(SparseBand{Int32}(SparseList{Int32}(Element{0.0, Float64, Int32}(Float64[]), 5, [1], Int32[]), 5, [1], [1, 1]))
countstored: 0
5x5_ones: [1.0 1.0 1.0 1.0 1.0; 1.0 1.0 1.0 1.0 1.0; 1.0 1.0 1.0 1.0 1.0; 1.0 1.0 1.0 1.0 1.0; 1.0 1.0 1.0 1.0 1.0]
tensor: Tensor(SparseBand{Int32}(SparseList{Int32}(Element{0.0, Float64, Int32}([1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0]), 5, [1, 6, 11, 16, 21, 26], [1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5]), 5, [1, 2], [5], [1, 6]))
tensor: Tensor(SparseBand{Int32}(SparseList{Int32}(Element{0.0, Float64, Int32}([1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0]), 5, [1, 6, 11, 16, 21, 26], [1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5]), 5, [5], [1, 6]))
countstored: 25
5x5_float_mix: [0.0 1.0 2.0 2.0 3.0; 0.0 0.0 0.0 0.0 0.0; 1.0 1.0 2.0 0.0 0.0; 0.0 0.0 0.0 3.0 0.0; 0.0 0.0 0.0 0.0 0.0]
tensor: Tensor(SparseBand{Int32}(SparseList{Int32}(Element{0.0, Float64, Int32}([1.0, 1.0, 1.0, 2.0, 2.0, 2.0, 3.0, 3.0]), 5, [1, 2, 4, 6, 8, 9], [3, 1, 3, 1, 3, 1, 4, 1]), 5, [1, 2], [5], [1, 6]))
tensor: Tensor(SparseBand{Int32}(SparseList{Int32}(Element{0.0, Float64, Int32}([1.0, 1.0, 1.0, 2.0, 2.0, 2.0, 3.0, 3.0]), 5, [1, 2, 4, 6, 8, 9], [3, 1, 3, 1, 3, 1, 4, 1]), 5, [5], [1, 6]))
countstored: 8

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
SparseInterval representation:

6x_one_bool: Bool[0, 0, 1, 0, 0, 0]
tensor: Tensor(SparseInterval{Int32}(Element{false, Bool, Int32}(Bool[1]), 6, [1, 2], [3], [3]))
tensor: Tensor(SparseInterval{Int32}(Element{false, Bool, Int32}(Bool[1]), 6, [3], [3]))
countstored: 1

Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
SparseList{SparseBand} representation:

5x5_falses: Bool[0 0 0 0 0; 0 0 0 0 0; 0 0 0 0 0; 0 0 0 0 0; 0 0 0 0 0]
tensor: Tensor(SparseList{Int32}(SparseBand{Int32}(Element{false, Bool, Int32}(Bool[]), 5, [1], Int32[], [1]), 5, [1, 1], Int32[]))
tensor: Tensor(SparseList{Int32}(SparseBand{Int32}(Element{false, Bool, Int32}(Bool[]), 5, Int32[], [1]), 5, [1, 1], Int32[]))
countstored: 0
5x5_trues: Bool[1 1 1 1 1; 1 1 1 1 1; 1 1 1 1 1; 1 1 1 1 1; 1 1 1 1 1]
tensor: Tensor(SparseList{Int32}(SparseBand{Int32}(Element{false, Bool, Int32}(Bool[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]), 5, [1, 2, 3, 4, 5, 6], [5, 5, 5, 5, 5], [1, 6, 11, 16, 21, 26]), 5, [1, 6], [1, 2, 3, 4, 5]))
tensor: Tensor(SparseList{Int32}(SparseBand{Int32}(Element{false, Bool, Int32}(Bool[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]), 5, [5, 5, 5, 5, 5], [1, 6, 11, 16, 21, 26]), 5, [1, 6], [1, 2, 3, 4, 5]))
countstored: 25
4x4_one_bool: Bool[0 0 0 1; 0 0 0 0; 1 0 0 0; 0 1 0 0]
tensor: Tensor(SparseList{Int32}(SparseBand{Int32}(Element{false, Bool, Int32}(Bool[1, 1, 1]), 4, [1, 2, 3, 4], [3, 4, 1], [1, 2, 3, 4]), 4, [1, 4], [1, 2, 4]))
tensor: Tensor(SparseList{Int32}(SparseBand{Int32}(Element{false, Bool, Int32}(Bool[1, 1, 1]), 4, [3, 4, 1], [1, 2, 3, 4]), 4, [1, 4], [1, 2, 4]))
countstored: 3
5x4_bool_mix: Bool[0 1 0 1; 0 0 0 0; 1 1 1 1; 1 1 1 1; 0 1 0 1]
tensor: Tensor(SparseList{Int32}(SparseBand{Int32}(Element{false, Bool, Int32}(Bool[1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1]), 5, [1, 2, 3, 4, 5], [4, 5, 4, 5], [1, 3, 8, 10, 15]), 4, [1, 5], [1, 2, 3, 4]))
tensor: Tensor(SparseList{Int32}(SparseBand{Int32}(Element{false, Bool, Int32}(Bool[1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1]), 5, [4, 5, 4, 5], [1, 3, 8, 10, 15]), 4, [1, 5], [1, 2, 3, 4]))
countstored: 14
5x5_zeros: [0.0 0.0 0.0 0.0 0.0; 0.0 0.0 0.0 0.0 0.0; 0.0 0.0 0.0 0.0 0.0; 0.0 0.0 0.0 0.0 0.0; 0.0 0.0 0.0 0.0 0.0]
tensor: Tensor(SparseList{Int32}(SparseBand{Int32}(Element{0.0, Float64, Int32}(Float64[]), 5, [1], Int32[], [1]), 5, [1, 1], Int32[]))
tensor: Tensor(SparseList{Int32}(SparseBand{Int32}(Element{0.0, Float64, Int32}(Float64[]), 5, Int32[], [1]), 5, [1, 1], Int32[]))
countstored: 0
5x5_ones: [1.0 1.0 1.0 1.0 1.0; 1.0 1.0 1.0 1.0 1.0; 1.0 1.0 1.0 1.0 1.0; 1.0 1.0 1.0 1.0 1.0; 1.0 1.0 1.0 1.0 1.0]
tensor: Tensor(SparseList{Int32}(SparseBand{Int32}(Element{0.0, Float64, Int32}([1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0]), 5, [1, 2, 3, 4, 5, 6], [5, 5, 5, 5, 5], [1, 6, 11, 16, 21, 26]), 5, [1, 6], [1, 2, 3, 4, 5]))
tensor: Tensor(SparseList{Int32}(SparseBand{Int32}(Element{0.0, Float64, Int32}([1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0]), 5, [5, 5, 5, 5, 5], [1, 6, 11, 16, 21, 26]), 5, [1, 6], [1, 2, 3, 4, 5]))
countstored: 25
5x5_float_mix: [0.0 1.0 2.0 2.0 3.0; 0.0 0.0 0.0 0.0 0.0; 1.0 1.0 2.0 0.0 0.0; 0.0 0.0 0.0 3.0 0.0; 0.0 0.0 0.0 0.0 0.0]
tensor: Tensor(SparseList{Int32}(SparseBand{Int32}(Element{0.0, Float64, Int32}([1.0, 1.0, 0.0, 1.0, 2.0, 0.0, 2.0, 2.0, 0.0, 0.0, 3.0, 3.0]), 5, [1, 2, 3, 4, 5, 6], [3, 3, 3, 4, 1], [1, 2, 5, 8, 12, 13]), 5, [1, 6], [1, 2, 3, 4, 5]))
tensor: Tensor(SparseList{Int32}(SparseBand{Int32}(Element{0.0, Float64, Int32}([1.0, 1.0, 0.0, 1.0, 2.0, 0.0, 2.0, 2.0, 0.0, 0.0, 3.0, 3.0]), 5, [3, 3, 3, 4, 1], [1, 2, 5, 8, 12, 13]), 5, [1, 6], [1, 2, 3, 4, 5]))
countstored: 12

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
SparsePoint representation:

6x_one_bool: Bool[0, 0, 1, 0, 0, 0]
tensor: Tensor(SparsePoint{Int32}(Element{false, Bool, Int32}(Bool[1]), 6, [1, 2], [3]))
tensor: Tensor(SparsePoint{Int32}(Element{false, Bool, Int32}(Bool[1]), 6, [3]))
countstored: 1

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ quote
res_lvl_2 = res_lvl.lvl
res_lvl_val = res_lvl.lvl.val
tmp_lvl = ((ex.bodies[1]).bodies[2]).body.rhs.tns.bind.lvl
tmp_lvl_ptr = tmp_lvl.ptr
tmp_lvl_idx = tmp_lvl.idx
tmp_lvl_ofs = tmp_lvl.ofs
tmp_lvl_val = tmp_lvl.lvl.val
Expand All @@ -14,17 +13,10 @@ quote
Finch.fill_range!(res_lvl_ptr, 0, 1 + 1, 1 + 1)
res_lvl_qos = 0 + 1
0 < 1 || throw(FinchProtocolError("SparseListLevels cannot be updated multiple times"))
tmp_lvl_r = tmp_lvl_ptr[1]
tmp_lvl_r_stop = tmp_lvl_ptr[1 + 1] - 1
if tmp_lvl_r <= tmp_lvl_r_stop
tmp_lvl_i1 = tmp_lvl_idx[tmp_lvl_r]
tmp_lvl_q_stop = tmp_lvl_ofs[tmp_lvl_r + 1]
tmp_lvl_i_2 = tmp_lvl_i1 - ((tmp_lvl_q_stop - tmp_lvl_ofs[tmp_lvl_r]) - 1)
tmp_lvl_q_ofs = (tmp_lvl_q_stop - tmp_lvl_i1) - 1
else
tmp_lvl_i_2 = 1
tmp_lvl_i1 = 0
end
tmp_lvl_i1 = tmp_lvl_idx[1]
tmp_lvl_q_stop = tmp_lvl_ofs[1 + 1]
tmp_lvl_i_2 = tmp_lvl_i1 - ((tmp_lvl_q_stop - tmp_lvl_ofs[1]) - 1)
tmp_lvl_q_ofs = (tmp_lvl_q_stop - tmp_lvl_i1) - 1
phase_start_2 = max(1, tmp_lvl_i_2)
phase_stop_2 = min(tmp_lvl.shape, tmp_lvl_i1)
if phase_stop_2 >= phase_start_2
Expand Down
Loading

0 comments on commit 97065a1

Please sign in to comment.