[Pkg-octave-commit] [SCM] UNNAMED PROJECT branch, master, updated. 9e4ab9ff627998fc000541cb525ab88e146843f9

Rafael Laboissiere rafael at laboissiere.net
Fri Mar 30 15:32:22 UTC 2012


The following commit has been merged in the master branch:
commit 9e4ab9ff627998fc000541cb525ab88e146843f9
Author: Rafael Laboissiere <rafael at laboissiere.net>
Date:   Fri Mar 30 17:21:43 2012 +0200

    debian/patches/reduce-test-randomness.patch: New patch

diff --git a/debian/patches/reduce-test-randomness.patch b/debian/patches/reduce-test-randomness.patch
new file mode 100644
index 0000000..b25707a
--- /dev/null
+++ b/debian/patches/reduce-test-randomness.patch
@@ -0,0 +1,17 @@
+Description: Reduce the randomness of test in nrbbasisfun.m
+Author: Carlo de Falco <carlo.defalco at gmail.com>
+Origin: upstream,
+http://octave.svn.sourceforge.net/viewvc/octave?view=revision&revision=9954
+Last-Update: 2012-03-30
+
+--- octave-nurbs-1.3.6.orig/inst/nrbbasisfun.m
++++ octave-nurbs-1.3.6/inst/nrbbasisfun.m
+@@ -125,6 +125,8 @@ end
+ %! aux1 = linspace(0,1,m); aux2 = linspace(0,1,n);
+ %! nrb = nrbkntins  (nrb, {aux1(2:end-1), aux2(2:end-1)});
+ %! u = rand (1, 30); v = rand (1, 10);
++%! u = u - min (u); u = u / max (u);
++%! v = v - min (v); v = v / max (v);
+ %! [B, N] = nrbbasisfun ({u, v}, nrb);
+ %! assert (sum(B, 2), ones(300, 1), 1e-6)
+ %! assert (all (all (B<=1)), true)
diff --git a/debian/patches/series b/debian/patches/series
index 4ca3e82..0a24ded 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,4 @@
 autoload-yes.diff
 openmp-fix.patch
+reduce-test-randomness.patch
+

-- 
UNNAMED PROJECT



More information about the Pkg-octave-commit mailing list