On Tue, May 5, 2009 at 11:42 AM, Francisco J. Martínez Serrano <[email protected]> wrote: > On Tue, May 5, 2009 at 10:26 AM, Jaroslav Hajek <[email protected]> wrote: >> On Tue, May 5, 2009 at 10:24 AM, Francisco J. Martínez Serrano >> <[email protected]> wrote: >>> On Tue, May 5, 2009 at 10:10 AM, Jaroslav Hajek wrote: >>>> On Tue, May 5, 2009 at 9:47 AM, Francisco J. Martínez Serrano >>>> <[email protected]> wrote: >>>>> Oh, good news everybody, then! >>>>> >>>>> The "only" problem with this function is that it only works for >>>>> integers, if it were to replace setdiff, it should be adapted to work >>>>> with general sets. >>>>> >>>>> Cheers. >>>>> >>>> >>>> I don't understand what you mean. Exactly what functionality are you >>>> missing? >>> >>> The stock setdiff does not return the indices (second return value for >>> my setdiff2). It is present, however, in matlab's setdiff. >>> >> >> It does in the development version, as I demonstrated above. > > It remains to be seen whether the sparse matrix bug is still present > on the development version. >
Good idea. It seems the following produces a segfault: a = [1 3 4 5 6 7 9]; b = [3 6 7]; temp = sparse([], [],0,1,max(max(a), max(b))); temp(a) = 1; temp(b) = 0; -- RNDr. Jaroslav Hajek computing expert & GNU Octave developer Aeronautical Research and Test Institute (VZLU) Prague, Czech Republic url: www.highegg.matfyz.cz ------------------------------------------------------------------------------ The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-com _______________________________________________ Octave-dev mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/octave-dev
