|
Ublas : |
From: Langeland, Stian (GE Healthcare) (Stian.Langeland_at_[hidden])
Date: 2007-05-29 05:21:13
It did :-)
at least I think so after a quick look
Thanks,
Stian
> -----Original Message-----
> From: ublas-bounces_at_[hidden]
> [mailto:ublas-bounces_at_[hidden]] On Behalf Of Riccardo Rossi
> Sent: 29. mai 2007 11:01
> To: ublas mailing list
> Subject: Re: [ublas] Vector of size 3 without the size element
>
> this should do for you...
>
> at least it is the one we use routinely
>
> greetings
>
> Riccardo
>
> On Tue, 2007-05-29 at 11:11 +0300, Dima Sorkin wrote:
> > Hi.
> > It can be c_vector, from
> > http://www.boost.org/libs/numeric/ublas/doc/types_overview.htm
> >
> > I don't sure that if you put an array of c_vector, then all
> > floating numbers will sit continuously in memory (compiler
> can add some
> > spaces).
> >
> > May be a 3xN matrix fits your needs ?
> >
> > Regards,
> > Dima.
> >
> > Quoting "Langeland, Stian (GE Healthcare)" <Stian.Langeland_at_[hidden]>:
> >
> > > Hi,
> > >
> > > I have been trying to create a vector of 3 elements (a
> point) without
> > > the size element stored in the object. The reason for
> this is that I
> > > need to be able to have all the elements consecutive in
> memory when
> > > gathering several points in a std::vector. In this way
> all points in the
> > > std::vector can be uploaded to a graphics card using a
> single memcopy.
> > > Can this be acheived using ublas? I have not been able to
> find a way.
> > >
> > > Thanks,
> > > Stian
> > > _______________________________________________
> > > ublas mailing list
> > > ublas_at_[hidden]
> > > http://lists.boost.org/mailman/listinfo.cgi/ublas
> > >
> >
> > _______________________________________________
> > ublas mailing list
> > ublas_at_[hidden]
> > http://lists.boost.org/mailman/listinfo.cgi/ublas
>