Boost logo

Ublas :

From: Andreas Klöckner (kloeckner_at_[hidden])
Date: 2005-03-03 05:42:15


Hi all,

If I read the code right,
sparse_matrix_detail_traits<ublas::compressed_matrix<> >::ordering_type
used to map directly to the "raw" ublas ordering type, i.e.
ublas::row_major or ublas::column_major. Subsequently, that was changed
to a bindings-specific type bindings::detail::ublas_ordering<>, for
whatever reason. This change broke the static member function
sparse_matrix_detail_traits<ublas::compressed_matrix<>
>::index1_storage() by making the expression ordering_type::size1(s1,
s2) undefined.

The attached patch fixes this by introducing a class-scope typedef
ublas_ordering_type and using that instead of ordering_type in the
expression. (If you prefer a different solution, please let me know.)

HTH,
Andreas

--
--------------------------------------+-----------------------------
Dipl.-Math. techn. Andreas Klöckner   | FON +49 721 608-7982
Institut für Angewandte Mathematik II | FAX +49 721 608-6679
Universität Karlsruhe                 | EMAIL kloeckner_at_[hidden]
Englerstraße 2                        |
76128 Karlsruhe                       | RAUM 022
Germany                               | Kollegiengebäude Mathematik
--------------------------------------+-----------------------------