# HG changeset patch # User jwe # Date 1051127518 0 # Node ID f1fcc371e5efa867a5a7daed60b506cb54853147 # Parent 26f74e9fd8a5dc838b4c6c5f9079cd7f0b95acb4 [project @ 2003-04-23 19:51:57 by jwe] diff -r 26f74e9fd8a5 -r f1fcc371e5ef liboctave/CMatrix.cc --- a/liboctave/CMatrix.cc Tue Apr 22 19:10:40 2003 +0000 +++ b/liboctave/CMatrix.cc Wed Apr 23 19:51:58 2003 +0000 @@ -1034,7 +1034,7 @@ } ComplexMatrix -ComplexMatrix::pseudo_inverse (double tol) +ComplexMatrix::pseudo_inverse (double tol) const { ComplexMatrix retval; diff -r 26f74e9fd8a5 -r f1fcc371e5ef liboctave/CMatrix.h --- a/liboctave/CMatrix.h Tue Apr 22 19:10:40 2003 +0000 +++ b/liboctave/CMatrix.h Wed Apr 23 19:51:58 2003 +0000 @@ -143,7 +143,7 @@ ComplexMatrix inverse (int& info, double& rcond, int force = 0, int calc_cond = 1) const; - ComplexMatrix pseudo_inverse (double tol = 0.0); + ComplexMatrix pseudo_inverse (double tol = 0.0) const; ComplexMatrix fourier (void) const; ComplexMatrix ifourier (void) const; diff -r 26f74e9fd8a5 -r f1fcc371e5ef liboctave/ChangeLog --- a/liboctave/ChangeLog Tue Apr 22 19:10:40 2003 +0000 +++ b/liboctave/ChangeLog Wed Apr 23 19:51:58 2003 +0000 @@ -1,3 +1,8 @@ +2003-04-23 John W. Eaton + + * dMatrix.cc (Matrix::pseudo_inverse): Now const. + * CMatrix.cc (ComplexMatrix::pseudo_inverse): Likewise. + 2003-04-18 John W. Eaton * getopt.c, getopt1.c, getopt.h: Move here from kpathsea. diff -r 26f74e9fd8a5 -r f1fcc371e5ef liboctave/dMatrix.cc --- a/liboctave/dMatrix.cc Tue Apr 22 19:10:40 2003 +0000 +++ b/liboctave/dMatrix.cc Wed Apr 23 19:51:58 2003 +0000 @@ -701,7 +701,7 @@ } Matrix -Matrix::pseudo_inverse (double tol) +Matrix::pseudo_inverse (double tol) const { SVD result (*this, SVD::economy); diff -r 26f74e9fd8a5 -r f1fcc371e5ef liboctave/dMatrix.h --- a/liboctave/dMatrix.h Tue Apr 22 19:10:40 2003 +0000 +++ b/liboctave/dMatrix.h Wed Apr 23 19:51:58 2003 +0000 @@ -118,7 +118,7 @@ Matrix inverse (int& info, double& rcond, int force = 0, int calc_cond = 1) const; - Matrix pseudo_inverse (double tol = 0.0); + Matrix pseudo_inverse (double tol = 0.0) const; ComplexMatrix fourier (void) const; ComplexMatrix ifourier (void) const;