From maintainers-request at octave dot org Wed Jun 8 04:17:38 2005 Subject: Re: Cell support for deblank From: David Bateman To: Keith Goodman Cc: octave maintainers mailing list Date: Wed, 08 Jun 2005 11:13:32 +0200 Keith Goodman wrote: >Understood. But a "which -all" is still very useful if anyone feels >like making one. > > > Its not that difficult to implement a simple version of "which -all". One of the advantages of octave over its close source competitors is that with the source being open, the users can propose a patch for the feature they want, and in all likelihood see this patch included in a very short delay. That's how open source programs become more feature rich... As for "which -all" there is one complication. The octave dispatch function allows function overloading in a manner similar but different to matlab classes. Strictly speaking "which -all " should also return all of the overloaded functions of as well with an indication of the type they are used for. Consider octave:1> dispatch("inv") Overloaded function inv inv(galois,...)->ginv(galois,...) inv(sparse bool matrix,...)->spinv(sparse bool matrix,...) inv(sparse complex matrix,...)->spinv(sparse complex matrix,...) inv(sparse matrix,...)->spinv(sparse matrix,...) Therefore "which -all inv" for me should return /opt/octave-2.9/libexec/octave/2.9.3/site/oct/i686-pc-linux-gnu/octave-forge/ginv.oct # galois /opt/octave-2.9/libexec/octave/2.9.3/oct/i686-pc-linux-gnu/spinv.oct # sparse bool matrix /opt/octave-2.9/libexec/octave/2.9.3/oct/i686-pc-linux-gnu/spinv.oct # sparse complex matrix /opt/octave-2.9/libexec/octave/2.9.3/oct/i686-pc-linux-gnu/spinv.oct # sparse matrix inv is a built-in function Its not clear to me the best way to treat that case.... D. -- David Bateman David dot Bateman at motorola dot com Motorola Labs - Paris +33 1 69 35 48 04 (Ph) Parc Les Algorithmes, Commune de St Aubin +33 1 69 35 77 01 (Fax) 91193 Gif-Sur-Yvette FRANCE The information contained in this communication has been classified as: [x] General Business Information [ ] Motorola Internal Use Only [ ] Motorola Confidential Proprietary