Boost logo

Ublas :

Subject: Re: [ublas] submatrix with indexvector
From: Ralf Denzer (Ralf.Denzer_at_[hidden])
Date: 2010-07-26 04:35:36


>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