Boost logo

Ublas :

Subject: Re: [ublas] ormqr - numeric bindings
From: Thomas Klimpel (Thomas.Klimpel_at_[hidden])
Date: 2010-08-03 09:06:57


Peter Man wrote:
> How would one enter a sub-vector or sub-matrix into a numeric bindings
> function.
> For instance, in ormqr, I wish to enter the "tau" variable as a
> sub-vector of std::valarray/ublas::vector/std::vector
> , and similarly for sub-matrices for the matrix arguments.

   ublas::range r(0,k);
   ublas::vector_range< ublas::vector<value_type> > tau_r( tau, r );

The numeric bindings themselves don't have range wrappers yet, but adding them shouldn't be a major problem.

Regards,
Thomas