@classmethod
def from_comp(cls, xx=0, xy=0, xz=0, yy=0, yz=0, zz=0):
    """
        Return ``Stress`` tensor. Default is zero tensor.

        Note that stress tensor must be symmetrical.

        Keyword Args:
          xx, xy, xz, yy, yz, zz (float): tensor components

        Example:
          >>> S = Stress.from_comp(xx=-5, yy=-2, zz=10, xy=1)
          >>> S
          Stress:
          [[-5  1  0]
           [ 1 -2  0]
           [ 0  0 10]]

        """
    return cls([[xx, xy, xz], [xy, yy, yz], [xz, yz, zz]])
