Returns the imaginary part (PI) array. PI has length number-of-nonzero-values. @return
()
| 206 | * @return |
| 207 | */ |
| 208 | public Double[] exportImaginary() { |
| 209 | Double[] ad = new Double[indexSet.size()]; |
| 210 | int i = 0; |
| 211 | for (IndexMN index : indexSet) { |
| 212 | if (imaginary.containsKey(index)) { |
| 213 | ad[i] = imaginary.get(index); |
| 214 | } else { |
| 215 | ad[i] = Zeros.DOUBLE; |
| 216 | } |
| 217 | i++; |
| 218 | } |
| 219 | return ad; |
| 220 | } |
| 221 | |
| 222 | /* (non-Javadoc) |
| 223 | * @see com.paradigmdesigner.matlab.types.MLArray#contentToString() |
no test coverage detected