DeepLearnPhysics / larcv3

Third version of larcv. This is a complete replacement for larcv2.
MIT License
11 stars 6 forks source link

Tensors with more than 3 dimensions #36

Open marcodeltutto opened 5 years ago

marcodeltutto commented 5 years ago

Currently, it is not possible to access elements of the ndarray from C if the ndarray has more than 3 dimensions. PyArray_AsCArray can be used on 1, 2 and 3 dimensions arrays only: https://docs.scipy.org/doc/numpy-1.13.0/reference/c-api.array.html#c.PyArray_AsCArray. A workaround is needed in the case of 4 or more dimensions.