mirror of
https://github.com/boostorg/ublas.git
synced 2026-02-22 03:42:19 +00:00
ADD basic documentation of projection functions
svn path=/trunk/boost/libs/numeric/ublas/; revision=29979
This commit is contained in:
@@ -58,8 +58,47 @@ const</code></td>
|
||||
<td><code>expression_type &operator () ()</code></td>
|
||||
<td>Returns a reference of the expression.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>matrix_row<E> operator[] (std::size_t i)</code></td>
|
||||
<td>Returns the specified proxy.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>matrix_row<E> row (std::size_t i)</code></td>
|
||||
<td>Returns the specified proxy.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>matrix_column<E> column (std::size_t i)</code></td>
|
||||
<td>Returns the specified proxy.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>matrix_range<E> range (std::size_t start1, std::size_t stop1, std::size_t start2, std::size_t stop2)</code></td>
|
||||
<td>Returns the specified proxy.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>matrix_slice<E> slice (std::size_t start1, std::ptrdiff_t stride1, std::size_t size1, std::size_t start2, std::ptrdiff_t stride2, std::size_t size2)</code></td>
|
||||
<td>Returns the specified proxy.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>matrix_range<E> project (const range &r1, const range &r2)</code></td>
|
||||
<td>Returns the specified proxy.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>matrix_slice<E> project (const slice &s1, const slice &s2)</code></td>
|
||||
<td>Returns the specified proxy.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>matrix_indirect<E, A> project (const indirect_array<A> &ia1, const indirect_array<A> &ia2)</code></td>
|
||||
<td>Returns the specified proxy.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h4>Notes</h4>
|
||||
<p>The <code>operator[]</code>, <code>row</code>, <code>column</code>, <code>range</code>, <code>slice</code> and <code>project</code> function parameters are the fixed types <code>std::size_t</code>
|
||||
and <code>std::ptrdiff_t</code>. This is an implementation issue and the types may change to <code>E::size_type</code>
|
||||
and <code>E:difference_type</code> in a future implementation.</p>
|
||||
<p>The <code>operator[]</code>, <code>row</code>, <code>column</code>, <code>range</code>, <code>slice</code> and <code>project</code> functions propagate the expression's constantness. Therefore there proxy returned
|
||||
for a constant <code>matrix_expression<E></code> is based on <code>const E</code>.</p>
|
||||
|
||||
<h2><a name="matrix_references" id="matrix_references"></a> Matrix
|
||||
References</h2>
|
||||
<h3>Reference</h3>
|
||||
|
||||
@@ -33,6 +33,11 @@ including class <code>vector</code> itself.</p>
|
||||
<td>The type of the vector expression.</td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>A</code></td>
|
||||
<td>Base type of an indirect_array.</td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h4>Model of</h4>
|
||||
@@ -58,8 +63,35 @@ const</code></td>
|
||||
<td><code>expression_type &operator () ()</code></td>
|
||||
<td>Returns a reference of the expression.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>vector_range<E> range (std::size_t start, std::size_t stop)</code></td>
|
||||
<td>Returns the specified proxy.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>vector_slice<E> slice (std::size_t start, std::ptrdiff_t stride, std::size_t size)</code></td>
|
||||
<td>Returns the specified proxy.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>vector_range<E> project (const range &r)</code></td>
|
||||
<td>Returns the specified proxy.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>vector_slice<E> project (const slice &s)</code></td>
|
||||
<td>Returns the specified proxy.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>vector_indirect<E, A> project (const indirect_array<A> &ia)</code></td>
|
||||
<td>Returns the specified proxy.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h4>Notes</h4>
|
||||
<p>The <code>range</code>, <code>slice</code> and <code>project</code> function parameters are the fixed types <code>std::size_t</code>
|
||||
and <code>std::ptrdiff_t</code>. This is an implementation issue and the types may change to <code>E::size_type</code>
|
||||
and <code>E:difference_type</code> in a future implementation.</p>
|
||||
<p>The <code>range</code>, <code>slice</code> and <code>project</code> functions propagate the expression's constantness. Therefore there proxy returned
|
||||
for a constant <code>vector_expression<E></code> is based on <code>const E</code>.</p>
|
||||
|
||||
<h2><a name="vector_references" id="vector_references"></a> Vector
|
||||
References</h2>
|
||||
<h3>Reference</h3>
|
||||
|
||||
Reference in New Issue
Block a user