MCPcopy Index your code
hub / github.com/arrayfire/arrayfire-rust / set_index

Method set_index

src/core/index.rs:214–220  ·  view source on GitHub ↗

Set either [Array](./struct.Array.html) or [Seq](./struct.Seq.html) to index an Array along `idx` dimension

(&'s mut self, idx: &'object T, dim: u32, is_batch: Option<bool>)

Source from the content-addressed store, hash-verified

212
213 /// Set either [Array](./struct.Array.html) or [Seq](./struct.Seq.html) to index an Array along `idx` dimension
214 pub fn set_index<'s, T>(&'s mut self, idx: &'object T, dim: u32, is_batch: Option<bool>)
215 where
216 T: Indexable + 'object,
217 {
218 idx.set(self, dim, is_batch);
219 self.count += 1;
220 }
221
222 /// Get number of indexing objects set
223 pub fn len(&self) -> usize {

Callers 3

mainFunction · 0.80

Calls 1

setMethod · 0.45

Tested by 2