Skip to content

Commit 5bdd8e4

Browse files
committed
Remove unnecessary type annotations in rk_step
I forgot to remove these annotations before merging #421. They were necessary until after #422 was merged.
1 parent 256fc0d commit 5bdd8e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/doc/ndarray_for_numpy_users/rk_step.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
//! .assign(&(fun(t + c * h, (&y + &dy).view())));
9999
//! }
100100
//!
101-
//! let y_new = &y + &(h * k.slice::<Ix2>(s![..-1, ..]).t().dot(&b));
101+
//! let y_new = &y + &(h * k.slice(s![..-1, ..]).t().dot(&b));
102102
//! let f_new = fun(t + h, y_new.view());
103103
//!
104104
//! k.slice_mut(s![-1, ..]).assign(&f_new);
@@ -162,7 +162,7 @@
162162
//! }
163163
//! // Similar case here — moving `&y` to the right hand side allows the addition
164164
//! // to reuse the allocated array on the left hand side.
165-
//! let y_new = h * k.slice::<Ix2>(s![..-1, ..]).t().dot(&b) + &y;
165+
//! let y_new = h * k.slice(s![..-1, ..]).t().dot(&b) + &y;
166166
//! // Mutate the last row of `k` in-place instead of allocating a new array.
167167
//! fun(t + h, y_new.view(), k.slice_mut(s![-1, ..]));
168168
//!

0 commit comments

Comments
 (0)