diff --git a/Eigen/src/OrderingMethods/Ordering.h b/Eigen/src/OrderingMethods/Ordering.h index cb838d04a..25792a828 100644 --- a/Eigen/src/OrderingMethods/Ordering.h +++ b/Eigen/src/OrderingMethods/Ordering.h @@ -44,14 +44,14 @@ void ordering_helper_at_plus_a(const MatrixType& mat, MatrixType& symmat) * * Functor computing the \em approximate \em minimum \em degree ordering * If the matrix is not structurally symmetric, an ordering of A^T+A is computed - * \tparam Index The type of indices of the matrix + * \tparam StorageIndex The type of indices of the matrix * \sa COLAMDOrdering */ -template +template class AMDOrdering { public: - typedef PermutationMatrix PermutationType; + typedef PermutationMatrix PermutationType; /** Compute the permutation vector from a sparse matrix * This routine is much faster if the input matrix is column-major @@ -60,7 +60,7 @@ class AMDOrdering void operator()(const MatrixType& mat, PermutationType& perm) { // Compute the symmetric pattern - SparseMatrix symm; + SparseMatrix symm; internal::ordering_helper_at_plus_a(mat,symm); // Call the AMD routine @@ -72,7 +72,7 @@ class AMDOrdering template void operator()(const SparseSelfAdjointView& mat, PermutationType& perm) { - SparseMatrix C; C = mat; + SparseMatrix C; C = mat; // Call the AMD routine // m_mat.prune(keep_diag()); //Remove the diagonal elements @@ -88,7 +88,7 @@ class AMDOrdering * Functor computing the natural ordering (identity) * * \note Returns an empty permutation matrix - * \tparam Index The type of indices of the matrix + * \tparam StorageIndex The type of indices of the matrix */ template class NaturalOrdering @@ -108,6 +108,8 @@ class NaturalOrdering /** \ingroup OrderingMethods_Module * \class COLAMDOrdering * + * \tparam StorageIndex The type of indices of the matrix + * * Functor computing the \em column \em approximate \em minimum \em degree ordering * The matrix should be in column-major and \b compressed format (see SparseMatrix::makeCompressed()). */