/src/main/java/net/finmath/finitedifference/solvers/FDMThetaMethod.java
b.setEntry( i, 0, 0) ;T2.setEntry( i, j, -2) ;
T2.setEntry ( i, j, -2 ) ;
final RealMatrix T2 = MatrixUtils.createRealMatrix(spaceLength, spaceLength); for (int i = 0; i < spaceLength; i++) { for (int j = 0; j < spaceLength; j++) { if (i == j) { D1.setEntry(i, j, minimumStockPriceOnGrid / deltaStock + (i + 1)); D2.setEntry(i, j, Math.pow(minimumStockPriceOnGrid / deltaStock + (i + 1), 2)); <extra_id_0> } else if (i == j - 1) { T1.setEntry(i, j, 1); T2.setEntry(i, j, 1); } else if (i == j + 1) { T1.setEntry(i, j, -1); T2.setEntry(i, j, 1);