Returns the index of the last non-zero value, or -1 if all values are zero. @return the index of the last non-zero value, or -1 if all values are zero.
()
| 318 | * @return the index of the last non-zero value, or -1 if all values are zero. |
| 319 | */ |
| 320 | public int getLastNonZeroIndex() |
| 321 | { |
| 322 | if(used == 0) |
| 323 | return -1; |
| 324 | return indexes[used-1]; |
| 325 | } |
| 326 | |
| 327 | @Override |
| 328 | public double min() |