On Thu, Apr 9, 2009 at 6:24 PM, Kenneth Porter <shiva@sewingwitch.com> wrote:
On Thursday, April 09, 2009 1:34 PM -0400 Jeremy Conlin <jeremit0@gmail.com> wrote:

But such a constructor does not exist.  I thought that using a
std::vector for the storage type of a ublas vector allowed me to do this.
 Can someone help me understand how I can do this (or some workaround)?

I don't know the answer, but it might be useful to know why you want to do that. I recall reading that the ublas::vector needs to remain a fixed size for its lifetime, so you have to be careful not to do anything to its storage to break its assumptions.

Yes, of course.  I would like to be able to use std::vectors and ublas vectors (almost) interchangeably.  I was hoping that if a function returned a std::vector and the calling function assigned that to a ublas vector then all would work out without any trouble.  Is this not a possibility?

Thanks,
Jeremy