[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [Pkg-octave-devel] [OctDev] Status of the Octave-Forge packages in Debian



On 18 Mar 2012, at 21:19, Rafael Laboissiere wrote:

> I have here:
> 
> g++ (Debian 4.6.3-1) 4.6.3
> Octave 3.6.1
> 
> I just discovered that the failures happen randomly.  When I launch them
> several times in a row, sometimes they succeed, sometimes they fail.  Does
> this also happen for you?
> 
> Rafael

Does the attached pach improve the situation for you?
c.

Index: nrbbasisfun.m
===================================================================
--- nrbbasisfun.m	(revision 9938)
+++ nrbbasisfun.m	(working copy)
@@ -125,6 +125,8 @@
 %! 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)

Reply to: