#ifndef ROOT_TDecompBK
#define ROOT_TDecompBK
#ifndef ROOT_TDecompBase
#include "TDecompBase.h"
#endif
#ifndef ROOT_TMatrixDSym
#include "TMatrixDSym.h"
#endif
#ifndef ROOT_TVectorD
#include "TVectorD.h"
#endif
class TDecompBK : public TDecompBase
{
protected :
Int_t fNIpiv;
Int_t *fIpiv;
TMatrixD fU;
virtual const TMatrixDBase &GetDecompMatrix() const { return fU; }
public :
TDecompBK();
explicit TDecompBK(Int_t nrows);
TDecompBK(Int_t row_lwb,Int_t row_upb);
TDecompBK(const TMatrixDSym &m,Double_t tol = 0.0);
TDecompBK(const TDecompBK &another);
virtual ~TDecompBK() {if (fIpiv) delete [] fIpiv; fIpiv = 0; }
virtual Int_t GetNrows () const { return fU.GetNrows(); }
virtual Int_t GetNcols () const { return fU.GetNcols(); }
const TMatrixD &GetU () { if ( !TestBit(kDecomposed) ) Decompose();
return fU; }
virtual void SetMatrix (const TMatrixDSym &a);
virtual Bool_t Decompose ();
virtual Bool_t Solve ( TVectorD &b);
virtual TVectorD Solve (const TVectorD& b,Bool_t &ok) { TVectorD x = b; ok = Solve(x); return x; }
virtual Bool_t Solve ( TMatrixDColumn &b);
virtual Bool_t TransSolve ( TVectorD &b) { return Solve(b); }
virtual TVectorD TransSolve (const TVectorD& b,Bool_t &ok) { TVectorD x = b; ok = Solve(x); return x; }
virtual Bool_t TransSolve ( TMatrixDColumn &b) { return Solve(b); }
virtual void Det (Double_t &,Double_t &)
{ MayNotUse("Det(Double_t&,Double_t&)"); }
Bool_t Invert (TMatrixDSym &inv);
TMatrixDSym Invert (Bool_t &status);
TMatrixDSym Invert () { Bool_t status; return Invert(status); }
void Print(Option_t *opt ="") const;
TDecompBK &operator= (const TDecompBK &source);
ClassDef(TDecompBK,1)
};
#endif
Last change: Wed Jun 25 08:36:05 2008
Last generated: 2008-06-25 08:36
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.