@ShutaoTANG Yes, check LibraryLink/tutorial/Reference#326657761. You can use MTensor_getReal. But it's cumbersome and probably slow.
The way this is meant to be done is that you compute the index into the flat storage yourself. Get the size of the tensor once, with MTensor_getDimensions, then use it repeatedly for index calculations.
Hello Mathematica community, I have a question about a choice that I need to make soon. I'm not sure if this is the right place to ask, but I am asking here because Mathematica falls under Computational mathematics and I would like some opinions from the community. So I am double majoring in phys...