On 23 May 2009, at 00:34, Rafael Laboissiere wrote:

> On my Deiban sid system (amd64) with Octave3.0.5, the test of  
> basisfunder
> fails with the following error message:
>
> #########################################################################
>  ***** test
> k    = [0 0 0 0 1/3 2/3 1 1 1 1];
> p    = 3;
> u    = rand (100, 1);
> i    = findspan (numel(k)-p-2, p, u, k);
> ders = basisfunder (i, p, u, k, 7);
> for ii=1:10
>   sumders = sum (squeeze(ders(ii,:,:)), 2);
>   assert (sumders(1), 1, 1e-15);
>   assert (sumders(2:end), zeros(rows(squeeze(ders(ii,:,:)))-1, 1),  
> 1e-13);
> endfor
> assert (ders(:, (p+2):end, :), zeros(numel(u), 8-p-1, p+1), 1e-13)
> assert (all(all(ders(:, 1, :) <= 1)), true)
> !!!!! test failed
> error: invalid conversion from matrix to real row vector
> #########################################################################
>
> I am unable to debug this problem.  Any hint?


I checked in the following patch to the repository,
thanks!
c.

Index: src/low_level_functions.cc
===================================================================
--- src/low_level_functions.cc  (revision 5849)
+++ src/low_level_functions.cc  (working copy)
@@ -57,9 +57,9 @@
  {
    octave_value_list retval;

-  const RowVector i = args(0).row_vector_value ();
+  const NDArray i = args(0).array_value ();
    int pl = args(1).int_value ();
-  const RowVector u = args(2).row_vector_value ();
+  const NDArray u = args(2).array_value ();
    const RowVector U = args(3).row_vector_value ();
    int nd = args(4).int_value ();



> -- 
> Rafael Laboissiere


------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
_______________________________________________
Octave-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to