macro_rules! af_print {
[$msg: expr, $x: expr] => { ... };
}Expand description
Print given message before printing out the Array to standard output
ยงExamples
use arrayfire::{Dim4, print_gen, randu, af_print};
let dims = Dim4::new(&[3, 1, 1, 1]);
let a = randu::<f32>(dims);
af_print!("Create a 5-by-3 matrix of random floats on the GPU", a);