Skip to content

Commit b23c79f

Browse files
Transurgeonclaude
andcommitted
Run clang-format and remove CLAUDE.md
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent e15105f commit b23c79f

4 files changed

Lines changed: 3 additions & 87 deletions

File tree

CLAUDE.md

Lines changed: 0 additions & 82 deletions
This file was deleted.

src/affine/trace.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ static void wsum_hess_init(expr *node)
102102

103103
/* initialize child's hessian */
104104
x->wsum_hess_init(x);
105-
105+
106106
node->work->dwork = (double *) calloc(x->size, sizeof(double));
107107

108108
/* We copy over the sparsity pattern from the child. This also includes the

src/problem.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,8 +350,7 @@ void problem_update_params(problem *prob, const double *theta)
350350
{
351351
expr *pnode = prob->param_nodes[i];
352352
parameter_expr *param = (parameter_expr *) pnode;
353-
if (param->param_id == PARAM_FIXED)
354-
continue;
353+
if (param->param_id == PARAM_FIXED) continue;
355354
int offset = param->param_id;
356355
memcpy(pnode->value, theta + offset, pnode->size * sizeof(double));
357356
param->has_been_refreshed = false;

tests/problem/test_param_prob.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -391,8 +391,7 @@ const char *test_param_fixed_skip_in_update(void)
391391
problem_update_params(prob, theta);
392392

393393
/* Verify a is still 2.0 (not overwritten) */
394-
mu_assert("a_param changed after update",
395-
fabs(a_param->value[0] - 2.0) < 1e-10);
394+
mu_assert("a_param changed after update", fabs(a_param->value[0] - 2.0) < 1e-10);
396395

397396
double u[2] = {1.0, 2.0};
398397
double obj_val = problem_objective_forward(prob, u);

0 commit comments

Comments
 (0)