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.

Object Safety§

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>,