Gets column indices. jc points to an integer array of length N+1 that contains column index information. For j, in the range 0<=j<=N , jc[j] is the index in ir and pr (and pi if it exists) of the first nonzero entry in the jth column and jc[j+1]
()
| 92 | * @return |
| 93 | */ |
| 94 | public int[] getJC() { |
| 95 | int[] jc = new int[getN() + 1]; |
| 96 | // jc[j] is the number of nonzero elements in all preceeding columns |
| 97 | for (IndexMN index : indexSet) { |
| 98 | for (int column = index.n + 1; column < jc.length; column++) { |
| 99 | jc[column]++; |
| 100 | } |
| 101 | } |
| 102 | return jc; |
| 103 | } |
| 104 | |
| 105 | @Override |
| 106 | public Double getReal(int m, int n) { |
no test coverage detected