76 Eigen::MatrixX<g_type>& H =
_H;
88 for (
uint04 i = 0; i < A.blockCols().size(); ++i)
90 int c_size = A.colsOfBlock(i);
91 assert(c_idx == A.colBaseOfBlock(i) &&
"mismatch in block indices");
93 const typename SparseBlockMatrix<MatrixType>::IntBlockMap& col = A.blockCols()[i];
95 typename SparseBlockMatrix<MatrixType>::IntBlockMap::const_iterator it;
96 for (it = col.begin(); it != col.end(); ++it) {
97 int r_idx = A.rowBaseOfBlock(it->first);
99 if (it->first <= (
int)i) {
100 int r_size = A.rowsOfBlock(it->first);
103 H.block(r_idx, c_idx, r_size, c_size) = it->second;
108 H.block(c_idx, r_idx, c_size, r_size) = it->second.transpose();
118 Eigen::VectorX<g_type>::MapType xvec(x, m);
119 Eigen::VectorX<g_type>::ConstMapType bvec(b, n);