code: def temp_to_spmatrix(self, ty):
          
          assert ty in ('jac0', 'jac')
  
          jac0s = ['Fx0', 'Fy0', 'Gx0', 'Gy0']
          jacs = ['Fx', 'Fy', 'Gx', 'Gy']
  
          if ty == 'jac0':
              todo = jac0s
          elif ty == 'jac':
              todo = jacs
  
          for m in todo:
              self.__dict__[m] = spmatrix(self._temp[m]['V'],
                                          self._temp[m]['I'], self._temp[m]['J'],
                                          self.get_size(m), 'd')
              if ty == 'jac':
                  self.__dict__[m] += self.__dict__[m + '0']
  
          self.apply_set(ty)
docs: Convert Jacobian tuples to matrices
  
          :param ty: name of the matrices to convert in ``('jac0','jac')``
  
          :return: None