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

Function seq_view

src/core/macros.rs:380–388  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

378
379 #[test]
380 fn seq_view() {
381 set_device(0);
382 let mut dim4d = dim4!(5, 3, 2, 1);
383 dim4d[2] = 1;
384
385 let a = randu::<f32>(dim4d);
386 let seqs = &[seq!(1:3:1), seq!()];
387 let _sub = index(&a, seqs);
388 }
389
390 #[test]
391 fn seq_view2() {

Callers

nothing calls this directly

Calls 2

set_deviceFunction · 0.85
indexFunction · 0.85

Tested by

no test coverage detected