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

Method cast

src/array.rs:1153–1158  ·  view source on GitHub ↗
(&self, is_fortran: bool)

Source from the content-addressed store, hash-verified

1151 #[deprecated(since = "0.26.0", note = "use `cast_array` instead")]
1152 #[inline]
1153 fn cast<U: Element>(&self, is_fortran: bool) -> PyResult<Bound<'py, PyArray<U, D>>>
1154 where
1155 T: Element,
1156 {
1157 self.cast_array(is_fortran)
1158 }
1159
1160 /// Cast the `PyArray<T>` to `PyArray<U>`, by allocating a new array.
1161 ///

Callers 13

from_raw_partsMethod · 0.80
borrow_from_arrayMethod · 0.80
dataMethod · 0.80
innerMethod · 0.80
from_npy_typeMethod · 0.80
new_from_npy_typeMethod · 0.80
baseMethod · 0.80
as_array_ptrMethod · 0.80
dtypeMethod · 0.80
extractMethod · 0.80
insert_sharedFunction · 0.80
get_numpy_apiFunction · 0.80

Implementers 1

array.rssrc/array.rs

Calls 1

cast_arrayMethod · 0.80

Tested by

no test coverage detected