Added check for diagonal tensors to Spectrum