for debugging: for printing matrices to the console DELETE LATER */
| 520 | for printing matrices to the console |
| 521 | DELETE LATER */ |
| 522 | void printMatrix(const matrix m) |
| 523 | { |
| 524 | int rr = MATROWS(m); int cc = MATCOLS(m); |
| 525 | printf("\n-------------\n"); |
| 526 | for (int r = 1; r <= rr; r++) |
| 527 | { |
| 528 | for (int c = 1; c <= cc; c++) |
| 529 | printf("%s ", pString(MATELEM(m, r, c))); |
| 530 | printf("\n"); |
| 531 | } |
| 532 | printf("-------------\n"); |
| 533 | } |
| 534 | |
| 535 | /** |
| 536 | * Creates a new complex number from real and imaginary parts given |