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

arrayfire::selectr - Rust

[−][src]Function arrayfire::selectr
pub fn selectr<T>(a: &Array<T>, cond: &Array<bool>, b: f64) -> Array<T> where
    T: HasAfEnum

Element wise conditional operator for Arrays

This function does the C-equivalent of the following statement, except that the operation happens on a GPU for all elements simultaneously.

c = cond ? a : b; /// where a is Array and b is a scalar(f64)

An Array


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