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

Function set_col

src/core/index.rs:368–377  ·  view source on GitHub ↗

Set `col_num`^th col in `inout` Array to a new Array `new_col`

(inout: &mut Array<T>, new_col: &Array<T>, col_num: i64)

Source from the content-addressed store, hash-verified

366
367/// Set `col_num`^th col in `inout` Array to a new Array `new_col`
368pub fn set_col<T>(inout: &mut Array<T>, new_col: &Array<T>, col_num: i64)
369where
370 T: HasAfEnum,
371{
372 let seqs = [
373 Seq::default(),
374 Seq::new(col_num as f64, col_num as f64, 1.0),
375 ];
376 assign_seq(inout, &seqs, new_col)
377}
378
379/// Get all cols from `first` to `last` in the `input` Array
380pub fn cols<T>(input: &Array<T>, first: i64, last: i64) -> Array<T>

Callers

nothing calls this directly

Calls 1

assign_seqFunction · 0.85

Tested by

no test coverage detected