I&#39;m not sure the exact layout of your code but as an alternative you could store your vectors as a matrix instead of individual vectors. This will allow you to work on the matrix as a whole easily and you could use matrix_row/matrix_column view classes to operate on the individual vectors inside the matrix when needed since both of these implement the vector_expression concept. This is essentially what I am doing in one of my projects and it seems to work well.<br>
<br><div class="gmail_quote">On Thu, Jun 24, 2010 at 8:05 AM, David Bellot <span dir="ltr">&lt;<a href="mailto:david.bellot@gmail.com">david.bellot@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
in the SVN repository there is an experimental assignment feature recently contributed by one of our contributors. You might want to have a look at it first. I hope to include into the next version.<br><br><div class="gmail_quote">
<div><div></div><div class="h5">

On Thu, Jun 24, 2010 at 13:21,  <span dir="ltr">&lt;<a href="mailto:dariomt@gmail.com" target="_blank">dariomt@gmail.com</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="h5">

Hi list,<br><br>Suppose I have an algorithm that works over a matrix expression.<br><br>I also have a bunch of M ublas::vector&#39;s all of size N, each representing a row of a matrix.<br><br>Is it possible to create a &#39;view&#39; over those vectors to pass it to the algo as a MxN matrix expression?<br>



<br>In this context a &#39;view&#39; means that I don&#39;t need to copy the data in the vectors into a ublas::matrix<br><br>Also N &gt;&gt; M, both determined at runtime (i.e. N and M are not compile time constants).<br>



<br>Thanks!<br><br>
<br></div></div>_______________________________________________<br>
ublas mailing list<br>
<a href="mailto:ublas@lists.boost.org" target="_blank">ublas@lists.boost.org</a><br>
<a href="http://lists.boost.org/mailman/listinfo.cgi/ublas" target="_blank">http://lists.boost.org/mailman/listinfo.cgi/ublas</a><br>
Sent to: <a href="mailto:david.bellot@gmail.com" target="_blank">david.bellot@gmail.com</a><br></blockquote></div><font color="#888888"><br><br clear="all"><br>-- <br>David Bellot, PhD<br><a href="mailto:david.bellot@gmail.com" target="_blank">david.bellot@gmail.com</a><br>


<a href="http://david.bellot.free.fr" target="_blank">http://david.bellot.free.fr</a><br><br>
</font><br>_______________________________________________<br>
ublas mailing list<br>
<a href="mailto:ublas@lists.boost.org">ublas@lists.boost.org</a><br>
<a href="http://lists.boost.org/mailman/listinfo.cgi/ublas" target="_blank">http://lists.boost.org/mailman/listinfo.cgi/ublas</a><br>
Sent to: <a href="mailto:manning.jesse@gmail.com">manning.jesse@gmail.com</a><br></blockquote></div><br>