COIN-OR::LEMON - Graph Library

Changeset 1751:a2a454f1232d in lemon-0.x for test/matrix_maps_test.cc


Ignore:
Timestamp:
11/02/05 16:24:38 (15 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2280
Message:

Swap col and row map

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/matrix_maps_test.cc

    r1728 r1751  
    5454        matrix.set(it, jt, val);
    5555        check(matrix(it, jt) == val, "Wrong assign");
    56         check(matrix(it, jt) == matrixColMap(matrix, it)[jt], "Wrong colMap");
    57         check(matrix(it, jt) == matrixRowMap(matrix, jt)[it], "Wrong rowMap");
     56        check(matrix(it, jt) == matrixRowMap(matrix, it)[jt], "Wrong rowMap");
     57        check(matrix(it, jt) == matrixColMap(matrix, jt)[it], "Wrong colMap");
    5858      }
    5959    }
     
    6161    for (Graph::NodeIt it(graph); it != INVALID; ++it) {
    6262      for (Graph::NodeIt jt(graph); jt != INVALID; ++jt) {
    63         check(cm(it, jt) == matrixColMap(cm, it)[jt], "Wrong colMap");
    64         check(cm(it, jt) == matrixRowMap(cm, jt)[it], "Wrong rowMap");
     63        check(cm(it, jt) == matrixRowMap(cm, it)[jt], "Wrong rowMap");
     64        check(cm(it, jt) == matrixColMap(cm, jt)[it], "Wrong colMap");
    6565      }
    6666    }
     
    9696        check(matrix(it, jt) == val, "Wrong assign");
    9797        check(matrix(jt, it) == val, "Wrong assign");
    98         check(matrix(it, jt) == matrixColMap(matrix, it)[jt], "Wrong colMap");
    99         check(matrix(it, jt) == matrixRowMap(matrix, jt)[it], "Wrong rowMap");
     98        check(matrix(it, jt) == matrixRowMap(matrix, it)[jt], "Wrong rowMap");
     99        check(matrix(it, jt) == matrixColMap(matrix, jt)[it], "Wrong colMap");
    100100      }
    101101    }
     
    103103    for (Graph::NodeIt it(graph); it != INVALID; ++it) {
    104104      for (Graph::NodeIt jt(graph); jt != INVALID; ++jt) {
    105         check(cm(it, jt) == matrixColMap(cm, it)[jt], "Wrong colMap");
    106         check(cm(it, jt) == matrixRowMap(cm, jt)[it], "Wrong rowMap");
     105        check(cm(it, jt) == matrixRowMap(cm, it)[jt], "Wrong rowMap");
     106        check(cm(it, jt) == matrixColMap(cm, jt)[it], "Wrong colMap");
    107107      }
    108108    }
Note: See TracChangeset for help on using the changeset viewer.