[macstl-dev] macstl wrapper
psimonp at yahoo.com
Fri Jun 3 00:04:18 WST 2005
I have a wrapper for macstl valarray for 2D and 3D
I also define some operators that are just wrappers
around valarray's operators:
operator*( const NumericArray2<T>& op1, const
NumericArray2& op2 )
return NumericArray2<T>( op1 * op2 );
When I run this code, raw macstl runs about 8 times
when I run it with NumericArray2. It seems that
there's an extra copy that occurs with the wrapper
that doesn't happen with macstl valarray.
Any thoughts or ideas as to how to improve this such
that there's no or little overhead?
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
More information about the macstl-dev