Skip to content

Commit

Permalink
Merge branch 'main' into fix/universe_util_test_bug
Browse files Browse the repository at this point in the history
  • Loading branch information
veqcc authored Dec 23, 2024
2 parents 79af109 + 29d14e3 commit 8fc49ef
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions perception/autoware_bytetrack/lib/src/lapjv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@

/** Column-reduction and reduction transfer for a dense cost matrix.
*/
int_t _ccrrt_dense(
int_t ccrrt_dense(
const uint_t n, cost_t * cost[], int_t * free_rows, int_t * x, int_t * y, cost_t * v)
{
int_t n_free_rows;
Expand Down Expand Up @@ -108,7 +108,7 @@ int_t _ccrrt_dense(

/** Augmenting row reduction for a dense cost matrix.
*/
int_t _carr_dense(
int_t carr_dense(
const uint_t n, cost_t * cost[], const uint_t n_free_rows, int_t * free_rows, int_t * x,
int_t * y, cost_t * v)
{
Expand Down Expand Up @@ -181,7 +181,7 @@ int_t _carr_dense(

/** Find columns with minimum d[j] and put them on the SCAN list.
*/
uint_t _find_dense(
uint_t find_dense(
const uint_t n, uint_t lo, const cost_t * d, int_t * cols, [[maybe_unused]] int_t * y)
{
uint_t hi = lo + 1;
Expand All @@ -202,7 +202,7 @@ uint_t _find_dense(

// Scan all columns in TODO starting from arbitrary column in SCAN
// and try to decrease d of the TODO columns using the SCAN column.
int_t _scan_dense(
int_t scan_dense(
const uint_t n, cost_t * cost[], uint_t * plo, uint_t * phi, cost_t * d, int_t * cols,
int_t * pred, const int_t * y, const cost_t * v)
{
Expand Down Expand Up @@ -267,7 +267,7 @@ int_t find_path_dense(
if (lo == hi) {
PRINTF("%d..%d -> find\n", lo, hi);
n_ready = lo;
hi = _find_dense(n, lo, d, cols, y);
hi = find_dense(n, lo, d, cols, y);
PRINTF("check %d..%d\n", lo, hi);
PRINT_INDEX_ARRAY(cols, n);
for (uint_t k = lo; k < hi; k++) {
Expand All @@ -279,7 +279,7 @@ int_t find_path_dense(
}
if (final_j == -1) {
PRINTF("%d..%d -> scan\n", lo, hi);
final_j = _scan_dense(n, cost, &lo, &hi, d, cols, pred, y, v);
final_j = scan_dense(n, cost, &lo, &hi, d, cols, pred, y, v);
PRINT_COST_ARRAY(d, n);
PRINT_INDEX_ARRAY(cols, n);
PRINT_INDEX_ARRAY(pred, n);
Expand All @@ -304,7 +304,7 @@ int_t find_path_dense(

/** Augment for a dense cost matrix.
*/
int_t _ca_dense(
int_t ca_dense(
const uint_t n, cost_t * cost[], const uint_t n_free_rows, int_t * free_rows, int_t * x,
int_t * y, cost_t * v)
{
Expand Down Expand Up @@ -348,14 +348,14 @@ int lapjv_internal(const uint_t n, cost_t * cost[], int_t * x, int_t * y)

NEW(free_rows, int_t, n);
NEW(v, cost_t, n);
ret = _ccrrt_dense(n, cost, free_rows, x, y, v);
ret = ccrrt_dense(n, cost, free_rows, x, y, v);
int i = 0;
while (ret > 0 && i < 2) {
ret = _carr_dense(n, cost, ret, free_rows, x, y, v);
ret = carr_dense(n, cost, ret, free_rows, x, y, v);
i++;
}
if (ret > 0) {
ret = _ca_dense(n, cost, ret, free_rows, x, y, v);
ret = ca_dense(n, cost, ret, free_rows, x, y, v);
}
FREE(v);
FREE(free_rows);
Expand Down

0 comments on commit 8fc49ef

Please sign in to comment.