12 #ifndef __OCPTable_HEADER__
13 #define __OCPTable_HEADER__
36 OCPTable(
const vector<vector<OCP_DBL>>& src);
39 void Setup(
const vector<vector<OCP_DBL>>& src);
52 void PushCol(
const vector<OCP_DBL>& v) { data.push_back(v); }
55 vector<OCP_DBL>&
GetCol(
const USI& j) {
return data[j]; }
60 nRow = data[0].size();
69 vector<OCP_DBL>& outdata,
70 vector<OCP_DBL>& slope);
74 USI Eval_All0(
const OCP_DBL& val, vector<OCP_DBL>& outdata);
96 vector<vector<OCP_DBL>> data;
Definition of build-in datatypes and consts.
unsigned int USI
Generic unsigned integer.
double OCP_DBL
Double precision.
unsigned int OCP_BOOL
OCP_BOOL in OCP.
void SetRowCol()
Setup row nums and col nums of tables, initialize the bId.
vector< OCP_DBL > & GetCol(const USI &j)
return the jth column in table to modify or use.
OCP_BOOL IsEmpty() const
judge if table is empty.
OCPTable()=default
Default constructor.
void PushCol(const vector< OCP_DBL > &v)
push v into the last column of table.
USI GetColNum() const
return the column num of table.