diff --git a/doc/container.htm b/doc/container.htm index 4936222a..be126c75 100644 --- a/doc/container.htm +++ b/doc/container.htm @@ -111,7 +111,7 @@ from, or is not defined in Sizing constructor
V v (n)n >= 0n elements.n elements.v.size () == n.v.resize (n)
v.resize (n, p)
n
+n
elements.value_type()
-copies. When p == false then exisiting elements may no
-be preserved and elements will not appended as normal. That is with
-p == false the elements values after resize are
-undefined.value_type().
+p == false then exisiting elements are not preserved and elements will not appended as normal. Instead the vector is in the same state as that after an equivilent sizing constructor.
v.size () == n.M m (n1, n2)n1 >= 0 and n2 >= 0n1 rows and n2
+n1 rows and n2
columns.m.size1 () == n1 and m.size2 () ==
n2.value_type ().
m.resize (n1, n2, p)
n1 rows
+n1 rows
and n2 columns.value_type()
-copies. When p == false then exisiting elements may no
-be preserved and elements will not appended as normal. That is with
-p == false the elements values after resize are
-undefined.p == false then exisiting elements are not preserved and elements will not appended as normal. Instead the matrix is in the same state as that after an equivilent sizing constructor.
m.size1 () == n1 and m.size2 () ==
n2.The templated class sparse_matrix<T, F, A> is
the base container adaptor for sparse matrices. For a (m x
n)-dimensional sparse matrix and 0 <= i < m,
@@ -103,8 +103,7 @@ int main () {
rows of zero elements.
sparse_matrix (size_type size1, size_type2, size_type
-non_zeros)sparse_matrix (size_type size1, size_type2, size_type non_zeros = 0)sparse_matrix that holds at most
size1 rows of size2 elements.void resize (size_type size1, size_type size2, size_type
-non_zeros)void resize (size_type size1, size_type size2, bool preserve = true, size_type
+non_zeros = 0)sparse_matrix to hold at most
size1 rows of size2 elements. The
existing elements of the sparse_matrix are preseved
@@ -422,8 +421,7 @@ TA> >
zero rows of zero elements.compressed_matrix (size_type size1, size_type2, size_type
-non_zeros)compressed_matrix (size_type size1, size_type2, size_type non_zeros = 0)compressed_matrix that holds at most
size1 rows of size2 elements.void resize (size_type size1, size_type size2, size_type
-non_zeros)void resize (size_type size1, size_type size2, bool preserve = true, size_type
+non_zeros = 0)compressed_matrix to hold at most
size1 rows of size2 elements. The
existing elements of the compressed_matrix are
@@ -745,8 +743,7 @@ TA> >
zero rows of zero elements.coordinate_matrix (size_type size1, size_type2, size_type
-non_zeros)coordinate_matrix (size_type size1, size_type2, size_type non_zeros = 0)coordinate_matrix that holds at most
size1 rows of size2 elements.void resize (size_type size1, size_type size2, size_type
-non_zeros)void resize (size_type size1, size_type size2, bool preserve = true, size_type
+non_zeros = 0)coordinate_matrix to hold at most
size1 rows of size2 elements. The
existing elements of the coordinate_matrix are
diff --git a/doc/vector_sparse.htm b/doc/vector_sparse.htm
index 445cb107..da62663f 100644
--- a/doc/vector_sparse.htm
+++ b/doc/vector_sparse.htm
@@ -15,7 +15,7 @@ Sparse Vector
The templated class sparse_vector<T, A> is
the base container adaptor for sparse vectors. For a
n-dimensional sparse vector and 0 <= i < n
@@ -85,7 +85,7 @@ elements.
sparse_vector (size_type size, size_type
-non_zeros)sparse_vector that holds at most
size elements.void resize (size_type size, size_type non_zeros, bool
-preserve = true)void resize (size_type size, bool
+preserve = true, size_type non_zeros = 0)sparse_vector to hold at most
size elements. The existing elements of the
sparse_vector are preseved when specified.void resize (size_type size, size_type non_zeros, bool
-preserve = true)void resize (size_type size, bool
+preserve = true, size_type non_zeros = 0)compressed_vector to hold at most
size elements. The existing elements of the
compress_vector are preseved when specified.void resize (size_type size, size_type
-non_zeros)void resize (size_type size, bool
+preserve = true, size_type non_zeros = 0)coordinate_vector to hold at most
size elements. The existing elements of the
coordinate_vector are preseved when specified.