Skip to content

Commit

Permalink
resolving name conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
cheshmi committed Nov 23, 2022
1 parent 97d13bf commit da104fa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/aggregation/sparse_io.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ namespace sym_lib{

//// NEW IO section. This will replace old read matrix gradually since this is more general.

#define precision 48
#define print_precision 48
enum TYPE{
REAL,INT,COMPLEX,PATTERN
};
Expand Down Expand Up @@ -148,7 +148,7 @@ namespace sym_lib{
for (auto i = 0; i < n; ++i) {
for (auto j = Ap[i]; j < Ap[i+1]; ++j) {
assert(j<nnz);
std::cout<<indent<<Ai[j]+1<<" "<<i+1<<" "<<std::setprecision(precision)<<Ax[j];
std::cout<<indent<<Ai[j]+1<<" "<<i+1<<" "<<std::setprecision(print_precision)<<Ax[j];
std::cout<<"\n";
}
}
Expand All @@ -171,7 +171,7 @@ namespace sym_lib{
std::cout<<indent<<row_no<<" "<<col_no<<"\n";
for (int i = 0; i < col_no*row_no; i+=lda) {
for (int j = 0; j < lda; ++j) {
std::cout<<indent<<std::setprecision(precision)<<mat[i+j];
std::cout<<indent<<std::setprecision(print_precision)<<mat[i+j];
}
std::cout<<"\n";
}
Expand All @@ -188,7 +188,7 @@ namespace sym_lib{
const std::string indent){
std::streambuf* sb_cout_backup = std::cout.rdbuf();
std::cout.rdbuf(out);
std::cout<<indent<<std::setprecision(precision)<<val<<"\n";
std::cout<<indent<<std::setprecision(print_precision)<<val<<"\n";
std::cout.rdbuf(sb_cout_backup);
}

Expand Down

0 comments on commit da104fa

Please sign in to comment.