Hi, I just kindly find your analysis code may have some problems. Like code[:,2] = -c1[1]*z you can compare code in this link https://github.com/NVlabs/tiny-cuda-nn/blob/master/include/tiny-cuda-nn/encodings/spherical_harmonics.h