The values array contains the non-zero elements of row i in index i. The cols array indicates the column index for each number in the values array. The row_starts array indicates which of the 7 numbers begin a new collection in the values + cols array.
kapalani
Also I think in step 2, flags array should be [1, 0, 1, 1, 1, 0, 0] since the row_start array contains 4 elements, so the flags array should contain 4 1's
In 3) and 4), shouldn't it be +8x_3 not x_2?
The values array contains the non-zero elements of row i in index i. The cols array indicates the column index for each number in the values array. The row_starts array indicates which of the 7 numbers begin a new collection in the values + cols array.
Also I think in step 2, flags array should be [1, 0, 1, 1, 1, 0, 0] since the row_start array contains 4 elements, so the flags array should contain 4 1's