[vsipl++] Matlab IO Patch

Mark Mitchell mark at codesourcery.com
Fri May 26 20:23:50 UTC 2006


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.

-- 
Mark Mitchell
CodeSourcery
mark at codesourcery.com
(650) 331-3385 x713



More information about the vsipl++ mailing list