Skip to content

Commit

Permalink
Some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
deseilligny committed Jan 21, 2025
1 parent 7b179cb commit fb7f24a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion MMVII/include/MMVII_SysSurR.h
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ template <class Type> class cInputOutputRSNL
tStdVect mWeights; ///< Weights of eq, size can equal mVals or be 1 (cste) or 0 (all 1.0)
tStdVect mVals; ///< values of fctr, i.e. residuals
std::vector<tStdVect> mDers; ///< derivate of fctr
size_t mNbTmpUk;
size_t mNbTmpUk; ///< number of tmp unknown, computed at init

// use a s converter from tREAL8, "Fake" is used to separate from copy construtcor when Type == tREAL8
cInputOutputRSNL(bool Fake,const cInputOutputRSNL<tREAL8> &);
Expand Down
3 changes: 2 additions & 1 deletion MMVII/src/Matrix/cResolSysNonLinear.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -388,9 +388,10 @@ template <class Type> void cResolSysNonLinear<Type>::AddObservationLinear
{
SetPhaseEq();
Type aNewRHS = aRHS;
cSparseVect<Type> aNewCoeff;
cSparseVect<Type> aNewCoeff; // we make a copy because SubstituteInSparseLinearEquation modify aCoeff

#if (WithNewLinearCstr)
// Coef . X =Rhs Coef(X-X0) = R - Coeff.(X0)
for (const auto & aPair :aCoeff)
{
aNewRHS -= mCurGlobSol(aPair.mInd) * aPair.mVal;
Expand Down

0 comments on commit fb7f24a

Please sign in to comment.