Changeset 792 for trunk/test


Ignore:
Timestamp:
Mar 11, 2007, 1:14:24 AM (15 years ago)
Author:
Jari Häkkinen
Message:

Addresses #193. matrix now works as outlined in the ticket
discussion. Added support for const views. Added a clone function that
facilitates resizing of matrices. clone is needed since assignement
operator functionality is changed.

Location:
trunk/test
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/alignment_test.cc

    r680 r792  
    7878             std::vector<std::pair<size_t,size_t> >& path)
    7979{
    80   dot_matrix  = theplu::yat::utility::matrix(l1.size(),l2.size());
     80  dot_matrix.clone(theplu::yat::utility::matrix(l1.size(),l2.size()));
    8181  for (size_t i=0; i<l1.size(); i++)
    8282    for (size_t j=0; j<l2.size(); j++) {
  • trunk/test/kernel_test.cc

    r781 r792  
    118118  delete kf;
    119119
    120   data_core = utility::matrix(1,5);
     120  data_core.clone(utility::matrix(1,5));
    121121  for (size_t i=0; i<data_core.columns(); i++)
    122122    data_core(0,i)=i;
  • trunk/test/svd_test.cc

    r759 r792  
    6060  Vtranspose.transpose();
    6161  // Reconstructing A = U*S*Vtranspose
    62   utility::matrix Areconstruct=svd.U();
     62  utility::matrix Areconstruct(svd.U());
    6363  Areconstruct*=S;
    6464  Areconstruct*=Vtranspose;
     
    8383  }
    8484
    85   utility::matrix Utranspose=svd.U();
     85  utility::matrix Utranspose(svd.U());
    8686  Utranspose.transpose();
    8787  Utranspose*=svd.U();  // Expect unity matrix
Note: See TracChangeset for help on using the changeset viewer.