@classmethod
def from_axes(cls, x=1, y=1, z=1, **kwargs) ->'Tensor':
    """
        Return diagonal tensor defined by principal axes.
        """
    return cls([[x * x, 0, 0], [0, y * y, 0], [0, 0, z * z]], **kwargs)
