Mutates this by dividing each value by the value in b that has the same index This method should be overloaded for a serious implementation. @param b the vector to pairwise divide by
(Vec b)
| 395 | * @param b the vector to pairwise divide by |
| 396 | */ |
| 397 | public void mutablePairwiseDivide(Vec b) |
| 398 | { |
| 399 | if(length() != b.length()) |
| 400 | throw new ArithmeticException("Vector lengths do not agree " + length() + " vs " + b.length()); |
| 401 | for(int i = 0; i < length(); i++) |
| 402 | set(i, get(i)/b.get(i)); |
| 403 | } |
| 404 | |
| 405 | /** |
| 406 | * Mutates {@code this /= c} |