[−][src]Function arrayfire::max_all
pub fn max_all<T>(
input: &Array<T>
) -> (<<T as HasAfEnum>::InType as HasAfEnum>::BaseType, <<T as HasAfEnum>::InType as HasAfEnum>::BaseType) where
T: HasAfEnum,
<T as HasAfEnum>::InType: HasAfEnum,
<<T as HasAfEnum>::InType as HasAfEnum>::BaseType: HasAfEnum + Fromf64,
Find maximum among all values of the Array
Parameters
input
is the input Array
Return Values
A tuple containing the maximum value.
Note: For non-complex data type Arrays, second value of tuple is zero.
Examples
use arrayfire::{Dim4, print, randu, max_all}; let dims = Dim4::new(&[5, 5, 1, 1]); let a = randu::<f32>(dims); print(&a); println!("Result : {:?}", max_all(&a));