Skip to content

Commit 433c9b4

Browse files
committed
Change COO index matrix to column-major in a format description
1 parent 392a25b commit 433c9b4

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

format/SparseTensor.fbs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,12 @@ table SparseTensorIndexCOO {
4040
/// X[0, 1, 2, 1] := 5
4141
/// X[1, 2, 0, 4] := 6
4242
///
43-
/// In COO format, the index matrix of X is the following 10x4 matrix:
43+
/// In COO format, the index matrix of X is the following 4x10 matrix:
4444
///
45-
/// [[0, 1, 2, 0],
46-
/// [0, 1, 2, 1],
47-
/// [0, 1, 3, 0],
48-
/// [0, 2, 1, 0],
49-
/// [1, 1, 2, 3],
50-
/// [1, 2, 0, 4]]
45+
/// [[0, 0, 0, 0, 1, 1],
46+
/// [1, 1, 1, 2, 1, 2],
47+
/// [2, 2, 3, 1, 2, 0],
48+
/// [0, 1, 0, 0, 3, 4]]
5149
///
5250
/// Note that the indices are sorted in lexcographical order.
5351
indicesBuffer: Buffer;

0 commit comments

Comments
 (0)