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

Function iiWriteMatrix

libpolys/polys/matpol.cc:827–846  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

825}
826
827void iiWriteMatrix(matrix im, const char *n, int dim, const ring r, int spaces)
828{
829 int i,ii = MATROWS(im)-1;
830 int j,jj = MATCOLS(im)-1;
831 poly *pp = im->m;
832
833 for (i=0; i<=ii; i++)
834 {
835 for (j=0; j<=jj; j++)
836 {
837 if (spaces>0)
838 Print("%-*.*s",spaces,spaces," ");
839 if (dim == 2) Print("%s[%u,%u]=",n,i+1,j+1);
840 else if (dim == 1) Print("%s[%u]=",n,j+1);
841 else if (dim == 0) Print("%s=",n);
842 if ((i<ii)||(j<jj)) p_Write(*pp++, r);
843 else p_Write0(*pp, r);
844 }
845 }
846}
847
848char * iiStringMatrix(matrix im, int dim, const ring r, char ch)
849{

Callers 7

clapsing.ccFile · 0.85
nc_CallPluralFunction · 0.85
sca_SetupQuotientFunction · 0.85
rWriteFunction · 0.85
PrintMethod · 0.85
completeReduceFacFunction · 0.85
bbafacFunction · 0.85

Calls 3

p_WriteFunction · 0.70
p_Write0Function · 0.70
PrintFunction · 0.50

Tested by

no test coverage detected