-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0a2a665
commit 97065a1
Showing
18 changed files
with
126 additions
and
226 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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[])) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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[])) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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[])) | ||
|
14 changes: 7 additions & 7 deletions
14
test/reference32/representation/Dense{SparseBand}_representation.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
24
test/reference32/representation/SparseBand_representation.txt
Large diffs are not rendered by default.
Oops, something went wrong.
14 changes: 7 additions & 7 deletions
14
test/reference32/representation/SparseBand{Dense}_representation.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
14 changes: 7 additions & 7 deletions
14
test/reference32/representation/SparseBand{SparseList}_representation.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
2 changes: 1 addition & 1 deletion
2
test/reference32/representation/SparseInterval_representation.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
14 changes: 7 additions & 7 deletions
14
test/reference32/representation/SparseList{SparseBand}_representation.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.