[][src]Function arrayfire::col

pub fn col<T>(input: &Array<T>, col_num: u64) -> Array<T> where
    T: HasAfEnum

Extract col_num col from input Array

Examples

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