title: converting RGB to YIQ with matrix multiplication python
body: <p>I want to converse image of 700 on 500 pixels encoded in RGB space to YIQ space, for that I need to use matrix multiplication in the form </p>
  
  <blockquote>
    <p>P = A*T</p>
  </blockquote>
  
  <p>When P is a vector representing YIQ color space, T is a vector representing RGB space and A is a constant 3X3 matrix. The problem is that this is working for each pixel alone, how can I make this multiplication without the need of looping over all pixels?</p>