changeset 9819:84398271118c

fix typo in expm
author Jaroslav Hajek <highegg@gmail.com>
date Sat, 14 Nov 2009 07:02:30 +0100
parents c84684473c4d
children a262b41eaa15
files scripts/ChangeLog scripts/linear-algebra/expm.m
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/ChangeLog	Sat Nov 14 00:39:28 2009 -0500
+++ b/scripts/ChangeLog	Sat Nov 14 07:02:30 2009 +0100
@@ -1,3 +1,7 @@
+2009-11-14  Jaroslav Hajek  <highegg@gmail.com>
+
+	* linear-algebra/expm.m: Fix typo.
+
 2009-11-11  John W. Eaton  <jwe@octave.org>
 
 	* miscellaneous/intwarning.m: Doc fix.
--- a/scripts/linear-algebra/expm.m	Sat Nov 14 00:39:28 2009 -0500
+++ b/scripts/linear-algebra/expm.m	Sat Nov 14 07:02:30 2009 +0100
@@ -139,7 +139,7 @@
   ## inverse balancing.
   d = diag (d);
   r = d * r / d;
-  r = r(p, p);
+  r(p, p) = r;
   ## Inverse trace reduction.
   if (trshift >0)
     r *= exp (trshift);