Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
martinjrobins committed Nov 29, 2024
1 parent 88ca6f3 commit c941e52
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
6 changes: 2 additions & 4 deletions src/op/closure_with_adjoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,7 @@ where
}
}

impl<M, F, G, H, I> NonLinearOpJacobian
for ParameterisedOp<'_, ClosureWithAdjoint<M, F, G, H, I>>
impl<M, F, G, H, I> NonLinearOpJacobian for ParameterisedOp<'_, ClosureWithAdjoint<M, F, G, H, I>>
where
M: Matrix,
F: Fn(&M::V, &M::V, M::T, &mut M::V),
Expand All @@ -201,8 +200,7 @@ where
}
}

impl<M, F, G, H, I> NonLinearOpAdjoint
for ParameterisedOp<'_, ClosureWithAdjoint<M, F, G, H, I>>
impl<M, F, G, H, I> NonLinearOpAdjoint for ParameterisedOp<'_, ClosureWithAdjoint<M, F, G, H, I>>
where
M: Matrix,
F: Fn(&M::V, &M::V, M::T, &mut M::V),
Expand Down
10 changes: 8 additions & 2 deletions src/vector/sundials.rs
Original file line number Diff line number Diff line change
Expand Up @@ -470,8 +470,14 @@ impl VectorIndex for SundialsIndexVector {
}

impl Vector for SundialsVector {
type View<'a> = SundialsVectorView<'a> where Self: 'a;
type ViewMut<'a> = SundialsVectorViewMut<'a> where Self: 'a;
type View<'a>
= SundialsVectorView<'a>
where
Self: 'a;
type ViewMut<'a>
= SundialsVectorViewMut<'a>
where
Self: 'a;
type Index = SundialsIndexVector;
fn len(&self) -> IndexType {
unsafe { N_VGetLength_Serial(self.sundials_vector()) as IndexType }
Expand Down

0 comments on commit c941e52

Please sign in to comment.