[Pkg-octave-commit] [SCM] octave-linear-algebra branch, master, updated. 23143857df3f6f5b629f941b16791e294550624f
Rafael Laboissiere
rafael at debian.org
Sat May 23 00:45:52 UTC 2009
The following commit has been merged in the master branch:
commit 31958817023a81622ab8add917fe95a1ae1a720b
Author: Rafael Laboissiere <rafael at debian.org>
Date: Sat May 23 02:28:24 2009 +0200
Add patch forgotten in previous commit
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..be57771
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+smwsolve-norm-in-test.diff
diff --git a/debian/patches/smwsolve-norm-in-test.diff b/debian/patches/smwsolve-norm-in-test.diff
new file mode 100644
index 0000000..6b29bc4
--- /dev/null
+++ b/debian/patches/smwsolve-norm-in-test.diff
@@ -0,0 +1,21 @@
+Calling norm() with 'cols' as the norm type argument does not work in Octave
+3.0.5. Replaced the offending code with a explicit computation of the
+norms for each column,
+
+This patch must be removed when Octave 3.2 is released.
+
+ -- Rafael Laboissiere <rafael at debian.org> Fri, 22 May 2009 22:02:06 +0200
+
+--- a/inst/smwsolve.m
++++ b/inst/smwsolve.m
+@@ -71,8 +71,8 @@
+
+ %!test
+ %! A = 2.1*eye (10);
+-%! u = rand (10, 2); u /= diag (norm (u, "cols"));
+-%! v = rand (10, 2); v /= diag (norm (v, "cols"));
++%! u = rand (10, 2); u /= diag ([norm(u(:,1)),norm(u(:,2))]);
++%! v = rand (10, 2); v /= diag ([norm(v(:,1)),norm(v(:,2))]);
+ %! b = rand (10, 2);
+ %! x1 = (A + u*v') \ b;
+ %! x2 = smwsolve (A, u, v, b);
--
octave-linear-algebra
More information about the Pkg-octave-commit
mailing list