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

Function non_macro_seq_assign

src/core/index.rs:706–727  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

704
705 #[test]
706 fn non_macro_seq_assign() {
707 set_device(0);
708 // ANCHOR: non_macro_seq_assign
709 let mut a = constant(2.0 as f32, dim4!(5, 3));
710 //print(&a);
711 // 2.0 2.0 2.0
712 // 2.0 2.0 2.0
713 // 2.0 2.0 2.0
714 // 2.0 2.0 2.0
715 // 2.0 2.0 2.0
716
717 let b = constant(1.0 as f32, dim4!(3, 3));
718 let seqs = [seq!(1:3:1), seq!()];
719 assign_seq(&mut a, &seqs, &b);
720 //print(&a);
721 // 2.0 2.0 2.0
722 // 1.0 1.0 1.0
723 // 1.0 1.0 1.0
724 // 1.0 1.0 1.0
725 // 2.0 2.0 2.0
726 // ANCHOR_END: non_macro_seq_assign
727 }
728
729 #[test]
730 fn non_macro_seq_array_index() {

Callers

nothing calls this directly

Calls 3

set_deviceFunction · 0.85
constantFunction · 0.85
assign_seqFunction · 0.85

Tested by

no test coverage detected