octave-maintainers
[Top][All Lists]
Advanced

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

Re: Extending octave_value::is_bool_type()


From: Olaf Till
Subject: Re: Extending octave_value::is_bool_type()
Date: Wed, 4 May 2011 08:31:33 +0200
User-agent: Mutt/1.5.20 (2009-06-14)

On Tue, May 03, 2011 at 01:12:23PM -0500, Jordi Gutiérrez Hermoso wrote:
> I'm running into this in my bwlabeln implementation. It would be
> convenient if is_bool_type() returned true for matrices of type double
> that only have zeros and ones.  Is this a bad idea? Can I implement
> it?
> 
> - Jordi G. H.

But doesn't one need e.g. to discriminate between matrices of numeric
indices, which can be all ones, and logical indices?

Olaf


reply via email to

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