Add transpose method to Frame for matrix transposition

This commit is contained in:
Palash Tyagi 2025-07-06 00:22:41 +01:00
parent 30bff6ecf4
commit ef574892fa

View File

@ -471,6 +471,8 @@ impl<T: Clone + PartialEq> Frame<T> {
deleted_data deleted_data
} }
/// Returns a new `Matrix` that is the transpose of the current frame's matrix.
pub fn transpose(&mut self) -> Matrix<T> { pub fn transpose(&mut self) -> Matrix<T> {
self.matrix.transpose() self.matrix.transpose()
} }