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

Function set_rows

src/core/index.rs:333–340  ·  view source on GitHub ↗

Set rows from `first` to `last` in `inout` Array with rows from Array `new_rows`

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

Source from the content-addressed store, hash-verified

331
332/// Set rows from `first` to `last` in `inout` Array with rows from Array `new_rows`
333pub fn set_rows<T>(inout: &mut Array<T>, new_rows: &Array<T>, first: i64, last: i64)
334where
335 T: HasAfEnum,
336{
337 let step: f64 = if first > last && last < 0 { -1.0 } else { 1.0 };
338 let seqs = [Seq::new(first as f64, last as f64, step), Seq::default()];
339 assign_seq(inout, &seqs, new_rows)
340}
341
342/// Extract `col_num` col from `input` Array
343///

Callers

nothing calls this directly

Calls 1

assign_seqFunction · 0.85

Tested by

no test coverage detected