row

Function row 

Source
pub fn row<T>(input: &Array<T>, row_num: i64) -> Array<T>
where T: HasAfEnum,
Expand description

Extract row_num row from input Array

ยงExamples

use arrayfire::{Dim4, randu, row, print};
let dims = Dim4::new(&[5, 5, 1, 1]);
let a = randu::<f32>(dims);
println!("Grab last row of the random matrix");
print(&a);
print(&row(&a, 4));