#include "hsymmat.h"

HSymMat


class description - source file - inheritance tree (.pdf)

class HSymMat : public TObject

Inheritance Chart:
TObject
<-
HSymMat
<-
HSymMat2
HSymMat3
HSymMat4
HSymMat5
HSymMat6

    protected:
HSymMat(Int_t dim) Int_t getLinear(Int_t i, Int_t j) const public:
HSymMat() HSymMat(const HSymMat&) ~HSymMat() static TClass* Class() void Clear() Float_t convolution(Float_t* v1, Float_t* v2) void getCov(HSymMat&) Int_t getDim() const Float_t getElement(const Int_t) const Float_t getElement(const Int_t, const Int_t) const Float_t getErr(const Int_t) virtual TClass* IsA() const Float_t& operator()(Int_t i, Int_t j) HSymMat& operator=(const HSymMat&) void print() void setCov(HSymMat&) void setElement(const Int_t, const Float_t) void setElement(const Int_t, const Int_t, const Float_t) void setErr(const Int_t, const Float_t) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b) void transform(const HSymMat& m, Float_t* der)

Data Members


    protected:
Float_t* pData ! Matrix elements Int_t size Int_t dim

Class Description

 HSymMat

  Implements a generic symetric matrix
  In order to allow statically sized matrixes
the HSymMat class cannot be instantiated directly
but one of the derived classes HSymMat4, HSymMat5 ...
can be instantiated.

  Each of these classes corresponds to a
symetric matrix of fixed dimension; i.e. HSymMat5 is
a symetric matrix of dimension 5.

  The HSymMatX classes themselves have no useful
methods, but inherit all their functionality from
HSymMat.

  Elements in the matrix can be accessed both via
a row and column number or with a linear index. The
relation between both of them is:
linear_index = row * dimension + column


HSymMat(void)
Constructor.

HSymMat(Int_t idim)
Constructor with specific dimension.

~HSymMat(void)

Float_t convolution(Float_t v1[], Float_t v2[])

void transform(const HSymMat &m, Float_t der[])

void Clear(void)
Clears the matrix

void setElement(const Int_t i,const Float_t elel)
Sets the element with linear index i to the value elel.

void setElement(const Int_t i,const Int_t j,Float_t elel)
Sets element at row i and column j to the value elel

void setErr(const Int_t i,const Float_t elel)
Sets element (i,i) to the value elel

void setCov(HSymMat& a)
Copies the matrix a

Float_t getElement(const Int_t i) const
Return the element given by the linear index i

Float_t getElement(const Int_t i,const Int_t j) const
Returns the element at (i,j)

Float_t getErr(const Int_t i)
Returns the element at (i,i)

void getCov(HSymMat& a)
Copies this matrix into a

void print(void)
Prints out the matrix elements



Inline Functions


              Int_t getLinear(Int_t i, Int_t j) const
           Float_t& operator()(Int_t i, Int_t j)
              Int_t getDim() const
            TClass* Class()
            TClass* IsA() const
               void ShowMembers(TMemberInspector& insp, char* parent)
               void Streamer(TBuffer& b)
               void StreamerNVirtual(TBuffer& b)
            HSymMat HSymMat(const HSymMat&)
           HSymMat& operator=(const HSymMat&)


Author: R.Schicker
Last update: M.Sanchez (01.06.2000)


ROOT page - Class index - Class Hierarchy - Top of the page

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.