New Function rectint.m
Bill Denney
wsloand at gmail.com
Tue Mar 4 21:45:26 CST 2008
John W. Eaton wrote:
> On 2-Mar-2008, Bill Denney wrote:
>
> | I was feeling like doing something so I wrote the rectint.m function.
> | Changelog is in the changeset.
>
> I applied this patch with a few style changes. I also added a check
> to ensure that the arguments are 2-d arrays. Is that OK? As it is,
> your function silently ignores the additional dimensions. Is that
> desirable behavior?
>
> Finally, I'll take this function since it seems to work, but perhaps
> there is a way to vectorize it and avoid the nested for loop and
> subfunction?
Hi John,
Checking for 2-d arrays is something that I missed, thanks for catching
it. I tried to think of a way to vectorize the calls, but I couldn't
think of anything off the top of my head. I will keep thinking about it.
Have a good day,
Bill
More information about the Octave-maintainers
mailing list