/src/main/java/net/finmath/marketdata/model/curves/locallinearregression/CurveEstimation.java
final DoubleMatrix matrixDefine= DoubleMatrix.ones( partition.getIntervalLength( i) -1) ;
final DoubleMatrix matrixDefine= DoubleMatrix.ones ( partition.getLength ( ) -1 ) ;
partitionAsVector.getRange(0, partitionAsVector.length-1).neg().add(independentValues[i]) .mul(kernelValues).add( partitionIncrements.getRange(1, partitionIncrements.length) .mul(kernelSum.getRange(1, kernelSum.length)))); } final DoubleMatrix partitionIncrementMatrix= new DoubleMatrix(partition.getLength()-1,partition.getLength()-1); <extra_id_0> for(int m=0;m<matrixDefine.length-1;m++) { matrixDefine.put(m, 0); partitionIncrementMatrix.putColumn(m, matrixDefine.mul(partitionIncrements.get(m+1))); } MSubMatrix=partitionIncrementMatrix.mulColumnVector(MSubMatrixSum); MSubMatrix=MSubMatrix.add(MSubMatrix.transpose()).add(DoubleMatrix.diag(MSubDiagonal));