>thanks for the tip. Can I convert a ublas::vector<std::size_t> direct to the indirect_array
Hmmm ... I don't think so. Maybe you can try use indirect_array<> directly as a replacement of ublas::vector<std::size_t> in your algorithm. Depends how you calculate your indices.
>or should I copy element by element?
Yes, that's always possible. You can use e.g. std::copy()
Ralf
GRATIS für alle WEB.DE Nutzer: Die maxdome Movie-FLAT! Jetzt freischalten unter http://movieflat.web.de