]> OCCT Git - occt.git/commitdiff
Coding - Initialize member variables with default values #362
authorPasukhin Dmitry <dpasukhi@opencascade.com>
Wed, 12 Feb 2025 14:26:00 +0000 (15:26 +0100)
committerGitHub <noreply@github.com>
Wed, 12 Feb 2025 14:26:00 +0000 (14:26 +0000)
Clang-tidy applying rule for cppcoreguidelines-pro-type-member-init.
Updated: TKernel and TKMath
Update constructor in some classes instead of direct initialization
Refactor Bnd_BoundSortBox and Bnd_Box constructors to initialize member variables directly

35 files changed:
src/BSplCLib/BSplCLib.cxx
src/BSplCLib/BSplCLib_2.cxx
src/BSplSLib/BSplSLib.cxx
src/Bnd/Bnd_BoundSortBox.cxx
src/Bnd/Bnd_Box.cxx
src/Bnd/Bnd_Box.hxx
src/Bnd/Bnd_OBB.cxx
src/CSLib/CSLib_Class2d.hxx
src/Convert/Convert_CompBezierCurves2dToBSplineCurve2d.cxx
src/Convert/Convert_CompBezierCurvesToBSplineCurve.cxx
src/Convert/Convert_ConicToBSplineCurve.cxx
src/Convert/Convert_ElementarySurfaceToBSplineSurface.cxx
src/FSD/FSD_BinaryFile.cxx
src/FSD/FSD_BinaryFile.hxx
src/NCollection/NCollection_AccAllocator.cxx
src/OSD/OSD_Chronometer.cxx
src/OSD/OSD_Error.hxx
src/Poly/Poly_CoherentTriangle.hxx
src/Quantity/Quantity_Date.cxx
src/Quantity/Quantity_Period.cxx
src/Resource/Resource_Manager.cxx
src/Standard/Standard_GUID.cxx
src/Standard/Standard_Real.cxx
src/TCollection/TCollection_ExtendedString.cxx
src/Units/Units_Explorer.hxx
src/math/math_DirectPolynomialRoots.hxx
src/math/math_DoubleTab.hxx
src/math/math_FunctionRoot.hxx
src/math/math_GaussLeastSquare.hxx
src/math/math_GaussSingleIntegration.hxx
src/math/math_GlobOptMin.hxx
src/math/math_Householder.cxx
src/math/math_Jacobi.cxx
src/math/math_KronrodSingleIntegration.cxx
src/math/math_Uzawa.cxx

index a681b7e82332be5d9adc529123279ec9fc08b9b3..e3b05909563a209802a59fa4ce3132d241c6921f 100644 (file)
@@ -64,7 +64,7 @@ public:
 private:
   // local buffer, to be sufficient for addressing by index [Degree+1][Degree+1]
   // (see math_Matrix implementation)
-  Standard_Real myBuffer[27 * 27];
+  Standard_Real myBuffer[27 * 27]{};
 };
 
 //=================================================================================================
index 01165fa2f245719e93d1536d0d64be8a76a69ae4..4cb55cf1c05b6afd2c2dc573132970cc3aba365a 100644 (file)
@@ -46,9 +46,9 @@ struct BSplCLib_DataContainer
                                  "BSplCLib: bspline degree is greater than maximum supported");
   }
 
-  Standard_Real poles[2 * (25 + 1)];
-  Standard_Real knots[2 * 25];
-  Standard_Real ders[4];
+  Standard_Real poles[2 * (25 + 1)]{};
+  Standard_Real knots[2 * 25]{};
+  Standard_Real ders[4]{};
 };
 
 // methods for 1 dimensional BSplines
index 4cb78c341698b4ffcedacc0cbc9ad4b4b9faf223..be821ff61c855f1113edffb27cb35cde74b9ea29 100644 (file)
@@ -54,10 +54,10 @@ struct BSplSLib_DataContainer
                                  "BSplSLib: bspline degree is greater than maximum supported");
   }
 
-  Standard_Real poles[4 * (25 + 1) * (25 + 1)];
-  Standard_Real knots1[2 * 25];
-  Standard_Real knots2[2 * 25];
-  Standard_Real ders[48];
+  Standard_Real poles[4 * (25 + 1) * (25 + 1)]{};
+  Standard_Real knots1[2 * 25]{};
+  Standard_Real knots2[2 * 25]{};
+  Standard_Real ders[48]{};
 };
 
 //**************************************************************************
index b879a9859ce4f6105b044a13ff9ba13e652b7dd5..28fedb1d6c95da7c241174378577d2d90916e5af 100644 (file)
@@ -418,15 +418,25 @@ void BSB_T3Bits::AppendAxisX(const Standard_Integer i, const Standard_Integer v)
   axisX[0][i] = n;
 }
 
-//=======================================================================
 //=================================================================================================
 
 Bnd_BoundSortBox::Bnd_BoundSortBox()
-    : discrX(0),
+    : myBox(),
+      myBndComponents(nullptr),
+      Xmin(0.),
+      Ymin(0.),
+      Zmin(0.),
+      deltaX(0.),
+      deltaY(0.),
+      deltaZ(0.),
+      discrX(0),
       discrY(0),
-      discrZ(0)
+      discrZ(0),
+      theFound(0),
+      Crible(),
+      lastResult(),
+      TabBits(0)
 {
-  TabBits = 0;
 #if DEBUG
   NBCOMPARE       = 0L;
   NBBOITES        = 0L;
index 1fef8b625c009949bfc606c83ff1a657fabaf135..366692a1781fd4df215576c53c600a492829c808 100644 (file)
 //=================================================================================================
 
 Bnd_Box::Bnd_Box()
+    // Equal to SetVoid();
     : Xmin(RealLast()),
       Xmax(-RealLast()),
       Ymin(RealLast()),
       Ymax(-RealLast()),
       Zmin(RealLast()),
       Zmax(-RealLast()),
-      Gap(0.0)
+      Gap(0.0),
+      Flags(VoidMask)
 {
-  SetVoid();
 }
 
 //=================================================================================================
 
 Bnd_Box::Bnd_Box(const gp_Pnt& theMin, const gp_Pnt& theMax)
-    : Gap(0.0)
+    // Equal to Update(theMin.X(), theMin.Y(), theMin.Z(), theMax.X(), theMax.Y(), theMax.Z());
+    : Xmin(theMin.X()),
+      Xmax(theMax.X()),
+      Ymin(theMin.Y()),
+      Ymax(theMax.Y()),
+      Zmin(theMin.Z()),
+      Zmax(theMax.Z()),
+      Gap(0.0),
+      Flags(0)
 {
-  SetVoid();
-  Update(theMin.X(), theMin.Y(), theMin.Z(), theMax.X(), theMax.Y(), theMax.Z());
 }
 
 //=================================================================================================
index 42a3b6a809cd22eb04c15e1272de1ea8b6d72000..8cc9848e2f8f07d413a2e829f1b09acfbef3b602 100644 (file)
@@ -83,8 +83,8 @@ public:
     Ymax  = -RealLast();
     Zmin  = RealLast();
     Zmax  = -RealLast();
-    Flags = VoidMask;
     Gap   = 0.0;
+    Flags = VoidMask;
   }
 
   //! Sets this bounding box so that it bounds
index 5199f43bb947004db15581f5d609e83540371fba..d3b5f28aa4bdcb0b5dc483103de9d1a26fa0622d 100644 (file)
@@ -358,7 +358,7 @@ private:
 
   //! Points of ditetrahedron
   //! given by their indices in myLExtremalPoints.
-  Standard_Integer myTriIdx[5];
+  Standard_Integer myTriIdx[5]{};
 
   //! List of extremal points
   gp_XYZ myLExtremalPoints[myNbExtremalPoints];
index 9b6d2edfaabf125deda514b6e4dc3a09c7524cbb..c97f11d01b6776aef43cedea85cb5c3501049730 100644 (file)
@@ -93,13 +93,13 @@ private:
   const CSLib_Class2d& operator=(const CSLib_Class2d& Other) const;
 
   NCollection_Handle<TColStd_Array1OfReal> MyPnts2dX, MyPnts2dY;
-  Standard_Real                            Tolu;
-  Standard_Real                            Tolv;
-  Standard_Integer                         N;
-  Standard_Real                            Umin;
-  Standard_Real                            Vmin;
-  Standard_Real                            Umax;
-  Standard_Real                            Vmax;
+  Standard_Real                            Tolu{};
+  Standard_Real                            Tolv{};
+  Standard_Integer                         N{};
+  Standard_Real                            Umin{};
+  Standard_Real                            Vmin{};
+  Standard_Real                            Umax{};
+  Standard_Real                            Vmax{};
 };
 
 #endif // _CSLib_Class2d_HeaderFile
index a3080a77dc44183ebf80df508d19f76e1c049cc3..140300b776531a917b97eb022cbfc11ecbe6182f 100644 (file)
@@ -26,7 +26,8 @@
 
 Convert_CompBezierCurves2dToBSplineCurve2d::Convert_CompBezierCurves2dToBSplineCurve2d(
   const Standard_Real AngularTolerance)
-    : myAngular(AngularTolerance),
+    : myDegree(0),
+      myAngular(AngularTolerance),
       myDone(Standard_False)
 {
 }
index 0cd095fd886fe9a53329a1bab95e9e2d2accbb55..2537075167ca521fec14a4380222ee0b2a46232c 100644 (file)
@@ -26,7 +26,8 @@
 
 Convert_CompBezierCurvesToBSplineCurve::Convert_CompBezierCurvesToBSplineCurve(
   const Standard_Real AngularTolerance)
-    : myAngular(AngularTolerance),
+    : myDegree(0),
+      myAngular(AngularTolerance),
       myDone(Standard_False)
 {
 }
index 22abb81446e60feeab58236c85b023a47b96209c..1ed3b4076c31aa17b78182811de0601c72590032 100644 (file)
@@ -39,7 +39,8 @@ Convert_ConicToBSplineCurve::Convert_ConicToBSplineCurve(const Standard_Integer
                                                          const Standard_Integer Degree)
     : degree(Degree),
       nbPoles(NbPoles),
-      nbKnots(NbKnots)
+      nbKnots(NbKnots),
+      isperiodic(Standard_False)
 
 {
   if (NbPoles >= 2)
index de89e436c85389498b57b98f60955257f06c879b..94078dcc8d291e2d83f2387803dd354b94df1bc9 100644 (file)
@@ -38,7 +38,9 @@ Convert_ElementarySurfaceToBSplineSurface::Convert_ElementarySurfaceToBSplineSur
       nbUPoles(NbUPoles),
       nbVPoles(NbVPoles),
       nbUKnots(NbUKnots),
-      nbVKnots(NbVKnots)
+      nbVKnots(NbVKnots),
+      isuperiodic(Standard_False),
+      isvperiodic(Standard_False)
 
 {
 }
index c8f7571b98fb14a185d68e7e790da35ddc14d7e0..79ad577a4b06213a20b27ae18bc0d64019590cb8 100644 (file)
@@ -456,7 +456,7 @@ Storage_Error FSD_BinaryFile::BeginWriteInfoSection()
   union {
     char             ti2[4];
     Standard_Integer aResult;
-  } aWrapUnion;
+  } aWrapUnion{};
 
   aWrapUnion.ti2[0] = 1;
   aWrapUnion.ti2[1] = 2;
@@ -619,7 +619,7 @@ void FSD_BinaryFile::ReadInfo(Standard_Integer&              nbObj,
 
 void FSD_BinaryFile::ReadCompleteInfo(Standard_IStream& theIStream, Handle(Storage_Data)& theData)
 {
-  FSD_FileHeader aHeaderPos;
+  FSD_FileHeader aHeaderPos{};
   ReadHeader(theIStream, aHeaderPos);
 
   if (theData.IsNull())
@@ -1678,7 +1678,7 @@ Standard_Real FSD_BinaryFile::InverseReal(const Standard_Real theValue)
   union {
     Standard_Integer i[2];
     Standard_Real    aValue;
-  } aWrapUnion;
+  } aWrapUnion{};
 
   aWrapUnion.aValue = theValue;
 
@@ -1701,7 +1701,7 @@ Standard_ShortReal FSD_BinaryFile::InverseShortReal(const Standard_ShortReal the
   union {
     Standard_ShortReal aValue;
     Standard_Integer   aResult;
-  } aWrapUnion;
+  } aWrapUnion{};
 
   aWrapUnion.aValue  = theValue;
   aWrapUnion.aResult = InverseInt(aWrapUnion.aResult);
@@ -1729,7 +1729,7 @@ inline uint64_t OCCT_InverseSizeSpecialized<8>(const uint64_t theValue, int)
   union {
     Standard_Integer i[2];
     uint64_t         aValue;
-  } aWrapUnion;
+  } aWrapUnion{};
 
   aWrapUnion.aValue = theValue;
 
index 3fb4d952c3afce7635afe6f4c20588c3ca81227d..a95f065e99032cba87918b280b9a4e36cc4f45f9 100644 (file)
@@ -372,7 +372,7 @@ private:
 
 private:
   FSD_BStream    myStream;
-  FSD_FileHeader myHeader;
+  FSD_FileHeader myHeader{};
 };
 
 #endif // _FSD_BinaryFile_HeaderFile
index 1a59fc9b7504abaf9c55455953fa6cb737937c63..6b56beb7254bb5f5bd4a6c7c925887088eb72b48 100644 (file)
@@ -86,7 +86,7 @@ void* NCollection_AccAllocator::Allocate(const size_t theSize)
 //=======================================================================
 void NCollection_AccAllocator::Free(void* theAddress)
 {
-  Key    aKey;
+  Key    aKey{};
   Block* aBlock = findBlock(theAddress, aKey);
 
 #if !defined No_Exception && !defined No_Standard_ProgramError
index a827c462c3ca23b448f76064ba031a5bcfc8702b..3ce7fb6e525ab1c0432c262e11e66893eb87c039 100644 (file)
@@ -56,7 +56,7 @@ void OSD_Chronometer::GetProcessCPU(Standard_Real& theUserSeconds, Standard_Real
   static const long aCLK_TCK = CLK_TCK;
   #endif
 
-  tms aCurrentTMS;
+  tms aCurrentTMS{};
   times(&aCurrentTMS);
 
   theUserSeconds   = (Standard_Real)aCurrentTMS.tms_utime / aCLK_TCK;
index 0cf2c452e61c5f554fd6e0164b8566ee0aa4d78b..ca63cbd7b5dfced4a99619afe08da3c3d391a582 100644 (file)
@@ -61,7 +61,7 @@ private:
   TCollection_AsciiString myMessage;
   Standard_Integer        myErrno;
   OSD_WhoAmI              myCode;
-  Standard_Integer        extCode;
+  Standard_Integer        extCode{};
 };
 
 #endif // _OSD_Error_HeaderFile
index 56f54e9fd52bb373bba15f234716855655a9af5f..ffad2f33a711b2d9e4fe49428d8f5236284d1cb0 100644 (file)
@@ -150,10 +150,10 @@ private:
   // ---------- PRIVATE FIELDS ----------
 
   Standard_Integer             myNConnections;
-  Standard_Integer             myNodes[3];
-  Standard_Integer             myNodesOnConnected[3];
-  const Poly_CoherentTriangle* mypConnected[3];
-  const Poly_CoherentLink*     mypLink[3];
+  Standard_Integer             myNodes[3]{};
+  Standard_Integer             myNodesOnConnected[3]{};
+  const Poly_CoherentTriangle* mypConnected[3]{};
+  const Poly_CoherentLink*     mypLink[3]{};
 
   friend class Poly_CoherentTriangulation;
 };
index 2ceb89d12dfb0f88703ea4d7210d9129f36ead12..bb60c726c359e3152935f0c07eb584b834038d62 100644 (file)
@@ -108,6 +108,8 @@ Quantity_Date::Quantity_Date(const Standard_Integer mm,
                              const Standard_Integer ss,
                              const Standard_Integer mis,
                              const Standard_Integer mics)
+    : mySec(0),
+      myUSec(0)
 {
 
   SetValues(mm, dd, yy, hh, mn, ss, mis, mics);
index 381c35deb5dd28f153837a829f88ecb387ee5fd2..9a4f4c202f0ea9f1196e33d81bc911b92ef88385 100644 (file)
@@ -66,6 +66,8 @@ Quantity_Period::Quantity_Period(const Standard_Integer dd,
                                  const Standard_Integer ss,
                                  const Standard_Integer mils,
                                  const Standard_Integer mics)
+    : mySec(0),
+      myUSec(0)
 {
 
   SetValues(dd, hh, mn, ss, mils, mics);
@@ -77,6 +79,8 @@ Quantity_Period::Quantity_Period(const Standard_Integer dd,
 //
 // -------------------------------------------------------------
 Quantity_Period::Quantity_Period(const Standard_Integer ss, const Standard_Integer mics)
+    : mySec(0),
+      myUSec(0)
 {
 
   SetValues(ss, mics);
index eebf96c45cd56f5959d06105b56dec0d50716f51..59fe8e4629153261eae65371496324ba814c7bcc 100644 (file)
@@ -135,7 +135,8 @@ Resource_Manager::Resource_Manager(const Standard_CString aName, const Standard_
 
 Resource_Manager::Resource_Manager()
     : myName(""),
-      myVerbose(Standard_False)
+      myVerbose(Standard_False),
+      myInitialized(Standard_False)
 {
 }
 
index b09f2719a3d2dc395a0990c7971bb308e0083f3c..faa2ba16a13bf39b75417868b1feffbd6a5526d3 100644 (file)
@@ -347,7 +347,7 @@ void Standard_GUID::ToExtString(const Standard_PExtCharacter aStrGuid) const
 
 Standard_UUID Standard_GUID::ToUUID() const
 {
-  Standard_UUID result;
+  Standard_UUID result{};
 
   result.Data1    = my32b;
   result.Data2    = my16b1;
index 9565d840c46656430d7a85f2c69a10d96b7fc316..024e380f3747c50216178633b89226e6553f6dbe 100644 (file)
@@ -145,7 +145,7 @@ union RealMap {
 //--------------------------------------------------------------------
 static int HardwareHighBitsOfDouble()
 {
-  RealMap MaxDouble;
+  RealMap MaxDouble{};
   MaxDouble.real = DBL_MAX;
   //=========================================================
   // representation of the max double in IEEE is
@@ -170,7 +170,7 @@ static int HardwareHighBitsOfDouble()
 //--------------------------------------------------------------------
 static int HardwareLowBitsOfDouble()
 {
-  RealMap MaxDouble;
+  RealMap MaxDouble{};
   MaxDouble.real = DBL_MAX;
   //=========================================================
   // representation of the max double in IEEE is
@@ -193,7 +193,7 @@ static const int LowBitsOfDouble  = HardwareLowBitsOfDouble();
 
 double NextAfter(const double x, const double y)
 {
-  RealMap res;
+  RealMap res{};
 
   res.real = x;
 
index 179ae5232e882064d6d054ecf28931bb0f303903..3ac022b5148b5272de361a225c890e5aaebdb959 100644 (file)
@@ -197,7 +197,7 @@ TCollection_ExtendedString::TCollection_ExtendedString(const Standard_Integer aV
   union {
     int  bid;
     char t[13];
-  } CHN;
+  } CHN{};
 
   Sprintf(&CHN.t[0], "%d", aValue);
   allocate((int)strlen(CHN.t));
@@ -213,7 +213,7 @@ TCollection_ExtendedString::TCollection_ExtendedString(const Standard_Real aValu
   union {
     int  bid;
     char t[50];
-  } CHN;
+  } CHN{};
 
   Sprintf(&CHN.t[0], "%g", aValue);
   allocate((int)strlen(CHN.t));
index d111a7fd69176851491379fbcef2b769f0f770be..2392686e843861c79f97126eef0b80b90d94f77b 100644 (file)
@@ -110,9 +110,9 @@ public:
 
 protected:
 private:
-  Standard_Integer                   thecurrentquantity;
+  Standard_Integer                   thecurrentquantity{};
   Handle(Units_QuantitiesSequence)   thequantitiessequence;
-  Standard_Integer                   thecurrentunit;
+  Standard_Integer                   thecurrentunit{};
   Handle(Units_UnitsSequence)        theunitssequence;
   Handle(TColStd_HSequenceOfInteger) theactiveunitssequence;
 };
index db84b03fbb41d2d0f5c950efcc91428fb628d91b..55f9a18180ae1015dc5f40bad145b175ccfb47e4 100644 (file)
@@ -96,8 +96,8 @@ protected:
 private:
   Standard_Boolean Done;
   Standard_Boolean InfiniteStatus;
-  Standard_Integer NbSol;
-  Standard_Real    TheRoots[4];
+  Standard_Integer NbSol{};
+  Standard_Real    TheRoots[4]{};
 };
 
 #include <math_DirectPolynomialRoots.lxx>
index b8204ed874201f977759346b65ce59b3d1f7bea5..2c6fc3b37e1adbc5c3a5ed78eb13b50219f0ae39 100644 (file)
@@ -66,7 +66,7 @@ private:
   Standard_EXPORT void Allocate();
 
   Standard_Address Addr;
-  Standard_Real    Buf[16];
+  Standard_Real    Buf[16]{};
   Standard_Boolean isAllocated;
   Standard_Integer LowR;
   Standard_Integer UppR;
index 5669812fbee466ff020531e4fd83bc669fd99c7a..9f4ed1ca45b48d1bfca1b56d23fa4f90dd0acbde 100644 (file)
@@ -88,7 +88,7 @@ protected:
 private:
   Standard_Boolean Done;
   Standard_Real    TheRoot;
-  Standard_Real    TheError;
+  Standard_Real    TheError{};
   Standard_Real    TheDerivative;
   Standard_Integer NbIter;
 };
index 79fea779f8758142a05c95e780934286d1a22210..00940456689162868f948df550aeb52cc88a18b3 100644 (file)
@@ -65,11 +65,11 @@ public:
   Standard_EXPORT void Dump(Standard_OStream& o) const;
 
 protected:
-  Standard_Boolean   Singular;
+  Standard_Boolean   Singular{};
   math_Matrix        LU;
   math_Matrix        A2;
   math_IntegerVector Index;
-  Standard_Real      D;
+  Standard_Real      D{};
 
 private:
   Standard_Boolean Done;
index 9d11219a3d0f01cf90d2320beb9a49e8d49c8f0c..05aa9ad22efc1857f08b3a4d6dba7d38d1b7fb10 100644 (file)
@@ -67,8 +67,8 @@ private:
                                const Standard_Real    Upper,
                                const Standard_Integer Order);
 
-  Standard_Real    Val;
-  Standard_Boolean Done;
+  Standard_Real    Val{};
+  Standard_Boolean Done{};
 };
 
 #include <math_GaussSingleIntegration.lxx>
index 11dbe59de6dc94b6418892ef33c56d055b306dfa..fce2741644db4ccd04cbbbbc5de79cd6bca2e973 100644 (file)
@@ -248,19 +248,19 @@ private:
 
   // Algorithm data.
   Standard_Real myZ;
-  Standard_Real myE1; // Border coefficient.
-  Standard_Real myE2; // Minimum step size.
-  Standard_Real myE3; // Local extrema starting parameter.
+  Standard_Real myE1{}; // Border coefficient.
+  Standard_Real myE2{}; // Minimum step size.
+  Standard_Real myE3{}; // Local extrema starting parameter.
 
-  math_Vector   myX;        // Current modified solution.
-  math_Vector   myTmp;      // Current modified solution.
-  math_Vector   myV;        // Steps array.
-  math_Vector   myMaxV;     // Max Steps array.
-  Standard_Real myLastStep; // Last step.
+  math_Vector   myX;          // Current modified solution.
+  math_Vector   myTmp;        // Current modified solution.
+  math_Vector   myV;          // Steps array.
+  math_Vector   myMaxV;       // Max Steps array.
+  Standard_Real myLastStep{}; // Last step.
 
   NCollection_Array1<Standard_Real>                        myCellSize;
   Standard_Integer                                         myMinCellFilterSol;
-  Standard_Boolean                                         isFirstCellFilterInvoke;
+  Standard_Boolean                                         isFirstCellFilterInvoke{};
   NCollection_CellFilter<NCollection_CellFilter_Inspector> myFilter;
 
   // Continuity of local borders.
index 539e1e36e00bac6ccaf6ef33e8d52107e825d143..74a9b1e2a504f09d1f80a30b73ef05715fecb3e2 100644 (file)
@@ -39,7 +39,8 @@ math_Householder::math_Householder(const math_Matrix&  A,
                                    const math_Vector&  B,
                                    const Standard_Real EPS)
     : Sol(1, A.ColNumber(), 1, 1),
-      Q(1, A.RowNumber(), 1, A.ColNumber())
+      Q(1, A.RowNumber(), 1, A.ColNumber()),
+      Done(Standard_False)
 {
 
   mylowerArow = A.LowerRow();
@@ -55,7 +56,8 @@ math_Householder::math_Householder(const math_Matrix&  A,
                                    const math_Matrix&  B,
                                    const Standard_Real EPS)
     : Sol(1, A.ColNumber(), 1, B.ColNumber()),
-      Q(1, A.RowNumber(), A.LowerCol(), A.UpperCol())
+      Q(1, A.RowNumber(), A.LowerCol(), A.UpperCol()),
+      Done(Standard_False)
 {
 
   mylowerArow = A.LowerRow();
@@ -73,7 +75,8 @@ math_Householder::math_Householder(const math_Matrix&     A,
                                    const Standard_Integer upperAcol,
                                    const Standard_Real    EPS)
     : Sol(1, upperAcol - lowerAcol + 1, 1, B.ColNumber()),
-      Q(1, upperArow - lowerArow + 1, 1, upperAcol - lowerAcol + 1)
+      Q(1, upperArow - lowerArow + 1, 1, upperAcol - lowerAcol + 1),
+      Done(Standard_False)
 {
   mylowerArow = lowerArow;
   myupperArow = upperArow;
index 32b7535097154c375f3a6c553245b5f782f14638..5a89d939e7a16c63cd06cea603478c09c101a82b 100644 (file)
@@ -25,7 +25,9 @@
 #include <math_Recipes.hxx>
 
 math_Jacobi::math_Jacobi(const math_Matrix& A)
-    : AA(1, A.RowNumber(), 1, A.RowNumber()),
+    : Done(Standard_False),
+      AA(1, A.RowNumber(), 1, A.RowNumber()),
+      NbRotations(0),
       EigenValues(1, A.RowNumber()),
       EigenVectors(1, A.RowNumber(), 1, A.RowNumber())
 {
index ebf74ab1efd48f6bfc7807e74feb37025df23993..6ae2231e6b2e5e098fe667bc758d351e746b0d50 100644 (file)
@@ -26,6 +26,7 @@ math_KronrodSingleIntegration::math_KronrodSingleIntegration()
     : myIsDone(Standard_False),
       myValue(0.),
       myErrorReached(0.),
+      myAbsolutError(0.),
       myNbPntsReached(0),
       myNbIterReached(0)
 {
@@ -43,7 +44,9 @@ math_KronrodSingleIntegration::math_KronrodSingleIntegration(math_Function&
     : myIsDone(Standard_False),
       myValue(0.),
       myErrorReached(0.),
-      myNbPntsReached(0)
+      myAbsolutError(0.),
+      myNbPntsReached(0),
+      myNbIterReached(0)
 {
   Perform(theFunction, theLower, theUpper, theNbPnts);
 }
@@ -62,7 +65,9 @@ math_KronrodSingleIntegration::math_KronrodSingleIntegration(math_Function&
     : myIsDone(Standard_False),
       myValue(0.),
       myErrorReached(0.),
-      myNbPntsReached(0)
+      myAbsolutError(0.),
+      myNbPntsReached(0),
+      myNbIterReached(0)
 {
   Perform(theFunction, theLower, theUpper, theNbPnts, theTolerance, theMaxNbIter);
 }
index b427a87db8bb406102be330dce2a6215b8647271..82762afa715e1908e80c29a9c1b51a25e0848400 100644 (file)
@@ -46,7 +46,9 @@ math_Uzawa::math_Uzawa(const math_Matrix&     Cont,
       Erruza(1, Cont.ColNumber()),
       Errinit(1, Cont.ColNumber()),
       Vardua(1, Cont.RowNumber()),
-      CTCinv(1, Cont.RowNumber(), 1, Cont.RowNumber())
+      CTCinv(1, Cont.RowNumber(), 1, Cont.RowNumber()),
+      NbIter(0),
+      Done(Standard_False)
 {
 
   Perform(Cont, Secont, StartingPoint, Cont.RowNumber(), 0, EpsLix, EpsLic, NbIterations);
@@ -64,7 +66,9 @@ math_Uzawa::math_Uzawa(const math_Matrix&     Cont,
       Erruza(1, Cont.ColNumber()),
       Errinit(1, Cont.ColNumber()),
       Vardua(1, Cont.RowNumber()),
-      CTCinv(1, Cont.RowNumber(), 1, Cont.RowNumber())
+      CTCinv(1, Cont.RowNumber(), 1, Cont.RowNumber()),
+      NbIter(0),
+      Done(Standard_False)
 {
 
   Perform(Cont, Secont, StartingPoint, Nce, Nci, EpsLix, EpsLic, NbIterations);