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.any_true.html below:

arrayfire::any_true - Rust

[−][src]Function arrayfire::any_true
pub fn any_true<T>(input: &Array<T>, dim: i32) -> Array<bool> where
    T: HasAfEnum,
    bool: HasAfEnum

Find if any of the values along a given dimension in the Array are true

Result Array that contains the result of OR operation of all elements along given dimension

use arrayfire::{Dim4, print, randu, any_true};
let dims = Dim4::new(&[5, 3, 1, 1]);
let a = randu::<f32>(dims);
print(&a);
let b = any_true(&a, 0);
print(&b);
let c = any_true(&a, 1);
print(&c);

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