What is the best way to create a sparse array in C++?

后端 未结 11 2184
心在旅途
心在旅途 2020-11-29 01:45

I am working on a project that requires the manipulation of enormous matrices, specifically pyramidal summation for a copula calculation.

In short, I need to keep

11条回答
  •  情书的邮戳
    2020-11-29 02:11

    Hash tables have a fast insertion and look up. You could write a simple hash function since you know you'd be dealing with only integer pairs as the keys.

提交回复
热议问题