Changeset 762 for trunk/test


Ignore:
Timestamp:
Feb 20, 2007, 8:18:48 PM (15 years ago)
Author:
Jari Häkkinen
Message:

Fixes #76. Creating/recreating BLAS support matrix only when needed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/matrix_test.cc

    r680 r762  
    5858  *error << "Testing matrix class" << std::endl;
    5959  bool ok = true;
     60  utility::matrix unit3x3(3,3);
     61  for (size_t i=0; i<unit3x3.rows(); ++i)
     62    unit3x3(i,i)=1;
    6063
    6164  *error << "\tcopy constructor and operator!=" << std::endl;
     
    7881  std::remove("data/tmp_test_matrix.txt");
    7982
    80   *error << "\toperator*(double)" << std::endl;
     83  *error << "\toperator*=(double)" << std::endl;
    8184  utility::matrix m4(3,3,1);
    8285  m4 *= 9;
     
    233236  delete m_nan;
    234237
     238  *error << "\toperator*=(matrix&)" << std::endl;
     239  utility::matrix m6(unit3x3);
     240  m6 *= m;
     241  if (m6!=m) {
     242    ok=false;
     243    *error << "error operator*=(matrix) 1" << std::endl;
     244  }
     245  m6 *= unit3x3;
     246  if (m6!=m) {
     247    ok=false;
     248    *error << "error operator*=(matrix) 2" << std::endl;
     249  }
     250
    235251  if (error!=&std::cerr)
    236252    delete error;
Note: See TracChangeset for help on using the changeset viewer.