Skip to main content

SelectCoordinates

Trait SelectCoordinates 

Source
pub trait SelectCoordinates {
    type Output;

    // Required method
    fn select_coordinates(self, indices: &[u64]) -> Self::Output;
}
Expand description

Selects coordinates of a vector by index: the result’s element $j$ is the original’s element indices[j].

The indices may repeat and may appear in any order, so this covers projection onto some of the coordinates (strictly increasing indices), permutation, and duplication of coordinates. The result’s dimension is the number of indices.

Required Associated Types§

Required Methods§

Source

fn select_coordinates(self, indices: &[u64]) -> Self::Output

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§