example using a mutable borrow to modify an array in-place
(a: f64, mut x: ArrayViewMutD<'_, f64>)
| 28 | |
| 29 | // example using a mutable borrow to modify an array in-place |
| 30 | fn mult(a: f64, mut x: ArrayViewMutD<'_, f64>) { |
| 31 | x *= a; |
| 32 | } |
| 33 | |
| 34 | // example using complex numbers |
| 35 | fn conj(x: ArrayViewD<'_, Complex64>) -> ArrayD<Complex64> { |