I have two implementations of a function that computes the frobenius norm with the trace subtracted. This function is applied to all vectors in dimension 3 of the 4D tensor