Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
alessandrocasalino committed Jan 30, 2024
1 parent cb05ab2 commit d8c0a05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gradient_descent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ pub(crate) fn gradient_descent<Function, Gradient>(fn_function: &Function, fn_gr

// Update energy and gradient
fn_function(x, &g, &mut f, d);
fn_gradient(x, &mut g, &f, d);
fn_gradient(x, &mut *g, &f, d);
eval += 1;

let g_norm = unsafe { cblas::dnrm2(d, &g, 1) };
Expand Down

0 comments on commit d8c0a05

Please sign in to comment.