max does not support sparse boolean matrix
Jaroslav Hajek
highegg at gmail.com
Fri Apr 3 23:17:14 CDT 2009
On Fri, Apr 3, 2009 at 11:24 PM, pbellec <pbellec at bic.mni.mcgill.ca> wrote:
>
> Thanks for the quick answer David. I will try to apply the patch and
> recompile next week. I am not sure I correctly understands what the patch
> does though
>
> David Bateman-2 wrote:
>>
>> Something like the attached should make the behavior the same as the full
>> types
>>
>
> If it is converting the max to a full array, that would not do. if max is
> just a scalar it would have no impact, but commands like max(a,[],1) can
> generate big vectors or arrays. It would be important to keep the sparse
> attribute, and also the boolean type for cases where memory load is a
> critical issue.
>
No, it just converts a sparse bool matrix to sparse double. That's acceptable.
David, if you have limited access now, would you like me to apply your patch?
regards
--
RNDr. Jaroslav Hajek
computing expert & GNU Octave developer
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz
More information about the Bug-octave
mailing list