MCPcopy Create free account
hub / github.com/Singular/Singular / printMatrix

Function printMatrix

kernel/linear_algebra/linearAlgebra.cc:522–533  ·  view source on GitHub ↗

for debugging: for printing matrices to the console DELETE LATER */

Source from the content-addressed store, hash-verified

520 for printing matrices to the console
521 DELETE LATER */
522void 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

Callers

nothing calls this directly

Calls 1

pStringFunction · 0.85

Tested by

no test coverage detected