patch: enhancements for freqswap()

Stefan Seefeld stefan at codesourcery.com
Tue Jun 3 22:46:26 UTC 2008


The attached patch reimplements vsip::freqswap(), yielding two important 
changes:

* The recently discovered restriction that the input Block type must be 
allocatable is removed.

* It uses a return-block optimization, allowing it avoid a temporary 
view by using expression template techniques.

Note that the algorithm itself was slightly enhanced to allow to operate 
on a block in-place, therefor removing the constraint that input and 
output must not alias.

OK to commit ?

Thanks,
		Stefan

-- 
Stefan Seefeld
CodeSourcery
stefan at codesourcery.com
(650) 331-3385 x718
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freqswap.hpp.diff
Type: text/x-patch
Size: 9353 bytes
Desc: not available
URL: <http://sourcerytools.com/pipermail/vsipl++/attachments/20080603/0aab19bd/attachment.bin>


More information about the vsipl++ mailing list