SMS dit: Electric machine analysis using tensors