28 if ((rows <= 0) || (cols <= 0)) {
29 Fatal(
"TGDMLMatrix::TGDMLMatrix(rows,cols)",
"Wrong number of rows/cols");
43 fMatrix = new Double_t[fNelem];
44 memcpy(fMatrix, rhs.fMatrix, fNelem * sizeof(Double_t));
87 printf(
" %s\n",
fTitle.Data());
90 for (
size_t row = 0; row <
fNrows; ++row) {
92 for (
size_t col = 0; col <
fNcols; ++col) {
93 printf(
"%8.3g",
Get(row, col));
double Double_t
Double 8 bytes.
const char Option_t
Option string (const char).
TGDMLMatrix & operator=(const TGDMLMatrix &rhs)
void Print(Option_t *option="") const override
This method must be overridden when a class wants to print itself.
Double_t Get(size_t r, size_t c) const
void Set(size_t r, size_t c, Double_t a)
const char * GetName() const override
Returns name of object.
TNamed & operator=(const TNamed &rhs)
TNamed assignment operator.
virtual void Fatal(const char *method, const char *msgfmt,...) const
Issue fatal error message.