[src] Function arrayfire::row

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

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

AltStyle によって変換されたページ (->オリジナル) /