Ignore:
Timestamp:
Feb 27, 2008, 3:32:15 PM (15 years ago)
Author:
Peter
Message:

allowing resize to zero size. In Matrix if resize is called with only one of columns or rows set to zero a zero by zero matrix is created. I think we can live with that. Though an assertion is called because it is strange.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/utility/Vector.cc

    r1147 r1172  
    220220  {
    221221    delete_allocated_memory();
     222    if (!n)
     223      return;
    222224    const_vec_ = vec_ = gsl_vector_alloc(n);
    223225    if (!vec_)
Note: See TracChangeset for help on using the changeset viewer.