polmatrixmultiply

polmatrixmultiply(cm, vec, polaxis=1)[source]

Matrix multiply of appropriate axis of vec […,:] by cm

For an image vec has axes [nchan, npol, ny, nx] and polaxis=1 For visibility vec has axes [row, nchan, npol] and polaxis=2 For blockvisibility vec has axes [row, ant, ant, nchan, npol] and polaxis=4

Parameters
  • cm – matrix to apply

  • vec – array to be multiplied […,:]

  • polaxis – which axis contains the polarisation

Returns

multiplied vec