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

Function swapRows

kernel/linear_algebra/linearAlgebra.cc:781–791  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

779}
780
781void swapRows(int row1, int row2, matrix& aMat)
782{
783 poly p;
784 int cc = MATCOLS(aMat);
785 for (int c = 1; c <= cc; c++)
786 {
787 p = MATELEM(aMat, row1, c);
788 MATELEM(aMat, row1, c) = MATELEM(aMat, row2, c);
789 MATELEM(aMat, row2, c) = p;
790 }
791}
792
793void swapColumns(int column1, int column2, matrix& aMat)
794{

Callers 4

reduceMethod · 0.85
hessenbergFunction · 0.85
mpTrafoFunction · 0.85
lduDecompFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected