cvxpy/cvxcore/src/cvxcore.cpp
ProblemData build_matrix(std::vector<const LinOp *> constraints, int var_length,
                         std::map<int, int> id_to_col,
                         std::map<int, int> param_to_size,
                         std::vector<int> constr_offsets) {
  ProblemData prob_data = init_data_tensor(param_to_size);

  /* Build matrix one constraint at a time */
  for (unsigned i = 0; i < constraints.size(); i++) {
    LinOp constr = *constraints[i];
    int vert_offset = constr_offsets[i];
    process_constraint(constr, prob_data, vert_offset, var_length, id_to_col);
  }
  return prob_data;
}
/*  See comment above for build_matrix. Requires specification of a vertical
                offset, VERT_OFFSET, for each constraint in the vector
   CONSTR_OFFSETS.

                Valid CONSTR_OFFSETS assume that a vertical offset is provided
   for each constraint and that the offsets are not overlapping. In particular,
                the vertical offset for constraint i + the size of constraint i
   must be less than the vertical offset for constraint i+1.
                */
See comment above for build_matrix. Requires specification of a vertical
offset, VERT_OFFSET, for each constraint in the vector
CONSTR_OFFSETS.

Valid CONSTR_OFFSETS assume that a vertical offset is provided
for each constraint and that the offsets are not overlapping. In particular,
the vertical offset for constraint i + the size of constraint i
must be less than the vertical offset for constraint i+1.
See comment above for build_matrix . Requires specification of a vertical offset VERT_OFFSET for each constraint in the vector CONSTR_OFFSETS . Valid CONSTR_OFFSETS assume that a vertical offset is provided for each constraint and that the offsets are not overlapping . In particular the vertical offset for constraint i + the size of constraint i must be less than the vertical offset for constraint i + 1 .
ProblemData build_matrix(std::vector<const LinOp *> constraints, int var_length,
                         std::map<int, int> id_to_col,
                         std::map<int, int> param_to_size,
                         std::vector<int> constr_offsets) {
  ProblemData prob_data = init_data_tensor(param_to_size);
  for (unsigned i = 0; i < constraints.size(); i++) {
    LinOp constr = *constraints[i];
    int vert_offset = constr_offsets[i];
    process_constraint(constr, prob_data, vert_offset, var_length, id_to_col);
  }
  return prob_data;
}
ProblemData build_matrix ( std :: vector < const LinOp * > constraints , int var_length , std :: map < int , int > id_to_col , std :: map < int , int > param_to_size , std :: vector < int > constr_offsets ) { ProblemData prob_data = init_data_tensor ( param_to_size ) ; for ( unsigned i = 0 ; i < constraints . size ( ) ; i ++ ) { LinOp constr = * constraints [ i ] ; int vert_offset = constr_offsets [ i ] ; process_constraint ( constr , prob_data , vert_offset , var_length , id_to_col ) ; } return prob_data ; }
See comment above for build_matrix.
See comment above for build_matrix .
/* Build matrix one constraint at a time */