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

Method as_array

src/borrow/mod.rs:264–267  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

262 /// Provides an immutable array view of the interior of the NumPy array.
263 #[inline(always)]
264 pub fn as_array(&self) -> ArrayView<'_, T, D> {
265 // SAFETY: Global borrow flags ensure aliasing discipline.
266 unsafe { self.array.as_array() }
267 }
268
269 /// Provide an immutable slice view of the interior of the NumPy array if it is contiguous.
270 #[inline(always)]

Callers 11

as_arrayFunction · 0.45
head_pyFunction · 0.45
axpy_pyFunction · 0.45
conj_pyFunction · 0.45
extractFunction · 0.45
add_minutes_to_secondsFunction · 0.45
polymorphic_addFunction · 0.45
invFunction · 0.45
rows_dotFunction · 0.45

Calls

no outgoing calls

Tested by 3

as_arrayFunction · 0.36