[patch] Transpose fixes, LU/Cholesky fixes

Jules Bergmann jules at codesourcery.com
Fri Apr 21 01:18:36 UTC 2006


This patch fixes transpose to work properly with negative strides. 
Previously, strides were passed to the transpose functions as 'unsigned' 
values causing negative strides appeared as large positive strides.  Now 
strides are passed with 'stride_type' from support.hpp.  Also, 
length_type and index_type are now used as necessary. 
transpose-mirror.cpp is a new regression test that exercises this bug/fix.

The patch also fixes a more general problem with transposes of 
non-unit-stride matrices, which was assuming unit-stride for matrices 
when subdividing.  transpose-nonunit.cpp is a new regression test that 
excercises this bug/fix.

Finally, this patch uses the macro VSIP_IMPL_HAVE_SAL to determine 
whether solver-lu and solver-cholesky should include and use the SAL 
solvers.  Previously this was using the macro VSIP_IMPL_USE_SAL_SOL 
which wasn't defined.

Will apply once test suite finishes.

				-- Jules

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


More information about the vsipl++ mailing list