Trait MatrixTranspose

Source
pub trait MatrixTranspose<'a, Dtype: 'a>: HasTensorShapeData<Dtype> + BorrowTensor<'a, Dtype> {
    // Provided methods
    fn t(&'a self) -> <Self as BorrowTensor<'a, Dtype>>::Output { ... }
    fn transpose(
        &'a self,
        axes: Vec<AxisIndex>,
    ) -> <Self as BorrowTensor<'a, Dtype>>::Output { ... }
}

Provided Methods§

Source

fn t(&'a self) -> <Self as BorrowTensor<'a, Dtype>>::Output

Reverses the axes.

Source

fn transpose( &'a self, axes: Vec<AxisIndex>, ) -> <Self as BorrowTensor<'a, Dtype>>::Output

§Arguments
  • axes - Must be the same length as self.shape().ndim(). For each i, axes[i] = j means that the original j-th axis will be at the i-th axis in the new shape.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<'a, Dtype: 'a, T> MatrixTranspose<'a, Dtype> for T
where T: HasTensorShapeData<Dtype> + BorrowTensor<'a, Dtype>,