ude &lt;boost/numeric/ublas/io.hpp&gt;

int main () {
    using namespace boost::numeric::ublas;
    vector&lt;double&gt; v (3);
    vector_slice&lt;vector&lt;double&gt; &gt; vs (v, slice (0, 1, 3));
    for (unsigned i = 0; i &lt; vs.size (); ++ i)
        vs (i) = i;
    std::cout &lt;&lt; vs &lt;&lt; std::endl;
}
</pre>
<h4>Definition</h4>
<p>Defined in the header vector_proxy.hpp.</p>
<h4>Template parameters</h4>
<table border="1" summary="parameters">
<tbody>
<tr>
<th>Parameter</th>
<th>Description</th