I am wondering if the expected behavior of the TensorPrincipalInvariants filter is to calculate the eigenvectors as sigma1(vector), sigma2(vector) and sigma3(vector).
If so, I am not able to match the results in my dataset.
These are the tensor definition (I assume in the order XX-YY-ZZ-XY-YZ-XZ)
And these is calculated sigma1 (vector):
I could not match these values by manual calculation.
Would the plugin by any chance read the tensor in another order?
One more information: it seems that the sign of the sigma’s “Y” variable is inverted in this case… this means that the eigenvalues are ok, but the eigenvectors sometimes go to the wrong quadrant.
I cannot get this equality withe the values calculated by the filter.
Look at the first eigenvector our of the ultra-simple python code below (the y component should be negative):