X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flinal%2Fmatrix.h;h=599c1dc604a35517f82a9cead6c9ae25e79fb140;hb=adb812a194961d542dcb0abd61258cbc8723ecd9;hp=83a64f50dd767ff1497804378be48160e8691ed0;hpb=03f70f6ba9622bb2840a14fc50ac72201cc533b5;p=libs%2Fmath.git diff --git a/source/linal/matrix.h b/source/linal/matrix.h index 83a64f5..599c1dc 100644 --- a/source/linal/matrix.h +++ b/source/linal/matrix.h @@ -8,7 +8,7 @@ namespace Msp { namespace LinAl { /** -A general mathematical matrix. +A general mathematical matrix with M rows and N columns. */ template class Matrix @@ -189,8 +189,9 @@ inline bool operator==(const Matrix &a, const Matrix &b) template inline Matrix &Matrix::exchange_rows(unsigned i, unsigned j) { + using std::swap; for(unsigned k=0; k