Changeset 8901 in ntrip for trunk/BNC/newmat/newmat7.cpp
- Timestamp:
- Mar 18, 2020, 11:06:13 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/newmat/newmat7.cpp
r2013 r8901 214 214 } 215 215 216 static void SP(GeneralMatrix* gm, GeneralMatrix* gm2)217 { 218 REPORT 219 Real* s2=gm2->Store(); Real* s=gm->Store(); int i=gm->Storage() >> 2;216 static void SP(GeneralMatrix* gm, const GeneralMatrix* gm2) 217 { 218 REPORT 219 const Real* s2=gm2->Store(); Real* s=gm->Store(); int i=gm->Storage() >> 2; 220 220 while (i--) 221 221 { *s++ *= *s2++; *s++ *= *s2++; *s++ *= *s2++; *s++ *= *s2++; } 222 222 i=gm->Storage() & 3; while (i--) *s++ *= *s2++; 223 } 224 225 void GeneralMatrix::SP_Equal(const GeneralMatrix& gm) 226 { 227 REPORT 228 if (nrows_val != gm.nrows_val || ncols_val != gm.ncols_val) 229 Throw(IncompatibleDimensionsException(*this, gm)); 230 SP(this, &gm); 223 231 } 224 232
Note:
See TracChangeset
for help on using the changeset viewer.