Boost logo

Ublas :

Subject: Re: [ublas] How to instantiate ublas vector from std::vector
From: Kenneth Porter (shiva_at_[hidden])
Date: 2009-04-09 18:24:49

On Thursday, April 09, 2009 1:34 PM -0400 Jeremy Conlin
<jeremit0_at_[hidden]> 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.