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

Function set_cols

src/core/index.rs:392–399  ·  view source on GitHub ↗

Set cols from `first` to `last` in `inout` Array with cols from Array `new_cols`

(inout: &mut Array<T>, new_cols: &Array<T>, first: i64, last: i64)

Source from the content-addressed store, hash-verified

390
391/// Set cols from `first` to `last` in `inout` Array with cols from Array `new_cols`
392pub fn set_cols<T>(inout: &mut Array<T>, new_cols: &Array<T>, first: i64, last: i64)
393where
394 T: HasAfEnum,
395{
396 let step: f64 = if first > last && last < 0 { -1.0 } else { 1.0 };
397 let seqs = [Seq::default(), Seq::new(first as f64, last as f64, step)];
398 assign_seq(inout, &seqs, new_cols)
399}
400
401/// Get `slice_num`^th slice from `input` Array
402///

Callers

nothing calls this directly

Calls 1

assign_seqFunction · 0.85

Tested by

no test coverage detected