Re: Error in <TVectorT<double>::operator=(const TVectorT<Element> &)>: vectors not compatible

From: Axel Naumann <Axel.Naumann_at_cern.ch>
Date: Thu, 10 Dec 2009 17:03:01 +0100


Hi,

Lambda probably has the wrong number of rows - if you use the default constructor it's 0. Simply call

    Lambda.ResizeTo(aSVD.GetSig());
before.

Cheers, Axel.

Robert Riemann wrote on 12/10/2009 04:24 PM:
> Hi everyone,
>
> I have a serious problem. I want to write an analysis-class using the
> following piece of code to compute the eigenvalues.
>
> TDecompSVD aSVD(MomentumTensor);
> Lambda = aSVD.GetSig();
>
> Lambda was declared in header file with: TVectorD Lambda;
>
> But in the second line of code i get the following error (program don't stop
> running):
>
> Error in <TVectorT<double>::operator=(const TVectorT<Element> &)>: vectors not
> compatible
>
>
> Where is the mistake? Does anybody have an idea?
>
>
> Regards,
> Robert Riemann
>
>
Received on Thu Dec 10 2009 - 17:01:09 CET

This archive was generated by hypermail 2.2.0 : Thu Dec 10 2009 - 17:50:04 CET