Cleaner printing with tabs after each element

release/4.3a0
Eohan George 2009-12-02 23:01:49 +00:00
parent 5bde26a885
commit ae9789c9ee
1 changed files with 1 additions and 1 deletions

View File

@ -182,7 +182,7 @@ void print(const Matrix& A, const string &s) {
for( size_t i = 0 ; i < m ; i++) { for( size_t i = 0 ; i < m ; i++) {
for( size_t j = 0 ; j < n ; j++) { for( size_t j = 0 ; j < n ; j++) {
double aij = A(i,j); double aij = A(i,j);
cout << setw(9) << (fabs(aij)<1e-12 ? 0 : aij); cout << setw(9) << (fabs(aij)<1e-12 ? 0 : aij) << "\t";
} }
cout << endl; cout << endl;
} }