Mutates this vector to be normalized by the L 2 norm
()
| 686 | * Mutates this vector to be normalized by the L<sub>2</sub> norm |
| 687 | */ |
| 688 | public void normalize() |
| 689 | { |
| 690 | mutableDivide(Math.max(pNorm(2.0), 1e-10)); |
| 691 | } |
| 692 | |
| 693 | /** |
| 694 | * Applies the given function to each and every value in the vector. |