30 if ((rows <= 0) || (cols <= 0))
32 Fatal(
"TGDMLMatrix::TGDMLMatrix(rows,cols)",
"Wrong number of rows/cols");
42 :
TNamed(rhs), fNelem(rhs.fNelem), fNrows(rhs.fNrows), fNcols(rhs.fNcols), fMatrix(nullptr)
56 if (
this == &rhs) {
return *
this; }
92 for (
size_t row = 0; row <
fNrows; ++row) {
94 for (
size_t col = 0; col <
fNcols; ++col) {
95 printf(
"%8.3g",
Get(row, col));
void Fatal(const char *location, const char *msgfmt,...)
This class is used in the process of reading and writing the GDML "matrix" tag.
TGDMLMatrix & operator=(const TGDMLMatrix &rhs)
Double_t Get(size_t r, size_t c) const
void Set(size_t r, size_t c, Double_t a)
void Print(Option_t *option="") const
Print TNamed name and title.
The TNamed class is the base class for all named ROOT classes.
TNamed & operator=(const TNamed &rhs)
TNamed assignment operator.
virtual const char * GetName() const
Returns name of object.
const char * Data() const