(Vec grad)
| 160 | } |
| 161 | |
| 162 | private double gradConvgHelper(Vec grad) |
| 163 | { |
| 164 | if(!inftNormCriterion) |
| 165 | return grad.pNorm(2); |
| 166 | double max = 0; |
| 167 | for(IndexValue iv : grad) |
| 168 | max = Math.max(max, Math.abs(iv.getValue())); |
| 169 | return max; |
| 170 | } |
| 171 | |
| 172 | @Override |
| 173 | public void setMaximumIterations(int iterations) |