We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1639cab commit 915b8e4Copy full SHA for 915b8e4
Modules/Numerics/Optimizersv4/include/itkQuasiNewtonOptimizerv4.h
@@ -151,8 +151,11 @@ class ITK_TEMPLATE_EXPORT QuasiNewtonOptimizerv4Template
151
/** The Hessian with local support */
152
HessianArrayType m_HessianArray;
153
154
- /** Valid flag for the Quasi-Newton steps */
155
- std::vector<bool> m_NewtonStepValidFlags;
+ /** Valid flag for the Quasi-Newton steps.
+ * NB: although semantically boolean, vector<bool> is not thread safe due to the possibility of multiple bits being
156
+ * packed together in the same memory location.
157
+ */
158
+ std::vector<uint8_t> m_NewtonStepValidFlags;
159
160
/** Estimate a Newton step */
161
virtual void
0 commit comments