The input matrix should ensure that the following conditions hold:
- No duplicate edges
- compressed sparse column/row (CSC/CSR) format
The algorithm implementation is shown in the following figure:
Figure 1 : convert CSC CSR architecture on FPGA
As seen from the figure:
- Firstly, call the Module calculate degree to generate the transfer offset array.
- By using the input offset and indice arrays and also the calculated new offset array, generate the new indice array.