Changeset 2011


Ignore:
Timestamp:
Jul 8, 2009, 5:16:25 PM (11 years ago)
Author:
Peter
Message:

avoid calling Matrix(0,x) or Matrix(x,0)

File:
1 edited

Legend:

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

    r1797 r2011  
    66  Copyright (C) 2006 Jari Häkkinen
    77  Copyright (C) 2007, 2008 Jari Häkkinen, Peter Johansson
     8  Copyright (C) 2009 Peter Johansson
    89
    910  This file is part of the yat library, http://dev.thep.lu.se/yat
     
    8990                 double open_gap)
    9091  {
    91     Matrix m(first.size(), second.size());
     92    Matrix m;
     93    if (first.size() && second.size())
     94      m.resize(first.size(), second.size());
    9295    for (size_t i=0; i<first.size(); ++i)
    9396      for (size_t j=0; j<second.size(); ++j)
Note: See TracChangeset for help on using the changeset viewer.