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:


I would like to have a resize function.

In principle one can use

m.clone(matrix(n1, n2);


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 Peter

Status: newassigned

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.

comment:2 Changed 16 years ago by Peter

Resolution: fixed
Status: assignedclosed

(In [808]) previous argument was invalid, but here is an implementation. Fixes #205

Note: See TracTickets for help on using tickets.