Changeset 455 for library/tests

Show
Ignore:
Timestamp:
07/30/09 16:44:28 (15 years ago)
Author:
smidl
Message:

test mult_sym_t(.,.)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • library/tests/square_mat_test.cpp

    r453 r455  
    8484    CHECK_CLOSE(res, sqmat2.to_mat(), epsilon); 
    8585 
     86    mat C = randu(sz, sz-1); 
     87         TMatrix CAC(sz-1); 
     88    sqmat.mult_sym_t(C,CAC); 
     89    res = (C.T() * A) * C; 
     90    CHECK_CLOSE(res, CAC.to_mat(), epsilon); 
     91 
    8692    sqmat2 = sqmat; 
    8793    sqmat2.mult_sym_t(B);