Hello, how can I rewrite following expression to UBLAS? <div><div>template <class T></div><div>boost::numeric::ublas::matrix<T> SubstractMeans( boost::numeric::ublas::matrix<T> &m, boost::numeric::ublas::vector<T> &vMeans)</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>{</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>ublas::matrix<T> mout(m.size1(), m.size2());</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>for(size_t i=0;i<m.size1();i++)</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>for(size_t j=0;j<m.size2();j++)</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>{</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>mout(i,j)=m(i, j)-vMeans(i);<span class="Apple-tab-span" style="white-space:pre"> </span></div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>}</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>//cout<<mout<<endl;</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>return mout;</div> <div><span class="Apple-tab-span" style="white-space:pre"> </span>}</div><div><br></div><div>thanks,</div><div>Arman.</div><div><br></div></div>