https://kotlinlang.org logo
#mathematics
Title
# mathematics
b

bjonnh

04/12/2019, 2:34 AM
@altavir how dynamic are these additional metadata? wouldn't that add some overhead for each matrix? Is that something other libs do?
a

altavir

04/12/2019, 5:03 AM
I do not think anyone uses it yet (all libraries I know use types for that). As for overhead, it could be different. Zero for matrix without features (empty set). Few references for marker features (like diagonal etc.). And could double the matrix size for example if it holds it's inversed form. This is from memory point of view. From CPU it is always zero.
b

bjonnh

04/12/2019, 4:40 PM
That's true we could have metadata by reference.
a

altavir

04/12/2019, 4:50 PM
The idea is that the type specifies the inner storage format, and it does not make sense to use it to designate features of data. Also it is possible to infer the features without changing the data. I think, I will make this feature set to an interface to be able to add it to other data objects.
4 Views