@return the number of NaNs present in this vector
()
| 39 | * @return the number of NaNs present in this vector |
| 40 | */ |
| 41 | public int countNaNs() |
| 42 | { |
| 43 | int nans = 0; |
| 44 | for(IndexValue iv : this) |
| 45 | if(Double.isNaN(iv.getValue())) |
| 46 | nans++; |
| 47 | return nans; |
| 48 | } |
| 49 | |
| 50 | /** |
| 51 | * Indicates whether or not this vector can be mutated. If |
no test coverage detected