tools / sparse-matrix

Sparse Matrix Calculator

Interactive port of COMP10002 Assignment 2 — CSR representation, O(n+k) space complexity

COMP10002 作业二的交互式移植版本 — CSR 压缩行存储表示,O(n+k) 空间复杂度

INPUT

MATRIX A

MATRIX B

OPERATIONS

s — set cell
S — swap cells
m — scale (multiply all by k)
a — shift (add k to non-zero)
r — copy row
c — copy col
R — swap rows
C — swap cols

RESULT

COMPACT GRID

COORDINATE LIST

OPERATION LOG
no operations applied yet