Changeset 1196


Ignore:
Timestamp:
Feb 29, 2008, 11:07:33 PM (16 years ago)
Author:
Peter
Message:

fixed bug in Vector when copying empty Vector

File:
1 edited

Legend:

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

    r1172 r1196  
    194194  gsl_vector* Vector::create_gsl_vector_copy(const VectorBase& other) const
    195195  {
     196    if (!other.size())
     197      return NULL;
    196198    gsl_vector* vec = gsl_vector_alloc(other.size());
    197199    if (!vec)
Note: See TracChangeset for help on using the changeset viewer.