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

Function iiStringMatrix

libpolys/polys/matpol.cc:848–871  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

846}
847
848char * iiStringMatrix(matrix im, int dim, const ring r, char ch)
849{
850 int i,ii = MATROWS(im);
851 int j,jj = MATCOLS(im);
852 poly *pp = im->m;
853 char ch_s[2];
854 ch_s[0]=ch;
855 ch_s[1]='\0';
856
857 StringSetS("");
858
859 for (i=0; i<ii; i++)
860 {
861 for (j=0; j<jj; j++)
862 {
863 p_String0(*pp++, r);
864 StringAppendS(ch_s);
865 if (dim > 1) StringAppendS("\n");
866 }
867 }
868 char *s=StringEndS();
869 s[strlen(s)- (dim > 1 ? 2 : 1)]='\0';
870 return s;
871}
872
873void mp_Delete(matrix* a, const ring r)
874{

Callers 3

StringMethod · 0.85
DumpNCringFunction · 0.85
DumpQringFunction · 0.85

Calls 4

StringSetSFunction · 0.85
StringAppendSFunction · 0.85
StringEndSFunction · 0.85
p_String0Function · 0.70

Tested by

no test coverage detected