[Stk] Operator Overloading in StkFrames (+, -, *, etc.)
Gary Scavone
gary at ccrma.Stanford.EDU
Wed Sep 10 06:36:16 PDT 2008
Hi Chris,
This would be a welcome addition!
I've recently been wondering whether there is a need to support both
interleaved and non-interleaved formats in StkFrames. Having both
makes the tick() function definitions a bit slower and less concise.
One option would be to always use one format internally and then
provide a conversion function to provide the data in the other format
if needed by the user.
Regards,
--gary
On 9-Sep-08, at 10:47 PM, Chris Santoro wrote:
> Is there any specific reason that certain operator overloads for
> vectorized computations are not already implemented in the StkFrames
> class?
>
> For instance, it would be nice to add two frames without having to
> write a loop. You'd have to do size and bound checks, which would be
> extra computational burden, but if you're worried about the
> computational burden, simply don't use the overload.
>
> If there's no reason that it hasn't been included, I'd love to make
> a small contribution. Sorry if this has been covered before - I
> tried to go through the previous email list as much as I could. A
> little google-powered search function there would be great!
>
> Thanks,
> Chris Santoro
> M.S. Music Engineering Technology
> University of Miami
> _______________________________________________
> Stk mailing list
> Stk at ccrma.stanford.edu
> http://ccrma-mail.stanford.edu/mailman/listinfo/stk
More information about the Stk
mailing list