Fuse bn
- Maxence Naud authored
changed this file in version 11 of the diff
Sorry I was speaking about ongoing refactoring. Yet, see issue #13 (closed) or #14 (closed), these data may effectively go back to Tensor
changed this file in version 11 of the diff
conversion functions will be excessively expensive. As number of dimension is practically a constant for a given tensor, I propose to preallocate a vector of coordinates of the right size and pass it by reference to the coordinate computation function and not return it. The actual implementation makes reallocations and then a full vector copy. Even if the compiler is smart, is not that smart
Actually I'm not sure how to do that properly in order to avoid threading issues, dangling references and so on...
I think that the best solution is to pass a reference to an user preallocated vector of coordinates to getCoord.
It should be documented as an unsafe function: if the input vector size is not the right one, the behavior is undefined.changed this file in version 11 of the diff