Boost logo

Ublas :

Subject: Re: [ublas] ormqr - numeric bindings
From: Peter Man (plwm2_at_[hidden])
Date: 2010-08-03 08:55:48


  Sorry,

Another silly question,

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.

Thanks,

Peter

On 24/07/2010 09:06, Rutger ter Borg wrote:
> Peter Man wrote:
>
>> Hi,
>>
>> Just a quick silly question - where has the 'trans' argument gone from
>> the ormqr function definition in the numeric_bindings? I had a look at
>> the ormqr function definition and it appears to check some property of
>> the matrix for whether it's transposed or not - how do i change this to
>> get what i want?
>>
>> Thanks in advance for help!
>>
>> Peter
> Hello peter,
>
> #include<boost/numeric/bindings/trans.hpp>
>
> and then use ormqr( ..., bindings::trans( some_matrix ), ... ).
>
> Cheers,
>
> Rutger
>
>
>
>
>
>
>
>
>
>
>
> _______________________________________________
> ublas mailing list
> ublas_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/ublas
> Sent to: plwm2_at_[hidden]

-- 
--------------------------------------------------------------------------
Peter Man                 University of Cambridge,
                           Department of Chemical Engineering
                           and Biotechnology,
Tel. +44 (0)1223 334786   Pembroke Street,
Fax. +44 (0)1223 334796   Cambridge CB2 3RA, UK
email: mailto:plwm2_at_[hidden]
        mailto:plwm2_at_[hidden]
--------------------------------------------------------------------------