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 >= 0 -Creates a vector of n elements. +Allocates an unitialized vector of n elements. v.size () == n. @@ -145,14 +145,11 @@ from, or is not defined in v.resize (n)
v.resize (n, p)
  -Modifies the vector so that it can hold n +Reallocates the vector so that it can hold n elements.
-Erases or appends elements in order to bring the vector to the -prescribed size. Appended elements are 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. +Erases or appends elements in order to bring the vector to the prescribed size. Appended elements copies ofvalue_type(). +
+When 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. @@ -270,7 +267,7 @@ from, or is not defined in
Sizing constructor M m (n1, n2) n1 >= 0 and n2 >= 0 -Creates a matrix of n1 rows and n2 +Allocates an uninitialized matrix of n1 rows and n2 columns. m.size1 () == n1 and m.size2 () == n2. @@ -311,14 +308,12 @@ m (i, j) is a copy of value_type (). m.resize (n1, n2, p)   -Modifies the matrix so that it can hold n1 rows +Reallocate the matrix so that it can hold n1 rows and n2 columns.
Erases or appends elements in order to bring the matrix to the prescribed size. Appended elements are 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. +copies.
+When 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. diff --git a/doc/matrix_sparse.htm b/doc/matrix_sparse.htm index 8661d42c..095b55e6 100644 --- a/doc/matrix_sparse.htm +++ b/doc/matrix_sparse.htm @@ -15,7 +15,7 @@ Sparse Matrix

Sparse Matrix

Description

- +

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) Allocates a sparse_matrix that holds at most size1 rows of size2 elements. @@ -119,8 +118,8 @@ matrix_expression<AE> &ae) The extended copy constructor. -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) Reallocates a 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) Allocates a compressed_matrix that holds at most size1 rows of size2 elements. @@ -439,8 +437,8 @@ matrix_expression<AE> &ae) The extended copy constructor. -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) Reallocates a 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) Allocates a coordinate_matrix that holds at most size1 rows of size2 elements. @@ -762,8 +759,8 @@ matrix_expression<AE> &ae) The extended copy constructor. -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) Reallocates a 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

Sparse Vector

Description

- +

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) +non_zeros = 0) Allocates a sparse_vector that holds at most size elements. @@ -100,8 +100,8 @@ vector_expression<AE> &ae) The extended copy constructor. -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) Reallocates a sparse_vector to hold at most size elements. The existing elements of the sparse_vector are preseved when specified. @@ -357,8 +357,8 @@ vector_expression<AE> &ae) The extended copy constructor. -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) Reallocates a compressed_vector to hold at most size elements. The existing elements of the compress_vector are preseved when specified. @@ -617,8 +617,8 @@ vector_expression<AE> &ae) The extended copy constructor. -void resize (size_type size, size_type -non_zeros) +void resize (size_type size, bool +preserve = true, size_type non_zeros = 0) Reallocates a coordinate_vector to hold at most size elements. The existing elements of the coordinate_vector are preseved when specified.