X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flinal%2Fmatrix.h;h=f18eb2f4cfb52504214b84015688e46d0d7be121;hb=77edbd42b918f3448ab4004dfe96b8a96621c348;hp=83a64f50dd767ff1497804378be48160e8691ed0;hpb=03f70f6ba9622bb2840a14fc50ac72201cc533b5;p=libs%2Fmath.git diff --git a/source/linal/matrix.h b/source/linal/matrix.h index 83a64f5..f18eb2f 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 @@ -68,6 +68,7 @@ inline Matrix Matrix::from_columns(const Vector *v) for(unsigned i=0; i @@ -77,6 +78,7 @@ inline Matrix Matrix::from_rows(const Vector *v) for(unsigned i=0; i @@ -189,8 +191,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