[vsipl++] Matlab IO Patch

Assem Salama assem at codesourcery.com
Fri May 26 20:25:51 UTC 2006


Mark Mitchell wrote:
> Assem Salama wrote:
>
>   
>> +  // helper struct to get the imaginary part of a view.
>> +  template <typename ViewT,
>> +            bool IsComplex =
>> +	      vsip::impl::Is_complex<typename ViewT::value_type>::value>
>> +  struct Subview_helper;
>>     
>
> If this going to come up in other situations (and I bet it will!) I
> think we should just add "impl_real" and "impl_imag" to all of our
> views.  For complex views, these would just forward to the standard
> real/imag functions; for other views, they would return the view unchanged.
>
>   
I agree!!! I have already had to pull this trick in many different places.




More information about the vsipl++ mailing list