2
0
mirror of https://github.com/boostorg/ublas.git synced 2026-02-22 15:52:18 +00:00
CHANGE zero/identity/scalar _ vector/matrix add ALLOC template parameter to specify size/difference_type

svn path=/trunk/boost/libs/numeric/ublas/; revision=36356
This commit is contained in:
Michael Stevens
2006-12-13 15:34:05 +00:00
parent 9910fad9af
commit c5d46d189e
2 changed files with 36 additions and 6 deletions

View File

@@ -304,7 +304,7 @@ for the storage array are <code>unbounded_array&lt;T&gt;</code> ,
<code>std::vector&lt;T&gt;</code> .</p>
<h2><a name="identity_matrix" id="identity_matrix"></a>Identity Matrix</h2>
<h4>Description</h4>
<p>The templated class <code>identity_matrix&lt;T&gt;</code>
<p>The templated class <code>identity_matrix&lt;T, ALLOC&gt;</code>
represents identity matrices. For a <em>(m x n</em>)-dimensional
identity matrix and <em>0 &lt;= i &lt; m</em>, <em>0 &lt;= j &lt;
n</em> holds <em>id</em><sub><em>i, j</em></sub> <em>= 0</em>, if
@@ -336,6 +336,11 @@ int main () {
<td>The type of object stored in the matrix.</td>
<td><code>int</code></td>
</tr>
<tr>
<td><code>ALLOC</code></td>
<td>An STL Allocator for size_type and difference_type.</td>
<td>std::allocator</td>
</tr>
</tbody>
</table>
<h4>Model of</h4>
@@ -449,7 +454,7 @@ end of the reversed <code>identity_matrix</code>.</td>
</table>
<h2><a name="zero_matrix" id="zero_matrix"></a>Zero Matrix</h2>
<h4>Description</h4>
<p>The templated class <code>zero_matrix&lt;T&gt;</code> represents
<p>The templated class <code>zero_matrix&lt;T, ALLOC&gt;</code> represents
zero matrices. For a <em>(m x n</em>)-dimensional zero matrix and
<em>0 &lt;= i &lt; m</em>, <em>0 &lt;= j &lt; n</em> holds
<em>z</em><sub><em>i, j</em></sub> <em>= 0</em>.</p>
@@ -479,6 +484,11 @@ int main () {
<td>The type of object stored in the matrix.</td>
<td><code>int</code></td>
</tr>
<tr>
<td><code>ALLOC</code></td>
<td>An STL Allocator for size_type and difference_type.</td>
<td>std::allocator</td>
</tr>
</tbody>
</table>
<h4>Model of</h4>
@@ -590,7 +600,7 @@ end of the reversed <code>zero_matrix</code>.</td>
</table>
<h2><a name="scalar_matrix" id="scalar_matrix"></a>Scalar Matrix</h2>
<h4>Description</h4>
<p>The templated class <code>scalar_matrix&lt;T&gt;</code>
<p>The templated class <code>scalar_matrix&lt;T, ALLOC&gt;</code>
represents scalar matrices. For a <em>(m x n</em>)-dimensional
scalar matrix and <em>0 &lt;= i &lt; m</em>, <em>0 &lt;= j &lt;
n</em> holds <em>z</em><sub><em>i, j</em></sub> <em>= s</em>.</p>
@@ -620,6 +630,11 @@ int main () {
<td>The type of object stored in the matrix.</td>
<td><code>int</code></td>
</tr>
<tr>
<td><code>ALLOC</code></td>
<td>An STL Allocator for size_type and difference_type.</td>
<td>std::allocator</td>
</tr>
</tbody>
</table>
<h4>Model of</h4>

View File

@@ -350,7 +350,7 @@ for the Storage array are <code>unbounded_array&lt;T&gt;</code> ,
<code>std::vector&lt;T&gt;</code> .</p>
<h2><a name="unit_vector" id="unit_vector"></a>Unit Vector</h2>
<h4>Description</h4>
<p>The templated class <code>unit_vector&lt;T&gt;</code> represents
<p>The templated class <code>unit_vector&lt;T, ALLOC&gt;</code> represents
canonical unit vectors. For the <em>k</em>-th
<em>n</em>-dimensional canonical unit vector and <em>0 &lt;= i &lt;
n</em> holds <em>u</em><sup><em>k</em></sup><sub><em>i</em></sub>
@@ -385,6 +385,11 @@ int main () {
<td>The type of object stored in the vector.</td>
<td><code>int</code></td>
</tr>
<tr>
<td><code>ALLOC</code></td>
<td>An STL Allocator for size_type and difference_type.</td>
<td>std::allocator</td>
</tr>
</tbody>
</table>
<h4>Model of</h4>
@@ -479,7 +484,7 @@ end of the reversed <code>unit_vector</code>.</td>
</table>
<h2><a name="zero_vector" id="zero_vector"></a>Zero Vector</h2>
<h4>Description</h4>
<p>The templated class <code>zero_vector&lt;T&gt;</code> represents
<p>The templated class <code>zero_vector&lt;T, ALLOC&gt;</code> represents
zero vectors. For a <em>n</em>-dimensional zero vector and <em>0
&lt;= i &lt; n</em> holds <em>z</em><sub><em>i</em></sub> <em>=
0</em>.</p>
@@ -509,6 +514,11 @@ int main () {
<td>The type of object stored in the vector.</td>
<td><code>int</code></td>
</tr>
<tr>
<td><code>ALLOC</code></td>
<td>An STL Allocator for size_type and difference_type.</td>
<td>std::allocator</td>
</tr>
</tbody>
</table>
<h4>Model of</h4>
@@ -599,7 +609,7 @@ end of the reversed <code>zero_vector</code>.</td>
</table>
<h2><a name="scalar_vector" id="scalar_vector"></a>Scalar Vector</h2>
<h4>Description</h4>
<p>The templated class <code>scalar_vector&lt;T&gt;</code>
<p>The templated class <code>scalar_vector&lt;T, ALLOC&gt;</code>
represents scalar vectors. For a <em>n</em>-dimensional scalar
vector and <em>0 &lt;= i &lt; n</em> holds
<em>z</em><sub><em>i</em></sub> <em>= s</em>.</p>
@@ -629,6 +639,11 @@ int main () {
<td>The type of object stored in the vector.</td>
<td><code>int</code></td>
</tr>
<tr>
<td><code>ALLOC</code></td>
<td>An STL Allocator for size_type and difference_type.</td>
<td>std::allocator</td>
</tr>
</tbody>
</table>
<h4>Model of</h4>