A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://arrayfire.github.io/arrayfire-rust/arrayfire/../arrayfire/../arrayfire/fn.max_ragged.html below:

arrayfire::max_ragged - Rust

[−][src]Function arrayfire::max_ragged
pub fn max_ragged<T>(
    input: &Array<T>,
    ragged_len: &Array<u32>,
    dim: i32
) -> (Array<T::InType>, Array<u32>) where
    T: HasAfEnum,
    T::InType: HasAfEnum

Max reduction along given axis as per ragged lengths provided

Tuple of Arrays:

use arrayfire::{Array, dim4, print, randu, max_ragged};
let vals: [f32; 6] = [1.0f32, 2.0, 3.0, 4.0, 5.0, 6.0];
let rlens: [u32; 2] = [9, 2];
let varr = Array::new(&vals, dim4![3, 2]);
let rarr = Array::new(&rlens, dim4![1, 2]);
print(&varr);



print(&rarr); 

let (out, idx) = max_ragged(&varr, &rarr, 0);
print(&out);

print(&idx);

       

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4