title: How to do X * diag(Y) in Scala Breeze?
body: <p>How to do <code>X * diag(Y)</code> in Scala Breeze?  <code>X</code> could be for example a <code>CSCMatrix</code> and <code>Y</code> could be a <code>DenseVector</code>?</p>
  
  <p>In MATLAB syntax, this would be:</p>
  
  <pre><code>X * spdiags(0, Y, N, N )
  </code></pre>
  
  <p>Or:</p>
  
  <pre><code>X .* repmat( Y', K, 0 )
  </code></pre>
  
  <p>In SciPy syntax, this would be a 'broadcast multiply':</p>
  
  <pre><code>Y * X
  </code></pre>
  
  <p>How to do <code>X * diag(Y)</code> in Scala Breeze?</p>