Changeset 8901 in ntrip for trunk/BNC/newmat/newmat7.cpp


Ignore:
Timestamp:
Mar 18, 2020, 11:06:13 AM (4 years ago)
Author:
stuerze
Message:

upgrade to newmat11 library

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/newmat/newmat7.cpp

    r2013 r8901  
    214214}
    215215
    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;
     216static 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;
    220220   while (i--)
    221221   { *s++ *= *s2++; *s++ *= *s2++; *s++ *= *s2++; *s++ *= *s2++; }
    222222   i=gm->Storage() & 3; while (i--) *s++ *= *s2++;
     223}
     224
     225void 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);
    223231}
    224232
Note: See TracChangeset for help on using the changeset viewer.