Changeset 1483 for trunk/yat/utility


Ignore:
Timestamp:
Sep 9, 2008, 6:03:15 PM (13 years ago)
Author:
Peter
Message:

refs #396 - removing a constructor in MatrixLookupWeighted? - needed to re-organize tests in ncc_test to track down an error

File:
1 edited

Legend:

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

    r1469 r1483  
    123123    assert(data.columns()==weight.columns());
    124124    columns_ = data.columns();
    125     resize(data.columns(), data.rows());
     125    resize(data.rows(), data.columns());
     126    assert(rows()==data.rows());
     127    assert(columns()==data.columns());
    126128    std::copy(data.begin(), data.end(), data_iterator(vec_.begin()));
    127129    std::copy(weight.begin(), weight.end(), weight_iterator(vec_.begin()));
     
    169171    columns_ = columns;
    170172    vec_.resize(rows*columns);
     173    assert(this->rows()==rows);
     174    assert(this->columns()==columns);
    171175  }
    172176
Note: See TracChangeset for help on using the changeset viewer.