Alters this vector such that this = this + c This method should be overloaded for a serious implementation. @param c a scalar constant to add to each value in this vector
(double c)
| 288 | * @param c a scalar constant to add to each value in this vector |
| 289 | */ |
| 290 | public void mutableAdd(double c) |
| 291 | { |
| 292 | for(int i = 0; i < length(); i++) |
| 293 | increment(i, c); |
| 294 | } |
| 295 | /** |
| 296 | * Alters this vector such that |
| 297 | * <tt>this</tt> = <tt>this</tt> + <tt>c</tt> * <tt>b</tt> |