sunflower-embedded-system-emulator icon indicating copy to clipboard operation
sunflower-embedded-system-emulator copied to clipboard

Implement covariance matrix as a sparse matrix

Open phillipstanleymarbell opened this issue 6 years ago • 1 comments

Related to #128 and #119.

phillipstanleymarbell avatar Dec 01 '19 09:12 phillipstanleymarbell

I am working on some RISC-V fixes and cannot verify the patches because sunflower crashes when trying to allocate uncertain memory.

The implementation of a sparse covariance matrix could be done as follows:

  • Have a dense covariance matrix of size N << mem_size.
  • Use a hashmap to convert memory addresses to rows in the dense covariance matrix.
  • If the dense covariance matrix is "full" and the program trys to store an uncertain-float in at a new memory address simply crash the program.

I would be happy to have a go at implementing this (if only because I could then verify my other patches). The question is how to get a hash map implementation in sunflower? @phillipstanleymarbell could I compile in a small bit of c++? Is there a better way?

harrysarson avatar Jan 21 '20 21:01 harrysarson