Re: [ROOT] Doubly dimensionned array of basic type

From: Rene Brun (Rene.Brun@cern.ch)
Date: Thu Dec 12 2002 - 11:30:07 MET


Hi Francois-Xavier,

This is not supported.
If you have this type of problem with multi-dimensional arrays of variable
length, use classes like TMatrix, TMatrixD, TH1S, TH2, TH3 or TObjArray
of these objects or use STL vectors.

Rene Brun

On Thu, 12 Dec 2002, GENTIT Francois-Xavier  DAPNIA wrote:

>   Dear rooters,
>   I know that for one dimensionned array of basic type defined in a class,
> in order that the values may be written to file, the way to define the array
> is:
> 
>   Int_t  fN;   //dimension of the array
>   Int_t *fP;  //[fN] one dimensionnal array
> 
>   How to proceed for 2 dimensionnal arrays **fP ?
> 
>   Thanks a lot in advance.
> 
> François-Xavier Gentit
> DAPNIA/SPP CEA Saclay
> http://gentit.home.cern.ch/gentit/
> 
> 



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:23 MET