changeset 4384:f1fcc371e5ef

[project @ 2003-04-23 19:51:57 by jwe]
author jwe
date Wed, 23 Apr 2003 19:51:58 +0000
parents 26f74e9fd8a5
children de8c1d2ee728
files liboctave/CMatrix.cc liboctave/CMatrix.h liboctave/ChangeLog liboctave/dMatrix.cc liboctave/dMatrix.h
diffstat 5 files changed, 9 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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;
 
--- 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;
--- 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  <jwe@bevo.che.wisc.edu>
+
+	* dMatrix.cc (Matrix::pseudo_inverse): Now const.
+	* CMatrix.cc (ComplexMatrix::pseudo_inverse): Likewise.
+
 2003-04-18  John W. Eaton  <jwe@bevo.che.wisc.edu>
 
 	* getopt.c, getopt1.c, getopt.h: Move here from kpathsea.
--- 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);
 
--- 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;