[patch] Support for arbitrary distributed subset subviews

Jules Bergmann jules at codesourcery.com
Tue Dec 12 20:43:54 UTC 2006


This patch adds support for (nearly) arbitrary distributed subset 
subviews, i.e.

    Matrix<> A(...), B(...);
    A = B(Domain<2>(...));

Previously, only subsets that included either 1 element or all the 
elements of distributed dimensions were allowed.

This allows the fftshift operation to work on distributed matrices.

The support is "nearly" arbitrary because subviews of cyclic 
distributions have not been tested yet.  This should work, but may 
require some additional work.  Currently, attempts to take a distributed 
subview of a view with a cyclic distribution result in an unimplemented 
exception.

This patch also includes unit tests for:
  - various 1D and 2D distributed subset cases.
  - the matrix fftshift function.
  - several existing and new functions in domain_utils.hpp.


-- 
Jules Bergmann
CodeSourcery
jules at codesourcery.com
(650) 331-3385 x705
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: subset.diff
URL: <http://sourcerytools.com/pipermail/vsipl++/attachments/20061212/09c221cf/attachment.ksh>


More information about the vsipl++ mailing list