We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ArrayBase::as_slice_memory_order
None
For some reason, as_slice_memory_order returns None when called on a 1-element slice. Minimal example:
as_slice_memory_order
use ndarray::{s, Array1}; let arr = Array1::from_vec(vec![1.0, 2.0, 3.0]); println!("{:?}", arr.slice(s![0..1]).as_slice_memory_order()); // Prints None