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

Function swapColumns

kernel/linear_algebra/linearAlgebra.cc:793–803  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

791}
792
793void swapColumns(int column1, int column2, matrix& aMat)
794{
795 poly p;
796 int rr = MATROWS(aMat);
797 for (int r = 1; r <= rr; r++)
798 {
799 p = MATELEM(aMat, r, column1);
800 MATELEM(aMat, r, column1) = MATELEM(aMat, r, column2);
801 MATELEM(aMat, r, column2) = p;
802 }
803}
804
805void matrixBlock(const matrix aMat, const matrix bMat, matrix &block)
806{

Callers 3

hessenbergFunction · 0.85
mpTrafoFunction · 0.85
lduDecompFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected