Struct rds::array::NDSlice [] [src]

pub struct NDSlice<'a, T: 'a> { /* fields omitted */ }

Structure representing an immutable borrow of a n-dimensional array sub slice.

Trait Implementations

impl<'a, T> NDData<T> for NDSlice<'a, T>
[src]

Return a slice of length N where each element is the length of the dimension. For a 2 dimensional matrix, the first dimension is the number of rows and the second dimension is the number of columns. Read more

Return a slice of length N where each element is the stride of the dimension.

Return the underlying storage array as a slice.

Return N, the number of dimensions.

Return the total number of element of the N-dimensional array.

Take a slice of length N representing an N-dimensional index in the array and return a reference to the element at this position. Read more

impl<'a, T: 'a> NDSliceable<'a, T> for NDSlice<'a, T>
[src]

Take a slice of length < N representing the sub slice index and return immutable borrow of the sub slice as an NDSlice. Because the storage is in row-major order and the slice need to be contiguous in the underlying storage array it means, for example, only the rows of a matrix can be borrowed. Read more

impl<'a, 'b, T> Index<&'b [usize]> for NDSlice<'a, T>
[src]

The returned type after indexing

The method for the indexing (container[index]) operation

impl<'a, 'b, T> Index<&'b [usize; 1]> for NDSlice<'a, T>
[src]

The returned type after indexing

The method for the indexing (container[index]) operation

impl<'a, 'b, T> Index<&'b [usize; 2]> for NDSlice<'a, T>
[src]

The returned type after indexing

The method for the indexing (container[index]) operation

impl<'a, 'b, T> Index<&'b [usize; 3]> for NDSlice<'a, T>
[src]

The returned type after indexing

The method for the indexing (container[index]) operation

impl<'a, T: PartialEq, O: NDData<T> + Sized> PartialEq<O> for NDSlice<'a, T>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'a, T: Eq> Eq for NDSlice<'a, T>
[src]

impl<'a, 'b, 'c, T: Clone + Display + From<f32>, R: NDData<T> + Sized> Add<&'a R> for &'b NDSlice<'c, T> where
    NDArray<T>: Blas<T>, 
[src]

The resulting type after applying the + operator

The method for the + operator

impl<'a, 'b, 'c, T: Clone + Display + From<f32>, R: NDData<T> + Sized> Sub<&'a R> for &'b NDSlice<'c, T> where
    NDArray<T>: Blas<T>, 
[src]

The resulting type after applying the - operator

The method for the - operator

impl<'a, 'b, 'c, T: Clone + Display + From<f32>, R: NDData<T> + Sized> Mul<&'a R> for &'b NDSlice<'c, T> where
    NDArray<T>: Blas<T>, 
[src]

The resulting type after applying the * operator

The method for the * operator

impl<'a, T> SizedBuffer for NDSlice<'a, T>
[src]