So, I was trying to do higher dimensional algebra in unreal, but realized that there weren’t any structures for it; so I made some. This is a small module that contains implementations of Vector and Matrix which store values in TMaps. Using TMaps allows us to just NOT store “0” entries, hence the “Sparse Element” in the title, operations are only executed over non-0 entries and no consideration of size is taken, as every vector and matrix is ultimately infinite in size. When it tries to read an undefined region of a matrix, or vector, it just returns an associated 0-value, if you try to modify an undefined region, it defines it as the 0-value, and then performs the operation, and then trims out 0-values to keep the data lean.
I’m open to constructive criticism, please let me know if you think this is useful, what might make it more useful, or if you just don’t care I guess. Currently I’m just fleshing it out as I need.