32 #ifndef ROOT_TMVA_PDEFoamVect
45 TMVA::PDEFoamVect::PDEFoamVect()
75 Error(
"PDEFoamVect",
"COPY CONSTRUCTOR NOT IMPLEMENTED" );
96 if (&vect ==
this)
return *
this;
97 if (fDim != vect.
fDim)
98 Error(
"PDEFoamVect",
"operator=Dims. are different: %d and %d \n ", fDim, vect.
fDim);
99 if (fDim != vect.
fDim) {
104 for(
Int_t i=0; i<fDim; i++)
117 if ((n<0) || (n>=fDim)) {
118 Error(
"PDEFoamVect",
"operator[], out of range \n");
128 for(
Int_t i=0;i<fDim;i++)
129 fCoords[i] = fCoords[i]*x;
138 if(fDim != shift.
fDim){
139 Error(
"PDEFoamVect",
"operator+, different dimensions= %d %d \n", fDim, shift.
fDim);
141 for(
Int_t i=0;i<fDim;i++)
142 fCoords[i] = fCoords[i] + shift.
fCoords[i];
151 if(fDim != shift.
fDim) {
152 Error(
"PDEFoamVect",
"operator+, different dimensions= %d %d \n", fDim, shift.
fDim);
154 for(
Int_t i=0;i<fDim;i++)
155 fCoords[i] = fCoords[i] - shift.
fCoords[i];
188 for(
Int_t i=0; i<fDim; i++)
189 fCoords[i] = Vect[i];
199 for(
Int_t i=0; i<fDim; i++)
214 streamsize wid = std::cout.width();
215 if(!option)
Error(
"Print ",
"No option set \n");
217 for(
Int_t i=0; i<fDim-1; i++)
218 std::cout << std::setw(12) << *(fCoords+i) <<
",";
219 std::cout << std::setw(12) << *(fCoords+fDim-1);
221 std::cout.width(wid);
ClassImp(TMVA::PDEFoamVect) TMVA
Default constructor for streamer.
PDEFoamVect & operator*=(const Double_t &)
unary multiplication operator *=
PDEFoamVect & operator-=(const PDEFoamVect &)
unary subtraction operator -=
PDEFoamVect & operator=(const PDEFoamVect &)
substitution operator
virtual ~PDEFoamVect()
Destructor.
Double_t & operator[](Int_t)
[] is for access to elements as in ordinary matrix like a[j]=bj Range protection is built in...
static double p2(double t, double a, double b, double c)
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
void Error(const char *location, const char *msgfmt,...)
void Print(Option_t *option) const
Printout of all vector components.
PDEFoamVect & operator+=(const PDEFoamVect &)
unary addition operator +=; adding vector c*=x,
PDEFoamVect operator+(const PDEFoamVect &)
addition operator +; sum of 2 vectors: c=a+b, a=a+b, NEVER USE IT, VERY SLOW!!!
Mother of all ROOT objects.
Abstract ClassifierFactory template that handles arbitrary types.
PDEFoamVect operator-(const PDEFoamVect &)
subtraction operator -; difference of 2 vectors; c=a-b, a=a-b, NEVER USE IT, VERY SLOW!!! ...