8 std::vector<int> holes;
10 for (
int row = 0; row <
matrix.num_row(); ++row) {
18 int dim =
matrix.num_col() - holes.size();
22 for (
int i = 0;
i <
result.num_row(); ++
i)
25 CLHEP::HepMatrix solution(dim, dim, 0);
26 CLHEP::HepVector
input(dim, 0);
37 CLHEP::HepMatrix& solution,
38 const CLHEP::HepVector&
result,
39 CLHEP::HepVector&
input,
40 const std::vector<int>& where) {
42 std::vector<int>::const_iterator whereRows = where.begin();
44 for (
int row = 0; row <
matrix.num_row(); ++row) {
45 if (row == *whereRows) {
53 std::vector<int>::const_iterator whereCols = where.begin();
56 if (
col == *whereCols) {
61 solution[row - offsetRow][
col - offsetCol] =
matrix[row][
col];
70 std::vector<int>::const_iterator whereCols = where.begin();
73 for (
int xtal = 0; xtal <
result.num_row(); ++xtal) {
74 if (xtal == *whereCols) {