mirror of
				https://github.com/aportelli/LatAnalyze.git
				synced 2025-10-30 22:34:32 +00:00 
			
		
		
		
	XYStatData: conservative resizing is useless
This commit is contained in:
		| @@ -64,24 +64,23 @@ XYStatData::XYStatData(const Index nData, const Index xDim, const Index yDim) | |||||||
| // access ////////////////////////////////////////////////////////////////////// | // access ////////////////////////////////////////////////////////////////////// | ||||||
| void XYStatData::resize(const Index nData, const Index xDim, const Index yDim) | void XYStatData::resize(const Index nData, const Index xDim, const Index yDim) | ||||||
| { | { | ||||||
|     x_.conservativeResize(nData, xDim); |     FitInterface::resize(nData, xDim, yDim); | ||||||
|     y_.conservativeResize(nData, yDim); |     x_.resize(nData, xDim); | ||||||
|     isXExact_.conservativeResize(xDim); |     y_.resize(nData, yDim); | ||||||
|     isFitPoint_.conservativeResize(nData); |     var_[xx].resize(xDim, xDim); | ||||||
|     var_[xx].conservativeResize(xDim, xDim); |     var_[yy].resize(yDim, yDim); | ||||||
|     var_[yy].conservativeResize(yDim, yDim); |     var_[yx].resize(yDim, xDim); | ||||||
|     var_[yx].conservativeResize(yDim, xDim); |  | ||||||
|     FOR_MAT(var_[xx], i1, i2) |     FOR_MAT(var_[xx], i1, i2) | ||||||
|     { |     { | ||||||
|         var_[xx](i1, i2).conservativeResize(nData, nData); |         var_[xx](i1, i2).resize(nData, nData); | ||||||
|     } |     } | ||||||
|     FOR_MAT(var_[yy], j1, j2) |     FOR_MAT(var_[yy], j1, j2) | ||||||
|     { |     { | ||||||
|         var_[yy](j1, j2).conservativeResize(nData, nData); |         var_[yy](j1, j2).resize(nData, nData); | ||||||
|     } |     } | ||||||
|     FOR_MAT(var_[yx], j, i) |     FOR_MAT(var_[yx], j, i) | ||||||
|     { |     { | ||||||
|         var_[yx](j, i).conservativeResize(nData, nData); |         var_[yx](j, i).resize(nData, nData); | ||||||
|     } |     } | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user