[][src]Trait arrayfire::Indexable

pub trait Indexable {
    fn set(&self, idxr: &mut Indexer, dim: u32, is_batch: Option<bool>);
}

Trait bound indicating indexability

Any object to be able to be passed on to Indexer::set_index() method should implement this trait with appropriate implementation of set method.

Required methods

fn set(&self, idxr: &mut Indexer, dim: u32, is_batch: Option<bool>)

Set indexing object for a given dimension

Parameters

  • idxr is mutable reference to Indexer object which will be modified to set self indexable along dim dimension.
  • dim is the dimension along which self indexable will be used for indexing.
  • is_batch is only used if self is Seq to indicate if indexing along dim is a batched operation.
Loading content...

Implementors

impl<T: HasAfEnum> Indexable for Array<T>[src]

Enables Array to be used to index another Array

This is used in functions index_gen and assign_gen

impl<T: Copy> Indexable for Seq<T> where
    c_double: From<T>, 
[src]

Enables Seq to be used to index another Array

This is used in functions index_gen and assign_gen

Loading content...