[−][src]Macro arrayfire::constant
Create an array of given shape filled with a single value a.k.a constant array
Examples
let _zeros_1d = constant!(0.0f32; 10); let _ones_3d = constant!(1u32; 3, 3, 3); let dim = 10; let mix_shape = constant!(42.0f32; dim, 10);