()
| 263 | } |
| 264 | |
| 265 | @Override |
| 266 | public String toString() { |
| 267 | StringBuilder sb = new StringBuilder(); |
| 268 | sb.append('['); |
| 269 | if (dims.length > 3) { |
| 270 | sb.append(dims.length); |
| 271 | sb.append('D'); |
| 272 | } else { |
| 273 | sb.append(dims[0]); |
| 274 | sb.append('x'); |
| 275 | sb.append(dims[1]); |
| 276 | if (dims.length == 3) { |
| 277 | sb.append('x'); |
| 278 | sb.append(dims[2]); |
| 279 | } |
| 280 | } |
| 281 | sb.append(" "); |
| 282 | sb.append(typeToString(type)); |
| 283 | if (isLogical()) { |
| 284 | sb.append(" (logical)"); |
| 285 | } |
| 286 | sb.append(" array"); |
| 287 | if (isSparse()) { |
| 288 | sb.append(" (sparse"); |
| 289 | if (isComplex()) { |
| 290 | sb.append(" complex"); |
| 291 | } |
| 292 | sb.append(")"); |
| 293 | } else if (isComplex()) { |
| 294 | sb.append(" (complex)"); |
| 295 | } |
| 296 | sb.append(']'); |
| 297 | return sb.toString(); |
| 298 | } |
| 299 | |
| 300 | public String contentToString() { |
| 301 | return "content cannot be displayed"; |
no test coverage detected