Show
Ignore:
Timestamp:
07/28/09 15:53:00 (15 years ago)
Author:
vbarta
Message:

testing matrix inversion

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • library/tests/square_mat_test.cpp

    r437 r438  
    4545    res = A + w * outer_product(v, v); 
    4646    CHECK_CLOSE(res, sqmat2.to_mat(), epsilon); 
     47 
     48    TMatrix invmat(sz); 
     49    sqmat.inv(invmat); 
     50    mat invA = inv(A); 
     51    CHECK_CLOSE(invA, invmat.to_mat(), epsilon); 
    4752 
    4853    double d = det(A);