octave-maintainers
[Top][All Lists]
Advanced

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

Re: [PATCH] Fix conversion from PermMatrix to SparseMatrix.


From: Jason Riedy
Subject: Re: [PATCH] Fix conversion from PermMatrix to SparseMatrix.
Date: Tue, 10 Mar 2009 16:03:13 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux)

And John W. Eaton writes:
> But then it failed.  Running it by hand:
[...]
> octave:6>  assert (all (find (sP) (:, 3) == 1));
> error: A(I): Index exceeds matrix dimension.
>
> I omitted the last assert.  What is the intent of that test?

Sorry, I mixed up the versions.  The intent was to test that all
explicit entries are 1, so the version that passed before I sent it had
the following instead of that line:

%!  [I, J, V] = find (sP);
%!  assert (all (V == 1));

(Anyone know a decent reference for using in-tree Mercurial branches?)

Jason


reply via email to

[Prev in Thread] Current Thread [Next in Thread]