MCPcopy Create free account
hub / github.com/PyO3/rust-numpy / as_array_mut

Method as_array_mut

src/borrow/mod.rs:507–510  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

505 /// Provides a mutable array view of the interior of the NumPy array.
506 #[inline(always)]
507 pub fn as_array_mut(&mut self) -> ArrayViewMut<'_, T, D> {
508 // SAFETY: Global borrow flags ensure aliasing discipline.
509 unsafe { self.array.as_array_mut() }
510 }
511
512 /// Provide a mutable slice view of the interior of the NumPy array if it is contiguous.
513 #[inline(always)]

Callers 6

half_f16_worksFunction · 0.45
half_bf16_worksFunction · 0.45
mult_pyFunction · 0.45
add_minutes_to_secondsFunction · 0.45

Calls

no outgoing calls

Tested by 4

half_f16_worksFunction · 0.36
half_bf16_worksFunction · 0.36