Serializes the tensor object

        Args:
            voigt (bool): flag for whether to store entries in
                voigt-notation.  Defaults to false, as information
                may be lost in conversion.

        Returns (Dict):
            serialized format tensor object

def as_dict(self, voigt=False):
        """
        Serializes the tensor object

        Args:
            voigt (bool): flag for whether to store entries in
                voigt-notation.  Defaults to false, as information
                may be lost in conversion.

        Returns (Dict):
            serialized format tensor object

        """
        input_array = self.voigt if voigt else self
        d = {"@module": self.__class__.__module__,
             "@class": self.__class__.__name__,
             "input_array": input_array.tolist()}
        if voigt:
            d.update({"voigt": voigt})
        return d