mirror of
https://github.com/boostorg/ublas.git
synced 2026-02-22 03:42:19 +00:00
[uBLAS]
CHANGE zero/identity/scalar _ vector/matrix add ALLOC template parameter to specify size/difference_type
This commit is contained in:
@@ -304,7 +304,7 @@ for the storage array are <code>unbounded_array<T></code> ,
|
||||
<code>std::vector<T></code> .</p>
|
||||
<h2><a name="identity_matrix" id="identity_matrix"></a>Identity Matrix</h2>
|
||||
<h4>Description</h4>
|
||||
<p>The templated class <code>identity_matrix<T></code>
|
||||
<p>The templated class <code>identity_matrix<T, ALLOC></code>
|
||||
represents identity matrices. For a <em>(m x n</em>)-dimensional
|
||||
identity matrix and <em>0 <= i < m</em>, <em>0 <= j <
|
||||
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<T></code> represents
|
||||
<p>The templated class <code>zero_matrix<T, ALLOC></code> represents
|
||||
zero matrices. For a <em>(m x n</em>)-dimensional zero matrix and
|
||||
<em>0 <= i < m</em>, <em>0 <= j < 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<T></code>
|
||||
<p>The templated class <code>scalar_matrix<T, ALLOC></code>
|
||||
represents scalar matrices. For a <em>(m x n</em>)-dimensional
|
||||
scalar matrix and <em>0 <= i < m</em>, <em>0 <= j <
|
||||
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>
|
||||
|
||||
@@ -350,7 +350,7 @@ for the Storage array are <code>unbounded_array<T></code> ,
|
||||
<code>std::vector<T></code> .</p>
|
||||
<h2><a name="unit_vector" id="unit_vector"></a>Unit Vector</h2>
|
||||
<h4>Description</h4>
|
||||
<p>The templated class <code>unit_vector<T></code> represents
|
||||
<p>The templated class <code>unit_vector<T, ALLOC></code> represents
|
||||
canonical unit vectors. For the <em>k</em>-th
|
||||
<em>n</em>-dimensional canonical unit vector and <em>0 <= i <
|
||||
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<T></code> represents
|
||||
<p>The templated class <code>zero_vector<T, ALLOC></code> represents
|
||||
zero vectors. For a <em>n</em>-dimensional zero vector and <em>0
|
||||
<= i < 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<T></code>
|
||||
<p>The templated class <code>scalar_vector<T, ALLOC></code>
|
||||
represents scalar vectors. For a <em>n</em>-dimensional scalar
|
||||
vector and <em>0 <= i < 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>
|
||||
|
||||
Reference in New Issue
Block a user