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

Function IsMatrix

ppcc/adlib/bitset.cc:113–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113bool IsMatrix(BitMatrix *mat) {
114 if (mat->len() != 0 && mat->at(0)->len() == 0)
115 return false;
116 for (Int i = 1; i < mat->len(); i++) {
117 if (mat->at(i - 1)->len() != mat->at(i)->len()) {
118 return false;
119 }
120 }
121 return true;
122}
123
124BitMatrix *Transpose(BitMatrix *mat) {
125 require(IsMatrix(mat), "not a proper matrix");

Callers 2

TransposeFunction · 0.85
TransitiveClosureFunction · 0.85

Calls 2

lenMethod · 0.45
atMethod · 0.45

Tested by

no test coverage detected