(Vec grad)
| 197 | } |
| 198 | |
| 199 | private double gradConvgHelper(Vec grad) |
| 200 | { |
| 201 | if(!inftNormCriterion) |
| 202 | return grad.pNorm(2); |
| 203 | double max = 0; |
| 204 | for(IndexValue iv : grad) |
| 205 | max = Math.max(max, Math.abs(iv.getValue())); |
| 206 | return max; |
| 207 | } |
| 208 | |
| 209 | /** |
| 210 | * Sets the number of history items to keep that are used to approximate the |