Opened 16 years ago
Closed 16 years ago
#205 closed enhancement (fixed)
resize matrix
Reported by: | Peter | Owned by: | Peter |
---|---|---|---|
Priority: | critical | Milestone: | yat 0.3 (Public release) |
Component: | utility | Version: | trunk |
Keywords: | Cc: |
Description
I would like to have a resize function.
In principle one can use
m.clone(matrix(n1, n2);
but
m.resize(n1, n2);
is clearer code.
I thought we agreed on having that function. The same issue applies to the vector.
Change History (2)
comment:1 Changed 16 years ago by
Status: | new → assigned |
---|
comment:2 Changed 16 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
Just realized the first code snippet would not work, because the underlying gsl_vectors are destroyed in destructor of temporary matrix. Therefore I'll implement resize.