90 double valueAt(
int i,
int j)
const;
141 QTableWidget*
ToTable()
override;
Matrix class with labeled rows and columns for Chemical Mass Balance analysis.
CMBMatrix()
Default constructor - creates an empty matrix.
string ColumnLabel(int i)
Gets column label at specified index.
void SetRowLabel(int i, const string &label)
Sets row label at specified index.
vector< string > ColumnLabels() const
Gets all column labels.
CMatrix toMatrix() const
Converts to base CMatrix type (without labels)
bool boolean_values
Display values as Pass/Fail instead of numbers.
string ToString() const override
Converts matrix to CSV-formatted string.
bool ReadFromJsonObject(const QJsonObject &jsonobject) override
Deserializes matrix from JSON format.
QJsonObject toJsonObject() const override
Serializes matrix to JSON format.
void SetColumnLabel(int i, const string &label)
Sets column label at specified index.
QTableWidget * ToTable() override
Creates a QTableWidget for displaying matrix data.
string RowLabel(int i)
Gets row label at specified index.
void SetBooleanValue(bool val)
Sets boolean display mode for table widget.
QStringList RowLabelCategories()
Gets unique row label categories.
void SetColumnLabels(const vector< string > &label)
Sets all column labels at once.
CMBMatrix & operator=(const CMBMatrix &mp)
Assignment operator.
vector< string > columnlabels
Labels for each column.
double valueAt(int i, int j) const
Gets value at specified matrix position.
CMBVector GetColumn(const string &columnlabel)
Extracts a column by its label.
void SetRowLabels(const vector< string > &label)
Sets all row labels at once.
CMBVector GetRow(const string &rowlabel)
Extracts a row by its label.
vector< string > RowLabels() const
Gets all row labels.
bool writetofile(QFile *file) override
Writes matrix to file in CSV format.
vector< string > rowlabels
Labels for each row.
Vector class with string labels for Chemical Mass Balance analysis.
Abstract base class providing common serialization and visualization interface.
CMBVector operator*(const CMBMatrix &M, const CMBVector &V)
Matrix-vector multiplication operator.