Open albapa opened 3 years ago
I thought that code is really really old
It can't be, because I had an earlier version (like a few months old) which worked perfectly.
I think I understand what's happening. The gradients are flattened out so there is only one index for the descriptor and the neighbours contributing to that descriptor. There is a map grad_index_0based
provided that resolves this into (descriptor, neighbour pair).
I guess I am okay with this data structure but I suggest a wrapper function that returns these array elements in a more intuitive format.
There is something wrong with the gradients as returned from the
calc()
. They're not the appropriate shape: there is a dimension missing.