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

arrayfire::assign_seq - Rust

[−][src]Function arrayfire::assign_seq
pub fn assign_seq<T, I>(lhs: &mut Array<I>, seqs: &[Seq<T>], rhs: &Array<I>) where
    c_double: From<T>,
    I: HasAfEnum,
    T: Copy + IndexableType

Assign(copy) content of an Array to another Array indexed by Sequences

Assign rhs to lhs after indexing lhs

use arrayfire::{constant, Dim4, Seq, assign_seq, print};
let mut a = constant(2.0 as f32, Dim4::new(&[5, 3, 1, 1]));
print(&a);






let b    = constant(1.0 as f32, Dim4::new(&[3, 3, 1, 1]));
let seqs = &[Seq::new(1.0, 3.0, 1.0), Seq::default()];
assign_seq(&mut a, seqs, &b);

print(&a);





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