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/fn.replace.html below:

arrayfire::replace - Rust

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

Inplace replace in Array based on a condition

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

a = cond ? a : b; /// where cond, a & b are all objects of type Array

None


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