 template <typename MemorySpace>
 void TestPermutationMatrixViewAssignment(void)
 {
-    typedef int                                                           IndexType;
+    typedef unsigned int                                                  IndexType;
     typedef typename cusp::permutation_matrix<IndexType,MemorySpace>      Matrix;
     typedef typename cusp::array1d<IndexType,MemorySpace>::iterator       IndexIterator;
     typedef typename cusp::array1d_view<IndexIterator>                    IndexView;

template <typename MemorySpace>
void TestMakePermutationMatrixView(void)
{
    typedef int                                                           IndexType;
    typedef typename cusp::permutation_matrix<IndexType,MemorySpace>      Matrix;
    typedef typename cusp::array1d<IndexType,MemorySpace>::iterator       IndexIterator;
    typedef typename cusp::array1d_view<IndexIterator>                    IndexView;

template <typename MemorySpace>
void TestPermutationMatrixView(void)
{
    typedef unsigned int                                                  IndexType;
    typedef typename cusp::permutation_matrix<IndexType,MemorySpace>      Matrix;
    typedef typename cusp::array1d<IndexType,MemorySpace>::iterator       IndexIterator;
    typedef typename cusp::array1d_view<IndexIterator>                    IndexView;
