Function arrayfire::row [] [src]

pub fn row(input: &Array, row_num: u64) -> Array

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));