Changeset 5b13774 in tol
- Timestamp:
- Aug 26, 2009, 9:50:42 AM (17 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- 0fcdd1d
- Parents:
- b4b5301
- File:
-
- 1 edited
-
tol/btol/vmatrix_type/vmat_io.cpp (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tol/btol/vmatrix_type/vmat_io.cpp
rb4b5301 r5b13774 76 76 } 77 77 78 //#define DO_WARN_INEF_USE 78 #define DO_WARN_INEF_USE 79 #ifdef DO_WARN_INEF_USE 80 #define DO_WARN_INEF_USE_all2bRd 81 //#define DO_WARN_INEF_USEall_all2cRs 82 //#define DO_WARN_INEF_USE_2cRt 83 #endif 79 84 80 85 … … 94 99 //////////////////////////////////////////////////////////////////////////////// 95 100 { 96 #ifdef DO_WARN_INEF_USE 101 #ifdef DO_WARN_INEF_USE_2cRt 97 102 static double minStoredCells_ = 1000.0; 98 103 double storedCells = a.StoredCells(); … … 113 118 //////////////////////////////////////////////////////////////////////////////// 114 119 { 115 #ifdef DO_WARN_INEF_USE 120 #ifdef DO_WARN_INEF_USEall_all2cRs 116 121 static double minStoredCells_ = 1000.0; 117 122 double storedCells = a.StoredCells(); … … 119 124 { 120 125 warn_inefUse(I2("Converting to","Convirtiendo matriz a")+ 121 " Blas.R.Sparse "+CodeName(a.code_)+" "+126 " Cholmod.R.Sparse "+CodeName(a.code_)+" "+ 122 127 I2("to apply","para aplicar")+" "+fName+" "+ 123 128 I2("to a virtual matrix","a una matriz virtual")+ … … 132 137 //////////////////////////////////////////////////////////////////////////////// 133 138 { 134 #ifdef DO_WARN_INEF_USE 139 #ifdef DO_WARN_INEF_USE_all2bRd 135 140 static double minLostCells_ = 1000.0; 141 int r = a.Rows(); 142 int c = a.Columns(); 136 143 double storedCells = a.StoredCells(); 137 double denseCells = a.Rows()*a.Columns();144 double denseCells = r*c; 138 145 double lostCells = denseCells-storedCells; 139 if( lostCells>=minLostCells_)146 if( ((r>1)&&(c>1)) && (lostCells>=minLostCells_) ) 140 147 { 141 148 double memKbLost = (lostCells*sizeof(double))/1024.0; … … 144 151 I2("to apply","para aplicar")+" "+fName+" "+ 145 152 I2("to a virtual matrix","a una matriz virtual")+ 146 " "+CodeName(a.code_)+"("+ a.Rows()+"x"+a.Columns()+")"+" "+153 " "+CodeName(a.code_)+"("+r+"x"+c+")"+" "+ 147 154 I2("with","con")+" "+storedCells+ 148 155 I2("stored cells","celdas almacendas")+".\n"+
Note: See TracChangeset
for help on using the changeset viewer.
