Skip to content

Commit

Permalink
replaced for loop with assignment for fill_rws_memory()
Browse files Browse the repository at this point in the history
  • Loading branch information
ThoreWietzke committed Dec 9, 2023
1 parent 1c32a09 commit 97b4d14
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/grampc_binding.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -419,13 +419,7 @@ void GrampcBinding::fill_rws_memory(Eigen::Ref<Matrix> rws_matrix, const Eigen::
}

// copy the new data to the rws_matrix.
for (int col = 0; col < rws_matrix.cols(); col++)
{
for (int row = 0; row < rws_matrix.rows(); row++)
{
rws_matrix(row, col) = new_data(row, col);
}
}
rws_matrix = new_data;
}

void GrampcBinding::set_rws_u(const Eigen::Ref<const Matrix>& u_new)
Expand Down

0 comments on commit 97b4d14

Please sign in to comment.