code: def inv_matrix(self) -> np.ndarray:
          
          if self._inv_matrix is None:
              self._inv_matrix = inv(self._matrix)
              self._inv_matrix.setflags(write=False)
          return self._inv_matrix
docs: Inverse of lattice matrix.