Computes the number of non zero values in this vector @return the number of non zero values stored
()
| 88 | * @return the number of non zero values stored |
| 89 | */ |
| 90 | public int nnz() |
| 91 | { |
| 92 | int nnz = 0; |
| 93 | for(IndexValue i : this) |
| 94 | nnz++; |
| 95 | return nnz; |
| 96 | } |
| 97 | |
| 98 | /** |
| 99 | * Gets the value stored at a specific index in the vector |
no outgoing calls