MCPcopy Index your code
hub / github.com/arrayfire/arrayfire-rust / set_slice

Function set_slice

src/core/index.rs:419–429  ·  view source on GitHub ↗

Set slice `slice_num` in `inout` Array to a new Array `new_slice` Slices indicate that the indexing is along 3rd dimension

(inout: &mut Array<T>, new_slice: &Array<T>, slice_num: i64)

Source from the content-addressed store, hash-verified

417///
418/// Slices indicate that the indexing is along 3rd dimension
419pub fn set_slice<T>(inout: &mut Array<T>, new_slice: &Array<T>, slice_num: i64)
420where
421 T: HasAfEnum,
422{
423 let seqs = [
424 Seq::default(),
425 Seq::default(),
426 Seq::new(slice_num as f64, slice_num as f64, 1.0),
427 ];
428 assign_seq(inout, &seqs, new_slice)
429}
430
431/// Get slices from `first` to `last` in `input` Array
432///

Callers

nothing calls this directly

Calls 1

assign_seqFunction · 0.85

Tested by

no test coverage detected