code: def _asarray(self, vec):
          
          shape = self.domain[0, 0].shape + self.pshape
          arr = np.empty(shape, dtype=self.domain.dtype)
          for i, xi in enumerate(vec):
              for j, xij in enumerate(xi):
                  arr[..., i, j] = xij.asarray()
  
          return arr
docs: Convert ``x`` to an array.
  
          Here the indices are changed such that the "outer" indices come last
          in order to have the access order as `numpy.linalg.svd` needs it.
  
          This is the inverse of `_asvector`.