MCPcopy Index your code
hub / github.com/PyO3/rust-numpy / uget_raw

Method uget_raw

src/array.rs:913–921  ·  view source on GitHub ↗
(&self, index: Idx)

Source from the content-addressed store, hash-verified

911 /// Passing an invalid index is undefined behavior.
912 #[inline(always)]
913 unsafe fn uget_raw<Idx>(&self, index: Idx) -> *mut T
914 where
915 T: Element,
916 D: Dimension,
917 Idx: NpyIndex<Dim = D>,
918 {
919 let offset = index.get_unchecked::<T>(self.strides());
920 self.data().offset(offset) as *mut _
921 }
922
923 /// Get a copy of the specified element in the array.
924 ///

Callers 2

ugetMethod · 0.80
uget_mutMethod · 0.80

Implementers 1

array.rssrc/array.rs

Calls 2

stridesMethod · 0.80
dataMethod · 0.80

Tested by

no test coverage detected