slow operation assumes the two x's are the same @param o
(final VEval o)
| 49 | * @param o |
| 50 | */ |
| 51 | public void add(final VEval o) { |
| 52 | final int dim = x.length; |
| 53 | fx += o.fx; |
| 54 | if(gx!=null) { |
| 55 | for(int i=0;i<dim;++i) { |
| 56 | gx[i] += o.gx[i]; |
| 57 | } |
| 58 | } |
| 59 | if(hx!=null) { |
| 60 | for(int i=0;i<dim;++i) { |
| 61 | for(int j=0;j<dim;++j) { |
| 62 | hx[i][j] += o.hx[i][j]; |
| 63 | } |
| 64 | } |
| 65 | } |
| 66 | } |
| 67 | } |
no outgoing calls