SMA--;
const Standard_Real * PM = &ProfileMatrix->Value(1);
PM--;
-
+ IsDecomp = Standard_False;
for(j = 1; j <= RowNumber(); j++) {
DiagAddr = profile(2, j);
Kj = j - profile(1, j);
a = PM[DiagAddr] - Sum;
if(a < Eps) {
- return IsDecomp = Standard_False;// Matrix is not positive defined
+ return Standard_False;// Matrix is not positive defined
}
a = Sqrt(a);
SMA[DiagAddr] = a;
SMA[CurrAddr] = (PM[CurrAddr] - Sum)/a;
}
}
- return IsDecomp = Standard_True;
+ IsDecomp = Standard_True;
+ return IsDecomp;
}
//=======================================================================
{
anAttachOptions.SetAdjustSize (Draw::ParseOnOffNoIterator (theArgsNb, theArgVec, anArgIter) ? 1 : 0);
}
- else if (anArg == "-enablemodes"
- || anArg == "-enablemodes")
+ else if (anArg == "-enablemodes")
{
anAttachOptions.SetEnableModes (Draw::ParseOnOffNoIterator (theArgsNb, theArgVec, anArgIter) ? 1 : 0);
}