Memory-aware Optimization for Sequences of Sparse Matrix-Vector Multiplications