I doubt it works with sparse matrices but here it's a dense array