Example: Replace array with its square:
IndexIterator iter = A.getIndexIterator(); while (iter.hasNext()) { double val = iter.getDoubleNext(); iter.setDoubleCurrent( val * val); } Note that canonical order may not be physical order.
@author caron
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |