From: fred Date: Fri, 6 Dec 1996 00:27:05 +0000 (+0000) Subject: flower-1.0.12 X-Git-Tag: release/1.5.59~6651 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=33f352e457ed977304662850a3b303a97faf0081;p=lilypond.git flower-1.0.12 --- diff --git a/flower/matrix.cc b/flower/matrix.cc index b95a4ab1f9..63bd85a33c 100644 --- a/flower/matrix.cc +++ b/flower/matrix.cc @@ -9,24 +9,6 @@ Matrix::norm() const return sqrt(r); } -//inline -Real -Matrix::operator()(int i,int j) const -{ - assert(i >= 0 && j >= 0); - assert(i < rows() && j < cols()); - return dat->elem(i,j); -} - -//inline -Real & -Matrix::operator()(int i, int j) -{ - assert(i >= 0 && j >= 0); - assert(i < rows() && j < cols()); - return dat->elem(i,j); -} - void Matrix::fill(Real r) { diff --git a/flower/matrix.hh b/flower/matrix.hh index e092a5fbe6..5283dc71ef 100644 --- a/flower/matrix.hh +++ b/flower/matrix.hh @@ -35,7 +35,7 @@ public: void unit() { set_diag(1.0); } void operator+=(const Matrix&m); - void operator-=(const Matrix&m); + void operator-=(const Matrix&m); void operator*=(Real a); void operator/=(Real a) { (*this) *= 1/a; } @@ -74,10 +74,10 @@ public: void operator=(const Matrix&m); /// access an element - Real operator()(int i,int j) const; + Real operator()(int i,int j) const { return dat->elem(i,j); } /// access an element - Real &operator()(int i, int j); + Real &operator()(int i, int j) { return dat->elem(i,j); } /// Matrix multiply with vec (from right) Vector operator *(const Vector &v) const;